Search code examples
windowsvisual-studiovisual-studio-2010setup-deployment

VS2010 Setup and Deployment: removing a shortcut from previous version


I have a VS2010 Setup and Deployment project. We have decided to change the program group to which the next version installs. How do I remove the previous program group? I would prefer to not have the user uninstall via Control Panel.


Solution

  • You will need to trigger the windows installer to peform a "Major Upgrade" of you product. A major upgrade will uninstall the previous versions components. Details can be found here ins the MSDN docs: http://msdn.microsoft.com/en-us/library/windows/desktop/aa369786(v=vs.85).aspx

    You might also consder moving to Wix (Windows Installer XML). You can create much more flexable installers in Visual Studio with it. See: http://wix.sourceforge.net/