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: Passing installdir to external MSI install
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
‎Aug 01, 2008
03:46 PM
Passing installdir to external MSI install
Hello, in my InstallScript build code I call an external MSI file that in turn installs a 3rd party application. I somehow need to pass the install drive and path chosen by the user (stored in svDir variable) to the MSI install. Is there a way to do this? Any information would be greatly appreciated. Thank you.
Regards,
Randy
Regards,
Randy
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 01, 2008
03:53 PM
If you're launching an MSI package by hand, you can pass the installation directory like this:
msiexec.exe /i pkg.msi INSTALLDIR="C:\some\custom\directory"
so perhaps assemble the INSTALLDIR="value" part in your code, and then pass that as an argument to LaunchAppAndWait?
msiexec.exe /i pkg.msi INSTALLDIR="C:\some\custom\directory"
so perhaps assemble the INSTALLDIR="value" part in your code, and then pass that as an argument to LaunchAppAndWait?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
01:27 PM
That worked perfectly Robert, thanks!!
If I may, one more question: We want to give our users the choice of which drive to install our software to, but we want control over the rest of the install path. In other words, we want to sort of "hard code" the rest of the path so they can only choose a different drive. Is there a way to do this? I noticed that when you click the Browse button on the Destination Location dialog box the field is open for the user to change the drive letter AND the rest of the path. Somehow, we would like to prevent them from doing that. Again, your assistance is greatly appreciated.
Regards,
Randy
If I may, one more question: We want to give our users the choice of which drive to install our software to, but we want control over the rest of the install path. In other words, we want to sort of "hard code" the rest of the path so they can only choose a different drive. Is there a way to do this? I noticed that when you click the Browse button on the Destination Location dialog box the field is open for the user to change the drive letter AND the rest of the path. Somehow, we would like to prevent them from doing that. Again, your assistance is greatly appreciated.
Regards,
Randy
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
04:23 PM
I'm not aware of a drive-selection dialog box; you might need to create a custom dialog box with a list-box or combo-box control, populating it with GetValidDrivesList, and then assembling the full path based on the user's selection.
For more information about the custom-dialog part, anyway, please see "Using InstallScript to Implement Custom Dialogs" and the end of "Using InstallScript to Process Dialog Controls".
For more information about the custom-dialog part, anyway, please see "Using InstallScript to Implement Custom Dialogs" and the end of "Using InstallScript to Process Dialog Controls".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2008
08:14 AM
I will definitely check that out, thanks again for all your help Robert. Cheers.
Regards,
Randy
Regards,
Randy
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)