PDA

View Full Version : Can I make two reboot conditions?



nychojin
10-06-2003, 08:32 AM
Hello:

I am new to the software, so I am not familiar with how to accomplish this.

I would like to set up two different reboot scenarios depending on the target operating system. This is what I want to set up:

1. If the operating system is Windows 9x, I want to force a reboot with a warning dialog box prior to reboot.

2. If the OS is Win2000/XP, I want to give the user an option of rebooting with a separate dialog box.

Any ideas on how to accomplish this and where to place it? Any help would be appreciated. Thanks in advance!

dhesog
10-06-2003, 10:07 AM
You can set two reboot conditions based on Operating system. Use the function GetSystemInfo() to retrieve the operating system of the target machine. Based on the OS, you can set a " if..endif" clause to display the different reboot dialogs. To display the reboot dialog, use the InstallScript function SdFinishReboot() in the OnFirstUIAfter() event in your script. Please refer the help library for detailed information about the parameters to be passed.

I am not sure if you want to display the two reboot dialog with just different texts or with different images. If former is the case then you can just change the parameters to change the text. Please refer the help library for detailed information about the parameters to be passed. But, if you want to display two different dialog boxes based on OS, then you need to create custom dialog of your own. To create the custom dialog box, please visit the following KB article:


http://support.installshield.com/kb/view.asp?articleid=q104952


To modify an existing dialog box, please visit the following KB article:

http://support.installshield.com/kb/view.asp?articleid=q104953



Hope it helps!