batman2k Posted February 22, 2005 Posted February 22, 2005 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 offcls:startECHO.set choice=set /p choice=Do you want to install office?if not '%choice%'=='' set choice=%choice:~0,1%if '%choice%'=='y' goto officeyesif '%choice%'=='n' goto officenoECHO "%choice%" is not a valid optionECHO.goto start:officeyesstart /wait %systemdrive%\install\OFFICE\setup.exe TRANSFORMS=PRO11.MST /qb-goto hitman:officeneegoto hitman:hitmanset choice=set /p choice=Do you want to install Hitman ?if not '%choice%'=='' set choice=%choice:~0,1%if '%choice%'=='y' goto hitmanyesif '%choice%'=='n' goto hitmannoECHO "%choice%" is not a valid optionECHO.goto hitman:hitmanyesstart /wait %systemdrive%\install\HITMANPRO\hitmanpro2nl.exe /verysilentgoto end:hitmannogoto end:end
erik_demon Posted February 22, 2005 Posted February 22, 2005 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 WPISee this topic for a screen shot of how my WPI looks like
batman2k Posted February 22, 2005 Author Posted February 22, 2005 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 WPISee this topic for a screen shot of how my WPI looks like<{POST_SNAPBACK}>Thanks for the link, it looks very nice. Gonna give it a try tomorrow (if its not to hard)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now