Jump to content

[batch] Do You Want To Install .... ?


batman2k

Recommended Posts

Hi all,

I found a batchfile that lets a user choice if he/she wants to install software.

it uses set /p and is a replacement for the old choice command. (so its 2k/xp compatible)

it might be usefull for people who dont know to much (like myself) about scripting.

im posting this cause i couldnt find it yet on this forum, but if im wrong feel free to correct me..

@ECHO off
cls
:start
ECHO.

set choice=
set /p choice=Do you want to install office?
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='y' goto officeyes
if '%choice%'=='n' goto officeno
ECHO "%choice%" is not a valid option
ECHO.
goto start
:officeyes
start /wait %systemdrive%\install\OFFICE\setup.exe TRANSFORMS=PRO11.MST /qb-
goto hitman
:officenee
goto hitman



:hitman
set choice=
set /p choice=Do you want to install Hitman ?
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='y' goto hitmanyes
if '%choice%'=='n' goto hitmanno
ECHO "%choice%" is not a valid option
ECHO.
goto hitman
:hitmanyes
start /wait %systemdrive%\install\HITMANPRO\hitmanpro2nl.exe /verysilent
goto end
:hitmanno
goto end
:end

Link to comment
Share on other sites


This is indeed a nice script. The only downside that it has, is that you still manualy need to choose which programs you want to install.

There are a lot of alternatives for this script.

My personal favorite is WPI

See this topic for a screen shot of how my WPI looks like

Link to comment
Share on other sites

This is indeed a nice script. The only downside that it has, is that you still manualy need to choose which programs you want to install.

There are a lot of alternatives for this script.

My personal favorite is WPI

See this topic for a screen shot of how my WPI looks like

Thanks for the link, it looks very nice. Gonna give it a try tomorrow (if its not to hard)

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