1to1 Posted April 1, 2009 Share Posted April 1, 2009 Hi All.I like to run this batch file (Batch1.cmd) to install my file and than copy over second batch file and than run it to complete the task, I am not having much luck. @echo off&color 0b&cls echo.&echo running MyFile silent install... start "" /wait MyFile.msi /qb echo.&echo done echo.&echo copying Registration to MyFile MyFile copy Registration .txt "C:\Program Files\MyDirectory\" copy batch2.cmd "C:\Program Files\MyDirectory\" call Batch2.cmd /runecho.&echo doneThis my config.js line cmds[pn]=['"%wpipath%\\Install\\Applications\\****\\Batch1.cmd"'];Where am I goning wrong Link to comment Share on other sites More sharing options...
mritter Posted April 1, 2009 Share Posted April 1, 2009 call C:\Program Files\MyDirectory\Batch2.cmd /runGive it full path. Link to comment Share on other sites More sharing options...
1to1 Posted April 1, 2009 Author Share Posted April 1, 2009 thanks mritter.the problem is that batch1.cmd start up and than windows say could not find the path to (MyFile.msi).thanks. Link to comment Share on other sites More sharing options...
1to1 Posted April 1, 2009 Author Share Posted April 1, 2009 Sort it. Link to comment Share on other sites More sharing options...
iamtheky Posted April 2, 2009 Share Posted April 2, 2009 (edited) start "" /wait MyFile.msi /qbI always start /wait msiexec.exe /i myfile.msi /q[]Can someone smart (or a finer googler than I) tell me what the difference is? I tested with acroread.msi and i get the same exact behavior regardless of syntax. Edited April 2, 2009 by iamtheky Link to comment Share on other sites More sharing options...
chaoticyeshua Posted April 2, 2009 Share Posted April 2, 2009 In my experience, it does the same thing for msi files, but I always have my commands structured the same way you do. Link to comment Share on other sites More sharing options...
AlBundy33 Posted April 4, 2009 Share Posted April 4, 2009 Why do you not use one batch-file for your complete task?!?You can try this - this should work@ECHO OFFCOLOR 0bCLSREM change directory to the batch-directoryPUSHD "%~dp0"ECHO.ECHO running MyFile silent install...START "" /wait MyFile.msi /qbECHO.ECHO doneECHO.ECHO copying Registration to MyFileECHO copy Registration.txt "%PROGRAMFILES%\MyDirectory\"COPY /Y batch2.cmd "%PROGRAMFILES%\MyDirectory\"PUSHD "%PROGRAMFILES%\MyDirectory\"CALL Batch2.cmd /runPOPDECHO.ECHO donePOPD 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