Uninstalling a ClickOnce application silently

后端 未结 5 985
故里飘歌
故里飘歌 2020-12-10 03:44

We have an production application that is deployed using Visual Studio\'s built-in ClickOnce deployment tool. I am writing a batch file to uninstall the application:

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 03:59

    Don't over complicate it & keep it simple - this works on both Windows XP & 7:

    Go to Add/Remove Programs and make note of the exact name of the program. Open Notepad and paste the text below:

    wmic product where name="PROGRAM NAME" uninstall

    but make sure to type the exact name of the program in between the quotation marks and chose Save As /All Files and name the file Uninstall.bat and then test it out to make sure it works.

提交回复
热议问题