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
- :
- Change target directory on "modify"
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
‎Sep 28, 2011
05:17 PM
Change target directory on "modify"
My installer package has a bit of a complex directory structure due to our product. Some features are installed to a base c:\css\ folder while the new .Net code gets installed to a directory existing in c:\Program Files\CSS\XXXXX\.
Since the base C:\CSS\ folder can be different depending on the client's environment, I have multiple directory properties depending on the component and the feature selected. For example I have a feature that only installs to the C:\CSS\ folder while another feature installs 1 component to the C:\CSS\ folder and the other components are installed to the C:\Program Files\CSS\XXXX\ folder.
In order to keep the clients from having to continuously remember or enter/select their default locations, I have those properties save to a registry key and each time an installer launches, it checks and populates that property value with the value in the registry if it finds one.
Due to the mix of destination directories for components, I have had to disable (not visible) the change button on the custom install dialog. Instead I have modified the "Destination Folder" dialog by adding not only a display for the default [INSTALLDIR] (c:\program files\css\xxxx\) but also a display for the [CSSFOLDER] (c:\css\). Both fields are able to be modified with the corresponding "change" button.
Now... on to the problem...
The initial install works flawlessly as far as I can tell. Its the "modify" that causes problems. It seems that as I launch into maintenance mode with the install package, I go to "Modify" and have it navigate next to my "Destination Folder" dialog again. Here it reads from the registry the last installed location properties and I can modify them... however if I add another feature that gets installed to the [CSSFOLDER] location, it still gets installed to the original [CSSFOLDER] property's folder instead of the folder I changed it to after entering "Modify". I also noticed that on the custom setup dialog box, it will not display the destination folder for each feature as it does on the "Install". Is there a setting I am perhaps overlooking? Or is that just an innate feature of the windows installer?
Since the base C:\CSS\ folder can be different depending on the client's environment, I have multiple directory properties depending on the component and the feature selected. For example I have a feature that only installs to the C:\CSS\ folder while another feature installs 1 component to the C:\CSS\ folder and the other components are installed to the C:\Program Files\CSS\XXXX\ folder.
In order to keep the clients from having to continuously remember or enter/select their default locations, I have those properties save to a registry key and each time an installer launches, it checks and populates that property value with the value in the registry if it finds one.
Due to the mix of destination directories for components, I have had to disable (not visible) the change button on the custom install dialog. Instead I have modified the "Destination Folder" dialog by adding not only a display for the default [INSTALLDIR] (c:\program files\css\xxxx\) but also a display for the [CSSFOLDER] (c:\css\). Both fields are able to be modified with the corresponding "change" button.
Now... on to the problem...
The initial install works flawlessly as far as I can tell. Its the "modify" that causes problems. It seems that as I launch into maintenance mode with the install package, I go to "Modify" and have it navigate next to my "Destination Folder" dialog again. Here it reads from the registry the last installed location properties and I can modify them... however if I add another feature that gets installed to the [CSSFOLDER] location, it still gets installed to the original [CSSFOLDER] property's folder instead of the folder I changed it to after entering "Modify". I also noticed that on the custom setup dialog box, it will not display the destination folder for each feature as it does on the "Install". Is there a setting I am perhaps overlooking? Or is that just an innate feature of the windows installer?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2011
12:26 PM
Changing the target directory of a Windows Installer package in maintenance mode is not supported:
Why can't I change the target directory path during a Maintenance Installation?
Unfortunately, there aren't really any ways around this except for installing as a major upgrade (or uninstalling/reinstalling for the same version).
Why can't I change the target directory path during a Maintenance Installation?
Unfortunately, there aren't really any ways around this except for installing as a major upgrade (or uninstalling/reinstalling for the same version).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2011
12:58 PM
joshstechnij wrote:
Changing the target directory of a Windows Installer package in maintenance mode is not supported:
Why can't I change the target directory path during a Maintenance Installation?
Unfortunately, there aren't really any ways around this except for installing as a major upgrade (or uninstalling/reinstalling for the same version).
Darn... thats what I had figured. Ill have to note that in our deployment documentation so I dont get flack back lol.