cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MRKiscaden
Level 5

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:

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
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Perhaps use a private Directory property (mydata instead of MYDATA), which can't be changed at the command line?
0 Kudos
MRKiscaden
Level 5

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.
0 Kudos