Foxen Posted July 11, 2004 Share Posted July 11, 2004 Is it possible to integrate an option every time a program is about to install silently?LikeECHO.ECHO Install DirectX Y/NIf Y:ECHO Installing DirectX 9.0b...ECHO Please wait...start /wait %systemdrive%\Install\Applications\DirextX\DX9NTopk.exeI know the above code isn't right!Hope you know what I mean... Link to comment Share on other sites More sharing options...
evilvoice Posted July 11, 2004 Share Posted July 11, 2004 personally, if you wanted a simple chooser, I would use cmd files...ECHO OFFset /p directx=Do you want to install DirectX 9.0b?set /p wmp9=Do you want to install WMP9?if %directx%==y %systemdrive%\Install\Applications\DirextX\DX9NTopk.exeif %wmp9%==y %systemdrive%\Install\Applications\WMP\WMP9.exeset directx=set wmp9=its not silent, and im not sure about file names, but this is just an example Link to comment Share on other sites More sharing options...
Foxen Posted July 11, 2004 Author Share Posted July 11, 2004 personally, if you wanted a simple chooser, I would use cmd files...Is there an easier way?Any link about how to do that? I'm n00bish about this stuff. ECHO OFFset /p directx=Do you want to install DirectX 9.0b?set /p wmp9=Do you want to install WMP9?if %directx%==y %systemdrive%\Install\Applications\DirextX\DX9NTopk.exeif %wmp9%==y %systemdrive%\Install\Applications\WMP\WMP9.exeset directx=set wmp9=Leave blank after set directx=? Link to comment Share on other sites More sharing options...
MCT Posted July 11, 2004 Share Posted July 11, 2004 this site has alot of good examples on batch:http://www.computerhope.com/msdos.htmregards Link to comment Share on other sites More sharing options...
evilvoice Posted July 11, 2004 Share Posted July 11, 2004 when your done...use set directx=and leave it blank...this removes the variable from your system...and I just use directx because its what you used...try to make sure whatever variable you attach to set is only 8 characters (simpler) and then at the end use the blank set command, but dont forget to change directx to whatever variable you attach to your program. Link to comment Share on other sites More sharing options...
Foxen Posted July 12, 2004 Author Share Posted July 12, 2004 It worked great!I have:ECHO.ECHO Starting installation of ApplicationsECHO OFFset /p java=Do you want to install Java?set /p directx=Do you want to install DirectX?set /p msnm=Do you want to install Messenger?set /p hotfix=Do you want to install Hotfixes?if %java%==y start /wait %systemdrive%\Install\Applications\Java\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"if %directx%==y start /wait %systemdrive%\Install\Applications\DirectX\DX9NTopk.exeif %msnm%==y start /wait %systemdrive%\Install\Applications\MSN\MsnMsgs.msi /QBif %hotfix%==y start /wait %systemdrive%\Install\Applications\Hotfixes\hotfix.exe /passive /norestart /o /nset java=set directx=set msnm=set hotfix=And after answering y for every question it installed only the desired programs.Very useful when creating a DVD and put all the programs in it without having to install them all.Thanx! Link to comment Share on other sites More sharing options...
evilvoice Posted July 12, 2004 Share Posted July 12, 2004 cool...glad its working for you Link to comment Share on other sites More sharing options...
MR. Kuma Posted July 13, 2004 Share Posted July 13, 2004 nice code!!thinkX a lot man!~ Link to comment Share on other sites More sharing options...
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