ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Resume after reboot

Our installer changes some settings that require a reboot. The installer writes an entry to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run so that the installation resumes (actually re-starts) after the reboot.

But sometimes it does not write this entry. And in those scenarios, the reboot happens, but the installation does not resume.

We didn't do anything to add that registry entry, thus it is very hard to find the root-cause to this failure. It seems to mostly fail in an upgrade scenario.

If anyone has any suggestions on troubleshooting this, I would appreciate it.

Thanks.
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Resume after reboot

Okay, here's a clue - it only happens when it runs in maintenance mode.

How do I get a newer version of the same app to not run in maintenance mode?
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Resume after reboot

I tried changing the Product Code, the Upgrade Code, and I tried to disable modify and repair.

The behavior was always the same - the new version still installs in maintenance mode.
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Resume after reboot

I manually changed the Product Code (previous was to have it re-generated) to a recognizable value, and then the installer does not run in maintenance mode. However, it does not write to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and the installer does not resume after the reboot.

This is puzzling.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Resume after reboot

Hello,

I cannot say why this happens. If you consistently replicate this issue please send us the following resources:

1. the .AIP (setup project file) of the old version of your setup
2. the .AIP (setup project file) of the new version of your setup
3. a short test case we can follow to replicate the issue

by email at support at advancedinstaller dot com so we can fully test and investigate this on our side.

If you cannot share with us your project file, then you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Resume after reboot

Thanks for your offer to help. I finally figured it out! The registry entry that I didn't know where it was coming from was coming from one of the prerequisites. In the upgrade scenario, the prerequisites were already installed.

So now I just add my own entry to HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce if I hit one of the reboot scenarios.

Now I just need to make sure that it doesn't run _twice_ after the reboot...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Resume after reboot

This is great. I am glad you sorted this out.

Just let me know if the current approach still does not work for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”