Jump to content

Recommended Posts

Posted

I am trying to run 2 commands from WPI. 7.2.0 The first installs the software, and the second cleans up the install.

My first command calls r:\math\matlab_2008a\matlab_setup.cmd

@echo off

pushd %~dp0

setup.exe -if inst.ini

popd

This will install the program, but the batch finishes before the install is coomplete, and the 2nd command runs with nothing to cleanup.

I've tried

start "inst" /WAIT "setup.exe -if inst.ini"

but get an error stating it cannot find the program setup.exe -if inst.ini

If I put the setup.exe -if inst.ini in another file and then

start "inst" /I /WAIT /D r:\math\matlab_2008a "m-set.cmd"

the program will install but I then have 2 command windows open which do not terminate when the install is finished, so the cleanup command cannot run.


Posted
Please try this:

@echo off

pushd %~dp0

start /wait setup.exe -if inst.ini

popd

Exit

Same result but one question should this be in WPI cmd line or as I'm putting it in a batch file?

Posted
Please try this:

@echo off

pushd %~dp0

start /wait setup.exe -if inst.ini

popd

Exit

Same result but one question should this be in WPI cmd line or as I'm putting it in a batch file?

Sorry that would be inna cmd file called by WPI...

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