简体   繁体   中英

Autoinstallaion of setup.exe

I am using visual studio 2008 and I have created setup project using the same. After deployment of the application whenever I change any of the file or even rename any file setup.exe automatically starts to reinstall the setup. In this case it should customized error.

Do anybody has idea on this??

This is the normal behavior. Windows Installer automatically performs a repair if it determines that some of the installed resources are missing.

This repair is triggered by:

  • launching the application through an advertised shortcut
  • launching a file associated with your application

To avoid it you should:

  • make sure that your application doesn't delete, move or rename installed files; if you need to work with files use the Application Data folder

or

  • make sure that the deleted file is not the key member in its component; this is controlled through the Component table

To answer your actual question, you cannot show a customized error. You can only try to avoid this behavior.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM