Sim,

>
> Where do I set INSTALLERFLAG and RESTARTFLAG?
>

Wherever you want. To avoid a reboot message (even if your install needs a
reboot) you have to set it at the end of the script. If you would like to
programmatically trigger a reboot after the installation process (even if
you did NOT replace a locked file and a reboot is not strictly required)
then you can do it at the beginning of the script, in the middle, wherever
you want.

Friedrich