This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Installing form command line?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
10:46 AM
Installing form command line?
I am using IS2008 install script project.
I have object embedded in my main IS project which installs the driver for the application. In that object i want to specific installer using command line.
For example i want to execute following line of code
msiexec /quiet /i TARGETDIR^ABC.msi INSTALLSDK=0
how would i do this?
Any suggestions?
Thanks in advance
I have object embedded in my main IS project which installs the driver for the application. In that object i want to specific installer using command line.
For example i want to execute following line of code
msiexec /quiet /i TARGETDIR^ABC.msi INSTALLSDK=0
how would i do this?
Any suggestions?
Thanks in advance
(9) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:10 PM
Look at the help for the LaunchAppAndWait function.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:24 PM
Eric,
I tried using LaunchAppAndWait as follows:
LaunchAppAndWait(TARGETDIR ^"Drivers\\A\\ABC.exe",
"/i /qn INSTALLSDK=0", WAIT);
Its not launching the application. I am not sure whether i am using it correctly.Its giving me some window indicating that it failed.
How would i use msiexec /quiet /i TARGETDIR^abc.exe INSTALLSDK=0 using LaunchAppAndWait?
Any help is greatly appreciated.
Thanks a lot
I tried using LaunchAppAndWait as follows:
LaunchAppAndWait(TARGETDIR ^"Drivers\\A\\ABC.exe",
"/i /qn INSTALLSDK=0", WAIT);
Its not launching the application. I am not sure whether i am using it correctly.Its giving me some window indicating that it failed.
How would i use msiexec /quiet /i TARGETDIR^abc.exe INSTALLSDK=0 using LaunchAppAndWait?
Any help is greatly appreciated.
Thanks a lot
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:32 PM
Are you trying to install an MSI or launch and EXE? If you are trying to install an MSI then use:
You may need to pass the full path to MSIEXEC, but this should work.
LaunchAppAndWait ("MsiExec.exe", "/quiet /i TARGETDIR^ABC.msi INSTALLSDK=0
", nOptions );
You may need to pass the full path to MSIEXEC, but this should work.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:43 PM
Eric,
I am trying to use .EXE , i dont have MSI file.
Whats the work around for the EXE file? I mean are there are any different switches ?
thanks for the help
I really appreciate it.
I am trying to use .EXE , i dont have MSI file.
Whats the work around for the EXE file? I mean are there are any different switches ?
thanks for the help
I really appreciate it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:45 PM
Make sure the EXE is where you think it is when you try to lauch it. Try using a MessageBox to display the path to the EXE you are using. Then try to locate the file and see if it is where you say it is. Odds are it is not and that is causing your problem.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
01:22 PM
Eric,
Its launching the right exe from the TARGETDIR, problem is its an EXE file not MSI file so its failing to open that file saying that invalid Windows installer, so the command that you have given should work for EXE as well or there are different command for EXE file? I dont have MSI version of the file.
Thanks again
Its launching the right exe from the TARGETDIR, problem is its an EXE file not MSI file so its failing to open that file saying that invalid Windows installer, so the command that you have given should work for EXE as well or there are different command for EXE file? I dont have MSI version of the file.
Thanks again
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
01:24 PM
I'm confused, what file do you want to launch?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
01:51 PM
I want to launch SDK installer which is actually an exe file not an MSI file. I want to do silent install on this file.
If i try to launch it with msiexec then windows gives me error saying that invalid installer package. So i was just wondering what is the command i need to use instead of msiexec.
sorry for the confusion. I hope this makes it more clear.
Thanks.
If i try to launch it with msiexec then windows gives me error saying that invalid installer package. So i was just wondering what is the command i need to use instead of msiexec.
sorry for the confusion. I hope this makes it more clear.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
01:56 PM
If you are trying to launch an EXE then replace MSIEXEC with the path to the EXE. I think you indicated in a previous post that you tried this but got an error. What was that error?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)