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: MSI: users able to redirect folders via properties on 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
‎Oct 09, 2008
11:08 AM
MSI: users able to redirect folders via properties on install
Here is the scenario:
We have an MSI project. In that project there is a directory table entry called "CONFIG", with a corresponding directory named "config". If a User specifies a property called "CONFIG" on on the command line, the config directory will be written to their property value, and NOT to the correct location.
Is there a way this feature can be disabled?
For example:
We have an MSI project. In that project there is a directory table entry called "CONFIG", with a corresponding directory named "config". If a User specifies a property called "CONFIG" on on the command line, the config directory will be written to their property value, and NOT to the correct location.
Is there a way this feature can be disabled?
For example:
Normal Install
msiexec /i MyProject.msi INSTALLDIR=C:\myInstallDir
Writes the config directory to the folder:
C:\myInstallDir\config
Problem Install:
msiexec /i MyProject.msi INSTALLDIR=C:\myInstallDir CONFIG=C:\SomeOtherConfigDir
Writes the config directory to the folder:
C:\SomeOtherConfigDir
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2008
11:15 AM
Perhaps use a private Directory property (mydata instead of MYDATA), which can't be changed at the command line?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2008
11:21 AM
I was using the default directory names generated when drag&dropping the product files into the project from the "Files and Folders" window. All of the directory names generated by doing this are all caps by default. I have far too many directories to do it by hand.
If I switched to dynamic file linking, It would reduce the number of directory names to one. But I have so far been unable to get dynamic file linking to reliably work when applying patches.
If I switched to dynamic file linking, It would reduce the number of directory names to one. But I have so far been unable to get dynamic file linking to reliably work when applying patches.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)