Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Setup Runs Automatically
 

Setup Runs Automatically

if i delete a file from my application setup directory my setup runs automatically and create the deleted file when i start my application.
how can i prevent it.
kemkacen55  Thursday, August 13, 2009 6:32 AM
This is the default behavior of MSI-based installs. Shortcuts and some other entry points into apps will trigger a check that files are still there. Why are you installing a file that you remove later?
Search this forum for DISABLEADVTSHORTCUTS for a solution that some have used. Visual Studio setups don't support the official solution described here under the ComponentId description:

http://msdn.microsoft.com/en-us/library/aa368007(VS.85).aspx
Phil Wilson
PhilWilson  Thursday, August 13, 2009 5:38 PM
DO you Mean:
COndition: setup file of your is deleted
COndition: If you double click Setup.exe Its automaticly Recover your Lost files...
???
Do you mean this...?
ShariqDON  Thursday, August 13, 2009 12:32 PM
its automatically recover my lost files when i double click my application's shortcut on desktop.
kemkacen55  Thursday, August 13, 2009 1:31 PM
This is the default behavior of MSI-based installs. Shortcuts and some other entry points into apps will trigger a check that files are still there. Why are you installing a file that you remove later?
Search this forum for DISABLEADVTSHORTCUTS for a solution that some have used. Visual Studio setups don't support the official solution described here under the ComponentId description:

http://msdn.microsoft.com/en-us/library/aa368007(VS.85).aspx
Phil Wilson
PhilWilson  Thursday, August 13, 2009 5:38 PM

You can use google to search for other answers

Custom Search

More Threads

• Silent install for an application deployed via ClickOnce
• Custom application settings
• Cannot retrieve application. Authentication Error.
• ClickOnce + Native x86 Executables
• Check for prerequisites then run clickonce with query string?
• Forcing and catching a SecurityException from IEExec
• Code Group Children problem at Visual Studio 2005.
• Nlog & ClickOnce
• Uninstall Online-Only Click-Once
• Event to run on a timer