Silent install with silent uninstall
Hi, currently I'm using the Standard project type to do a silent install that does the following. During the installation process, it silently uninstalls another product on the machine and silently continues the installation. So I first created two "Setup.iss" files. One for the silent uninstall and one for the entire silent installation that includes the silent uninstall. Then I made the project to do the followings. When the installation process reaches the silent uninstallation, it makes a backup copy of the "Setup.iss" file for the silent install and puts in the "Setup.iss" file for the silent uninstall. After it completes the uninstallation, it restores the "Setup.iss" file for the silent install to continue the installation. Unfortunately it didn't work. After the silent uninstation, the installation aborted and the "Setup.iss" file disappeared at the Windows directory. However when I debugged, it was OK. The installation, including the silent uninstallation, completed the entire installation process and the "Setup.iss" file for the silent install was still at the Windows directory. Would anyone please tell me what happend or give me an idea about how to use the Standard project type to do the project in another way? Any suggestion is welcomed. I really appreciate it. Thank you.
To start with...
I would rename the *.iss appropriate to what you are doing (i.e. setup_uninst.iss, setup_inst.iss, setup_backup.iss).
If you're not doing so already, put the setup_backup.iss into the Setup Files -> Language Indepenent and reference it there.
Thanks for your help, sgooey. Actually, I found out how to solve the problem this morning. The "Setup.iss" file for the silent install also need to be in the same directory as the "Setup.exe" file. I tried this again and everything was OK.