Page 1 of 1

Update script, manual updates only

Posted: Wed Apr 11, 2007 8:58 am
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.