CHOOSING WHAT OS with RADIO BUTTONS

Got a problem you cannot solve? Try here.
blackdweeb
Posts: 4
Joined: Tue Jan 10, 2006 12:58 am

CHOOSING WHAT OS with RADIO BUTTONS

Postby blackdweeb » Tue Jan 10, 2006 2:04 am

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 :)

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jan 10, 2006 8:45 am

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

blackdweeb
Posts: 4
Joined: Tue Jan 10, 2006 12:58 am

Postby blackdweeb » Tue Jan 10, 2006 11:23 pm

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.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Jan 11, 2006 1:16 pm

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.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

blackdweeb
Posts: 4
Joined: Tue Jan 10, 2006 12:58 am

Postby blackdweeb » Thu Jan 12, 2006 5:27 am

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 :)

blackdweeb
Posts: 4
Joined: Tue Jan 10, 2006 12:58 am

Postby blackdweeb » Thu Jan 12, 2006 5:29 am

And by the way, it is looking for a BUILDMODE file.. It won't run anymore... :(


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 128 guests