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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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".
Answered 05/29/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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
Answered 05/30/2005 by: joeyrego
Senior Yellow Belt

Please log in to comment
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
Answered 05/30/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
thanks for your help. i have two quick questions? what does the Chr(34) do and what is the for?

thanks
Answered 05/30/2005 by: joeyrego
Senior Yellow Belt

Please log in to comment
0
This is used to insert quotation marks into the string using the ANSI value of the quote character (34).
Answered 05/31/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity