Schedule updates only during initial install

Got a problem you cannot solve? Try here.
ntroncoso
Posts: 5
Joined: Tue Apr 14, 2020 11:51 am

Schedule updates only during initial install

Postby ntroncoso » 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!

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Schedule updates only during initial install

Postby FrancescoT » Tue Apr 21, 2020 12:44 pm

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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ntroncoso
Posts: 5
Joined: Tue Apr 14, 2020 11:51 am

Re: Schedule updates only during initial install

Postby ntroncoso » Thu Apr 23, 2020 10:12 am

Thank you, that is what I'm looking for.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 30 guests