Hi Dan, thanks for your help so far. But it turns out that your sample project is not properly working. I am getting an msiexec popup after EVERY reboot following the installation of your sample project. It seems that when the helper installer causes the reboot to happen, the main installer is left in an incomplete state. It leaves entries in the registry to start up on reboot but these fail. I tested this on other computers as well with the same result. The reason I only found this out now is because I never clicked "ok" to actually reboot before.Dan wrote:Hi Matt,
I've attached a sample project to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.
If you have any question, please let me know.
Best regards,
Dan
Please review the attached files for further details. It appears that on login after a reboot, msiexec is called with a "/cmdloc" flag to instruct it to obtain the parameters from a registry key but I have not found this flag anywhere on the microsoft installer documentation.
Full registry run command params:
The only way to remove this popup is to edit the registry directly or use the msconfig utilty. Downside of the msconfig utiltiy is that the registry entry remains, it's just being ignored./i "C:\Users\matt.luthi\Downloads\Sample\Sample\MainPackage\MainPackage-SetupFiles\MainPackage.msi" AI_RESUME=1 ADDLOCAL=MainFeature,YourApplication ACTION="INSTALL" EXECUTEACTION="INSTALL" ROOTDRIVE="C:\" AI_PREREQDIRS="C:\Users\matt.luthi\AppData\Roaming\Your Company\Your Application\prerequisites" TARGETDIR="C:\" APPDIR="C:\Program Files\Your Company\Your Application\" SET_REQUIRE_REBOOT="CheckBox"
I have doubts that I can't actually achieve what I need to achieve using Advanced Installer.
What I need to achieve is:
1. If the pre-requisite is not installed or needs to be upgraded, a reboot has to happen at the end of the main installation or the upgrade.
2. If the pre-requisite does not have to installed or upgraded, no reboot should happen.
3. The installer needs to be deployed with minimum user interface, using deployment tools such as policies and others. (Silent)
I have found that by using a chained pre-requisite, it is installed on removal of the software which is desired. So I would like to keep the installation of the pre-requisite chained.
I am hoping we can resolve this somehow. Am getting pretty desperate.
Thanks,
Matt