Page 1 of 1

Schedule updates only during initial install

Posted: Tue Apr 21, 2020 7:40 am
by ntroncoso
When enabling the "Schedule updates" options, the installer will set a RunOnce registry key to run the update scheduler. The problem with this is that the user has to log out/in or restart the computer for it to show. To get around this, I do this at the end of the install:

[DEFINE REGION: Finish Setup]
Comment: End of Installation
Hide Dialog
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Run Program $EXEFILE$ /updatesetup
end
end

And so, I get the app icon in the system tray that lets me schedule updates. My main question is:

How can I make this only run during the installation? Everytime an update is automatically installed, the system tray icon re-appears to schedule updates.

I also have a side question, if that's okay:

How can I make the schedule updates dialog appear automatically. My current solution only makes the system tray icon appear and the user has to know to click it to schedule updates.

Thanks!

Re: Schedule updates only during initial install

Posted: Tue Apr 21, 2020 12:44 pm
by FrancescoT
You may have a look at "WebUpdate sample (customized)" from:
https://www.installaware.com/forums/viewtopic.php?f=2&t=6772

If I haven't missed your question, this should do exactly what you need.

Re: Schedule updates only during initial install

Posted: Thu Apr 23, 2020 10:12 am
by ntroncoso
Thank you, that is what I'm looking for.