Page 1 of 1

CHOOSING WHAT OS with RADIO BUTTONS

Posted: Tue Jan 10, 2006 2:04 am
by blackdweeb
hi! I am using InstallAware Studio Admin and i have a little problem here. I am a newbie and I am trying to make a wizard which would automatically check the OS. I got pass through that. However, I would just like to make 3 radio buttons for each of the OS (win98, win2000 and XP) which allows the user to choose what OS he is running.For win98, I have specific drivers that should be installed. However, if it's win98SE, I would like to include the usb drivers. for win2k and winxp,another set would be installed but they (2k and XP) will take the same drivers.

Now, how do I go about that? I tried it but still it won't run.

Any help would be pretty much appreciated. Thanks :)

Posted: Tue Jan 10, 2006 8:45 am
by MichaelNesmith
Hi

Actually, you shouldn't leave this choice to the end user. You should instead detect in your setup script the operating system level and proceed accordingly. You can use the Get System Settings command for this purpose. Remember that a check for a lower OS returns TRUE if a higher OS is installed - for example, checking for XP returns TRUE if XP, 2003, or Vista is installed, etc.

Posted: Tue Jan 10, 2006 11:23 pm
by blackdweeb
thanks.
but any ideas how i can let the user choose what os he can select?

can you please send me the code how to do this and where in the program am i supposed to insert the code?

thanks a bunch.

Posted: Wed Jan 11, 2006 1:16 pm
by MichaelNesmith
Basically, you need to create (or update) an existing dialog first, plop some radio buttons on there for the various operating systems that you want to use. Then you set some properties on those radio buttons so they update script variables when they are selected. Finally, in your setup script, you just read those variables and then branch accordingly based on what you want to do. Its all very basic stuff - I'd encourage you to dive right in.

If you want a tutorial type documentation, Sinan Karaca has written an article for MSDN Magazine that is downloadable from our home page. This article covers very similar ground and shows how to customize dialogs, and read dialog field values from the setup script - I'd encourage to take a look at it, its a very quick and fun read.

Posted: Thu Jan 12, 2006 5:27 am
by blackdweeb
Thanks :)

I have added the radio buttons already and I have read his MSDN article.

I have to add some rules to it, right? I know it's pretty basic but I am kinda lost. During the wizard, I added ALL the driver files that should be installed on the diff OS. (Offline content) But I need to ask the user's input for the OS so the installation can proceed. I am kinda lost coz I don't know how I will redirect the program to install ONLY the needed driver files as per user's input. I can easily add the radio buttons but identifying which variables to write to is confusing because I only know the basics. And besides, the variables were predefined. Help.

Your answer and his MSDN article are shedding a little light but they still don't answer what I need to do.


Thanks for your replies :)

Posted: Thu Jan 12, 2006 5:29 am
by blackdweeb
And by the way, it is looking for a BUILDMODE file.. It won't run anymore... :(