Jump to content

Creating a batch file to ask user what software they wish to install from a CD?


Recommended Posts

Posted

Hi, I'm trying to create a batch file to allow a user to choose, on running this batch file, which piece of software to run from a custom created CD. I've put 7 pieces of software on a CD, and I want to allow them the option of which piece of software to install? I'd also like the batch to run with the autorun, so the user only has to follow simple prompts in the batch file.

 

I've looked around and found the choice command may be how to do this, but I'm struggling to implement this well.

 

Thanks in advance

 

Jonathan Hambleton

Posted

I use AutoIT3 and the Customised SciTE4AutoIT to "record" the installation of a program and then create a scripted EXE file..

 

Then I have an AutoIT Install Chooser script that allows the user to select from a list of software to install..

 

I've attached the install chooser script for you to look at.. (change the extension to .au3)

installchooser.txt

  • Thanks 1
Posted

As they say a million and one ways to skin a cat - just to add my 2 cents worth - again would use AutoIT to create a menu - like Gatt.....

 

On checking [ as this bought up an issue of a similar setup I knocked up about 7 years ago for a boot DOS disk for a thin client Windows95 build.....]

I used DOS's 'Choice' command and even used the Errorlevel for an actual variable.....[ 255 ]

On checking - guess what ? The command is still there in Vista !!

 

Now thats progress !!!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...