Update script, manual updates only

Got a problem you cannot solve? Try here.
Post Reply
Fig
Posts: 22
Joined: Tue Aug 15, 2006 12:27 pm

Update script, manual updates only

Post by Fig »

My Web Update enabled install project includes the 'updates' script. However, I don't ever want scheduled updates. I have some other method of advising the user an update is available. From within my app the user can click a menu item that starts the installer (with /update appended to the command line) in order to retrieve the latest patch.

The update script is a little foreboding and I don't want to mess it up. How can I change the script to prevent scheduled updates but still allow manual updates?

It appears as though I can delete the entire “Schedule Updates” region and change the Update Mode region

DEFINE REGION: Update Mode?
Set Variable COMMANDLINE to $CMDLINE$
If Variable COMMANDLINE Not Contains /update
Set Variable UPDATE_SCHEDULE to FALSE
If Variable MAINTENANCE Equals FALSE
Set Variable UPDATE_SCHEDULE to TRUE
Else
If Variable UPDATE_CONFIGURED Equals FALSE
Set Variable UPDATE_SCHEDULE to TRUE
End
End
If Variable UPDATE_SCHEDULE Equals TRUE
… blah blah blah
End
GoTo Label: End of Updates
End


To

DEFINE REGION: Update Mode?
Set Variable UPDATE_SCHEDULE to FALSE
GoTo Label: End of Updates
End



I saw a msg about a sample script that does not include the scheduler stuff, but could not find it in the sample scripts.
... Fig
Post Reply