Script Multiple Installs One after the other
Hi,
I am trying to script a basic install for multiple installations. i have about 8 applications that need to be installed. I need each one to wait for the previous one to finish before the next one starts.
right now i am using
%Comspec% /c Start /w MSIexec.exe /I "app.msi" /QB ALLUSERS=1
This works well and good for my msi's but when i want to do just exe's is where the problem lies.
i tried
%Comspec% /c Start /w "app.exe"
but i get two command prompt windows that open up and nothing happens?
Can anyone help?
I appreciate any help that i can get.
I am trying to script a basic install for multiple installations. i have about 8 applications that need to be installed. I need each one to wait for the previous one to finish before the next one starts.
right now i am using
%Comspec% /c Start /w MSIexec.exe /I "app.msi" /QB ALLUSERS=1
This works well and good for my msi's but when i want to do just exe's is where the problem lies.
i tried
%Comspec% /c Start /w "app.exe"
but i get two command prompt windows that open up and nothing happens?
Can anyone help?
I appreciate any help that i can get.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
WiseUser
19 years ago
I don't particularly like your solution - I'd use vbscript myself. Although it's probably the way I would have done it 5 years ago.
The most probable reason that it isn't working is that your "app.exe" can't be found using the standard search order. You need to specify the full path to this executable in your command line, include it's location in the path, or make it's location the current directory before you run the command line.
Assuming you're using a batch file, try something like the following:
%Comspec% /c Start /w "%AppExePath%\app.exe"
OR
Set Path=%Path%;%AppExePath%
%Comspec% /c Start /w "app.exe"
OR
CD "%AppExePath%"
%Comspec% /c Start /w "app.exe"
Obviously, you'll have to replace %AppExePath% with the correct full path to the folder containing "app.exe".
The most probable reason that it isn't working is that your "app.exe" can't be found using the standard search order. You need to specify the full path to this executable in your command line, include it's location in the path, or make it's location the current directory before you run the command line.
Assuming you're using a batch file, try something like the following:
%Comspec% /c Start /w "%AppExePath%\app.exe"
OR
Set Path=%Path%;%AppExePath%
%Comspec% /c Start /w "app.exe"
OR
CD "%AppExePath%"
%Comspec% /c Start /w "app.exe"
Obviously, you'll have to replace %AppExePath% with the correct full path to the folder containing "app.exe".
Posted by:
joeyrego
19 years ago
thanks for the help. I am sorry that i didnt say that i am already adding the full %appexepath% to the script. it still isn't working.
you say that you think VB would be a better solution? is there a way that you could send me a sample software install script that will launch both exe and msi applications one right after the other? whilst waiting until the previous app is finished installing?
id appreciate any help that you can give
you say that you think VB would be a better solution? is there a way that you could send me a sample software install script that will launch both exe and msi applications one right after the other? whilst waiting until the previous app is finished installing?
id appreciate any help that you can give
Posted by:
WiseUser
19 years ago
In it's simplest, rawest form, it should look something like this:
Set oWsh = CreateObject("Wscript.Shell")
oWsh.Run "Msiexec.exe /I " & Chr(34) & "drive:\fullpathtomymsi\app.msi" & Chr(34) & "/QB ALLUSERS=1", 5, True
oWsh.Run Chr(34) & "drive:\fullpathtomyapp\app1.exe" & Chr(34), 5, True
oWsh.Run Chr(34) & "drive:\fullpathtomyapp\app2.exe" & Chr(34), 5, True
Set oWsh = Nothing
oWsh.Run "Msiexec.exe /I " & Chr(34) & "drive:\fullpathtomymsi\app.msi" & Chr(34) & "/QB ALLUSERS=1", 5, True
oWsh.Run Chr(34) & "drive:\fullpathtomyapp\app1.exe" & Chr(34), 5, True
oWsh.Run Chr(34) & "drive:\fullpathtomyapp\app2.exe" & Chr(34), 5, True
Set oWsh = Nothing
Posted by:
joeyrego
19 years ago
Posted by:
WiseUser
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.