/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
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".
Posted by: joeyrego 19 years ago
Senior Yellow Belt
0
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
Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
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
Posted by: joeyrego 19 years ago
Senior Yellow Belt
0
thanks for your help. i have two quick questions? what does the Chr(34) do and what is the for?

thanks
Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
This is used to insert quotation marks into the string using the ANSI value of the quote character (34).
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ