Schedule updates only during initial install
Posted: Tue Apr 21, 2020 7:40 am
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!
[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!