Jump to content

I know its not unattended but


Recommended Posts

I would like to add some code to allow me to choose if I want to install some software. For instance, if the computer is at home, I don't need a firewall because I have a router, but at university I don't have a router and want to run zone alarm.

I was going to use choice to do this, but it isn't available for winxp.

Can someone help me with this thanks.

(basically something like echo do you want to install zone alarm? yes or no)

]Bonkers[

Link to comment
Share on other sites


So there isn't a way to incorporate that into a batch eh? Would it be possible to add a vbs to do it? (I know aaronxp used a vbs to eject the cd tray).

]Bonkers[

b0r3d: Only do it if you have time and it won't be too much of a problem for you.

Link to comment
Share on other sites

you can basically put anything in your batch. You just throw the progrms you want to run in the run once section of the winnt.sif file.

The way i am thinking is ...

Me develop a small little program that you execute at the end your windows install, using your winnt.sif file. This program will have a little check box for all the programs that you have on your cd, and you simply click which ones you want to install. That in turn, will run a separate batch file per application, installing that application.

It seems like a long way round, but it'll work.

Link to comment
Share on other sites

You might be able to use a selection of commands such as 'goto', 'if' and get it to ask you yes/no options. If Yes, goto this section, if no, skip this section. It can be done I think, but haven't done it myself.

Link to comment
Share on other sites

You might be able to use a selection of commands such as 'goto', 'if' and get it to ask you yes/no options. If Yes, goto this section, if no, skip this section. It can be done I think, but haven't done it myself.

I prefer this over a small vb program, because I can't really code well in VB. "Hello World" is good for me :)

I will see what I can come up with.

]Bonkers[

Link to comment
Share on other sites

:BEGIN

Set /p %install%=Do you wish to install Zone Alarm Pro 4.0O(Y/N) :

If %install%==Y Goto YES

If %install%==N GOTO NO

Echo Please either say Y or N

GOTO Begin

:Yes

ECHO Installing Zone Alarm Pro 4.0.123.012

ECHO Please Wait...

Start /wait %systemdrive%\installs\Z_Alarm\zapsetup.exe /s /noreboot

Goto END

:NO

ECHO You chose not to install Zone Alarm Pro 4.0

ECHO Now continuing with installation

Goto END

:END

Will that work, any suggestions?

Link to comment
Share on other sites

Nah, thanks b0r3d, but I got the batch to work!

The only change I needed to do was change

Set /p %install%=Do you wish to install Zone Alarm Pro 4.0O(Y/N):

to

Set /p install=Do you wish to install Zone Alarm Pro 4.0O(Y/N) :

Link to comment
Share on other sites

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...