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: teach InstallShield about existing msi-package and an .exe file
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 25, 2007
04:44 AM
teach InstallShield about existing msi-package and an .exe file
Hi all,
I need help concernig the start another msi- package and an .exe file.
my release path is:
"C:\InstallShield 2008-Projekte\setup25.10.07\myApplication\PROJECT_ASSISTANT\CDROM_IMAGE\DiskImages\Disk1"
2 Files will be manual added in the CD-ROM together with my release. Now i wish teach InstallShield to do the following: In the same medium there are 2 files (.msi and .exe) which will be started befor the main installation will be started. those 2 files must be exist on the CD and not a part of the main Installation.
I have a Basic msi project. can someone help me.
I appreciate your help, thanks
chbiki
I need help concernig the start another msi- package and an .exe file.
my release path is:
"C:\InstallShield 2008-Projekte\setup25.10.07\myApplication\PROJECT_ASSISTANT\CDROM_IMAGE\DiskImages\Disk1"
2 Files will be manual added in the CD-ROM together with my release. Now i wish teach InstallShield to do the following: In the same medium there are 2 files (.msi and .exe) which will be started befor the main installation will be started. those 2 files must be exist on the CD and not a part of the main Installation.
I have a Basic msi project. can someone help me.
I appreciate your help, thanks
chbiki
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 25, 2007
07:25 AM
You'll want to use Setup Prerequisites for this. You can't run two MSI's at once (Windows Installer won't let you), and nesting them is a deprecated feature and very much not recommended.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 25, 2007
04:42 PM
Hi jedimaster_mark !
thank you for your answer !
First a tried Prerequisites, but here i can only give conditions the main setup depends on. i cant give anywehre, start a .exe file (or .msi file) that already exists in the CD-Root.
When i call the custmer action wizard to create a new custmer action i can give in a pop up the "typ" of such action. I can set the "typ" to "start a further MSI package ". But also here the package must be included in the InstallShield project.
My Problem may be easy:
On the same CD-Root like the setup.exe and .msi there are 2 files an .exe and a .msi. How can i teach Installshield to start such files.
Unfortunately i dont know the solution!
please help me out.
thanks a lot !
chbiki
but i dont know the solution
thank you for your answer !
First a tried Prerequisites, but here i can only give conditions the main setup depends on. i cant give anywehre, start a .exe file (or .msi file) that already exists in the CD-Root.
When i call the custmer action wizard to create a new custmer action i can give in a pop up the "typ" of such action. I can set the "typ" to "start a further MSI package ". But also here the package must be included in the InstallShield project.
My Problem may be easy:
On the same CD-Root like the setup.exe and .msi there are 2 files an .exe and a .msi. How can i teach Installshield to start such files.
Unfortunately i dont know the solution!
please help me out.
thanks a lot !
chbiki
but i dont know the solution
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 26, 2007
12:11 PM
🙂
Hi,
i tried to do it using a InstallScript custmer action. The function LaunchApp() failed because of the wrong path.
Can some one give a suggestion how can i get the setup path (path wehre is setup.exe and .msi). This path will be given to LaunchApp() as argument.
I ´m really need help ! It would be very nice if somone answer me!
Thanks
chbiki
Hi,
i tried to do it using a InstallScript custmer action. The function LaunchApp() failed because of the wrong path.
Can some one give a suggestion how can i get the setup path (path wehre is setup.exe and .msi). This path will be given to LaunchApp() as argument.
I ´m really need help ! It would be very nice if somone answer me!
Thanks
chbiki
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2007
12:15 PM
chbiki wrote:
🙂
Hi,
i tried to do it using a InstallScript custmer action. The function LaunchApp() failed because of the wrong path.
Can some one give a suggestion how can i get the setup path (path wehre is setup.exe and .msi). This path will be given to LaunchApp() as argument.
I ´m really need help ! It would be very nice if somone answer me!
Thanks
chbiki
In Basic MSI:
1. Create an InstallScript function as follows:
export DVDAppLaunch(HWND);
function DVDAppLaunch(hMSI)
STRING AppPath; // Stores the Path to the Application
NUMBER nBuff; // Buffer size
begin
// Get the SourceDirectory - this directory is where your setup.exe or msi file is being launched
MsiGetProperty(hMSI, "SourceDir", AppPath, nBuff);
// add the directory of the folder and the name of the application to the AppPath variable
AppPath = AppPath + "subdirectory\\App.exe";
// Launch the application
LaunchApplication(AppPath, "", "", SW_SHOWNORMAL, 0, LAAW_OPTION_NOWAIT|LAAW_OPTION_CHANGEDIRECTORY);
end;
2. Create a Custom Action that calls the DVDAppLaunch() function
Hopes that helps! 😄
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2007
08:08 AM
Thanks Thomas Nguyen,
I´ll try it !
I´ll try it !
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2007
03:40 AM
🙂
Hi Thomas Nguyen,
now it gos fine, i can find the right path and the .exe file had been started.
Many thanks for your help ! Do you know how to set the .exe file to be silent (/s) ?
The .msi file could be unfortunatlly not started perhaps. I started the .msi file after the .exe file in the same function. So while the .exe file runs the .mse file starts and it occurrs the error that another setup is running...
I try it in a separte custmer action.
Thanks
chbiki
Hi Thomas Nguyen,
now it gos fine, i can find the right path and the .exe file had been started.
Many thanks for your help ! Do you know how to set the .exe file to be silent (/s) ?
The .msi file could be unfortunatlly not started perhaps. I started the .msi file after the .exe file in the same function. So while the .exe file runs the .mse file starts and it occurrs the error that another setup is running...
I try it in a separte custmer action.
Thanks
chbiki
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 31, 2007
10:16 AM
Sorry that it took me awhile to respond to you. I have my own projects to complete.
It depends on how you want to tackle the execution of the .exe and msi files.
Do you want to execute the .exe file and wait for it to finish executing?
If so, don't use the LAAW_OPTION_NOWAIT, instead use the LAAW_OPTION_WAIT.
You should check the InstallShield's Install Script Language Reference Guide.pdf for more information regarding the LaunchApplication function. If you need more help let me know, but please specify what it is that you are trying to do exactly. Are you trying to launch two executables? If so, it is recommended that you launch one and wait for it to finish before launching another executable. To run the executable silently, it really depends on the kind of executable that you are launching. If the executable is another installshield project that was created, I'm sure there is a silent argument that you can pass to it. If it is a redistributable, you will have to get the command-line arguments reference from Microsoft (or launching the redistributable from the command prompt with the /? argument). Sorry, that I can't help you.
If you meant how you can pass the arguments to the application while launching it.
Here's the syntax for the LaunchApplication:
LaunchApplication( byval string szProgram, byval string szCmdLine, byval string szDirectory, byval number nShowWindow, byval number nTimeOut, byval number nOptions );
I would pass my arguments to the second parameter.
Sincerely,
Thomas
It depends on how you want to tackle the execution of the .exe and msi files.
Do you want to execute the .exe file and wait for it to finish executing?
If so, don't use the LAAW_OPTION_NOWAIT, instead use the LAAW_OPTION_WAIT.
You should check the InstallShield's Install Script Language Reference Guide.pdf for more information regarding the LaunchApplication function. If you need more help let me know, but please specify what it is that you are trying to do exactly. Are you trying to launch two executables? If so, it is recommended that you launch one and wait for it to finish before launching another executable. To run the executable silently, it really depends on the kind of executable that you are launching. If the executable is another installshield project that was created, I'm sure there is a silent argument that you can pass to it. If it is a redistributable, you will have to get the command-line arguments reference from Microsoft (or launching the redistributable from the command prompt with the /? argument). Sorry, that I can't help you.
If you meant how you can pass the arguments to the application while launching it.
Here's the syntax for the LaunchApplication:
LaunchApplication( byval string szProgram, byval string szCmdLine, byval string szDirectory, byval number nShowWindow, byval number nTimeOut, byval number nOptions );
I would pass my arguments to the second parameter.
Sincerely,
Thomas