none
unistall shortcut setup and deployment RRS feed

  • Question

  • Hi All,

    I have added a setup and deployment project to my solution. Now, I just want to add an uninstall shortcut. I have looked for help on this and I get this:

    Q:  How do I create an uninstall link on my shortcut:

    A:  

    1.       In your setup project’s directory, create a new uninstall.bat file.

    2.       In your Setup project, copy the ProductCode property (something like [12345678-1234-1234-1234-123412341234]

    3.       Edit the uninstall.bat so that it has one line that says:

    Msiexec /x [insert product code here]

    4.       Add the uninstall.bat to your setup project’s application folder.

    5.       Right-click on the uninstall.bat to create a shortcut, and then put it in the Start menu folder you want it in (in the setup project).

    6.       Rename the Shortcut to something like “Uninstall MyApplication”

     


    My question is: How do I get the product code for my application and everything is in VS2005. Please let me know which menus to look under. I have looked under properties but to no avail.


    Monday, November 20, 2006 7:24 PM

Answers