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

InstallScript MSI Installs to Default Location During Minor Upgrades

InstallScript MSI Installs to Default Location During Minor Upgrades

Summary

During a minor upgrade, if new components are added, the files in the new component gets installed to the default location rather than subfolder of user specified location.

Symptoms

During a minor upgrade, if new components are added, the files in the new component gets installed to the default location rather than the subfolder of user specified location.

Cause

This is a limitation due to the interaction between the InstallScript and MSI components

Steps To Reproduce

  1. Create sample InstallScript MSI
  2. Install built install on target machine with an user specified location
  3. Create a minor upgrade by changing version number
  4. Add a new component and file installing to subfolder of INSTALLDIR
  5. Build minor upgrade
  6. Run minor upgrade on target machine

Workaround

  • The work around is to replace the identifier for the subfolder with a non-public one. Look for the new entry in the directory table. For example if the identifier is "SUBFOLDER" in the Directory column, change it to "Subfolder"
  • Writing code to handle the locations of the directories explicitly.

Additional Information

Additional information on upgrades:
Major Upgrade vs. Minor Upgrade vs. Small Update

Was this article helpful? Yes No
No ratings
Version history
Revision #:
1 of 1
Last update:
‎Jul 17, 2018 11:29 PM
Updated by: