Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > After Setup installation problem
 

After Setup installation problem

I have created a setup with 10 projects . After installing the setup if I try to replace any exe with new version and start a application using shortcut it automatically replace the new version of file with old one .

So how can I stop the installer to overwrite the new exe copied in installation folder.

Thanking you

waiting for your valuable thought.



Furqanms  Tuesday, August 25, 2009 6:47 AM
This is completely normal, but people seem to be entirely unaware that MSI-based installs are a) self-repairing and b) should be updated with an MSI-based update mechanism, which in VS setup projects is a new version of your setup that usesRemoveExistingProducts.

If you search this forum for DISABLEADVTSHORTCUTS you'll see some discussion of how to prevent shortcuts from doing this, but keep in mind that the supported way for VS setup projects to install new versions is RemoveExistingProducts.
Phil Wilson
PhilWilson  Tuesday, August 25, 2009 6:50 PM
This is completely normal, but people seem to be entirely unaware that MSI-based installs are a) self-repairing and b) should be updated with an MSI-based update mechanism, which in VS setup projects is a new version of your setup that usesRemoveExistingProducts.

If you search this forum for DISABLEADVTSHORTCUTS you'll see some discussion of how to prevent shortcuts from doing this, but keep in mind that the supported way for VS setup projects to install new versions is RemoveExistingProducts.
Phil Wilson
PhilWilson  Tuesday, August 25, 2009 6:50 PM
Hi Furquanms,

This link talks about DISABLEADVTSHORTCUTS: http://msdn.microsoft.com/en-us/library/aa368297(VS.85).aspx.
You can set the RemovePreviousVersions property of theSetup Projectto remove previous version when install a new one.

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, August 26, 2009 11:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem with VS2005 installation built on 32 bit XP Pro
• Framework 3.5 as Prerequisite for a ClickOnce app fails if Computer has 3.5 SP1 installed
• registering dll's after installation and unregister before uninstall
• Strange ClickOnce window messes up VS
• Help me:getting path
• Windows Form Click Once and Crystal Report with custom Paper Size
• ClickOnce Deployment from Web and IE "File Download - Security Warning" Dialog
• What do ClickOnce changes depend on?
• Check content of a file at start setup and close installation
• clickonce deployment