fillalph Posted December 21, 2005 Share Posted December 21, 2005 I am in the process is changing part of my method.What I do is have an inf call a batch which resides in the folder along with the install file and reg file (if needed).Here is the code to the batch file now:cmdow @ /HID@ECHO OFFFOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\WIN51IP.SP2 SET TEMP=%%i:SET CDROM=%TEMP%\$OEM$\Installsstart /wait "%CDROM%\common\alcohol\setup.msi /qb Reboot=ReallySuppress"regedit /S "%CDROM%\common\alcohol\alcohol.reg"EXITWhat happens is that the command window closes and reopens a new command window with the title "I:\$OEM$\Installs\common\alcohol\setup.msi /qb Reboot=ReallySuppress and the current directory is my starting directory.Now, if I remove the quotes for the setup program it runs fine.start /wait %CDROM%\common\alcohol\setup.msi /qb Reboot=ReallySuppressAnyone have an idea why the quotes do that?Thanks]Bonkers[ Link to comment Share on other sites More sharing options...
MHz Posted December 21, 2005 Share Posted December 21, 2005 Start /? will tell you why.Not even sure why you are using Start /Wait as without waits by default anyway. This is what I would simply use.msiexec /i %CDROM%\common\alcohol\setup.msi /qb Reboot=ReallySuppress Link to comment Share on other sites More sharing options...
ATM Posted December 21, 2005 Share Posted December 21, 2005 thats easyu must know the command line interface or hoe commands workthe universal pattern isexecutable prameter1 parameter2 parameter3 and so onwhen u supply the name of the executable the only whole path must be in quotes not the parametersso try thisstart /wait "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppressthis will worki m just stickin to basics. i dunno much of the stuffbut i m sure the above will help u now and future Link to comment Share on other sites More sharing options...
MHz Posted December 21, 2005 Share Posted December 21, 2005 thats easyu must know the command line interface or hoe commands workthe universal pattern isexecutable prameter1 parameter2 parameter3 and so onwhen u supply the name of the executable the only whole path must be in quotes not the parametersso try thisstart /wait "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppressthis will worki m just stickin to basics. i dunno much of the stuffbut i m sure the above will help u now and futureDid you read through the 1st post ? The 1st post states that the command that you show will fail. And do you know why, I will tell you since you did not do a Start /? as I stated in my last post. The parameter that has the 1st set of double quotes is the title for XP OSes and above.To use Start /Wait you would have to do this:start /wait "" "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppresselse have no spaces and use no quotes. Or you can do it the correct way with running msiexec directly. Link to comment Share on other sites More sharing options...
fillalph Posted December 21, 2005 Author Share Posted December 21, 2005 Thank you for your responses guys. I got it working. (I just finished my exam period and didn't even think of going /?).]Bonkers[ 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