In a Visual Studio setup project, How do I generate an uninstall script?

后端 未结 8 1605
无人及你
无人及你 2020-12-02 06:14

I have a Visual Studio setup project. Upon installation, it creates an uninstall batch file in the application folder. IF the user wants to uninstall the product, he can g

8条回答
  •  广开言路
    2020-12-02 06:27

    I just made this work:

    Add an uninstall.bat file to your project. The file contents is:

    msiexec.exe /x %1
    

    Make a shortcut to that batch file (say in User's Program Menu), specify in the shortcut's properties, next to Arguments: [ProductCode].

提交回复
热议问题