Oh right Ozone, good point.
It's really easy to write to a file Dipo, and if you still need it I can give you some sample code to do that, but if all you're doing on the reboot is running that application, then during OnFirstUIAfter() I would just write the command to the HKLM\Windows\CurrentVersion\RunOnce area of the registry where it will be automatically processed by Windows on the next reboot.
However, do you really need to wait for a reboot to issue this command or could it just be launched after all of the files have been copied? 'cause if you really don't need the reboot, then just move that
if nvalue = 1 code from OnRebooted() and into OnFirstUIAfter().
Also Perotin, he wouldn't actually be able to use a parameter value of -service because it would collide with InstallShield's -s command for a silent setup, but something like that that would certainly be another option. Just need to check out "Command line setup engine" in the help index to make sure it doesn't start with same letter as one used by IS.
Edited by Taco Bell, 26 March 2004 - 19:09.