Jump to content

Respawning Command Window


Recommended Posts

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 OFF

FOR %%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$\Installs

start /wait "%CDROM%\common\alcohol\setup.msi /qb Reboot=ReallySuppress"
regedit /S "%CDROM%\common\alcohol\alcohol.reg"
EXIT

What 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=ReallySuppress

Anyone have an idea why the quotes do that?

Thanks

]Bonkers[

Link to comment
Share on other sites


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

thats easy

u must know the command line interface or hoe commands work

the universal pattern is

executable prameter1 parameter2 parameter3 and so on

when u supply the name of the executable the only whole path must be in quotes not the parameters

so try this

start /wait "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppress

this will work

i m just stickin to basics. i dunno much of the stuff

but i m sure the above will help u now and future

Link to comment
Share on other sites

thats easy

u must know the command line interface or hoe commands work

the universal pattern is

executable prameter1 parameter2 parameter3 and so on

when u supply the name of the executable the only whole path must be in quotes not the parameters

so try this

start /wait "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppress

this will work

i m just stickin to basics. i dunno much of the stuff

but i m sure the above will help u now and future

Did 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=ReallySuppress

else 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

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