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
- :
- Relocate feature/component
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
‎Jun 05, 2009
07:47 AM
Relocate feature/component
Hi,
Does anyone know of a way to change the directory a feature/component is installed into *after* installation? For instance, if a user wants to free up some disk space on the disk they originally selected.
I'm using a basic MSI and the only obvious way seems to be to uninstall and reinstall the feature. This is complicated and unwelcome because of configuration information having to be backed off and restored afterwards (amongst other things).
I tried running a command line with REINSTALL=feature1 DEST1=new-directory where DEST1 is the directory table entry used by feature1. However, DEST1 just gets reset by CostFinalize and the feature stays where it is.
Thanks
Phil
Does anyone know of a way to change the directory a feature/component is installed into *after* installation? For instance, if a user wants to free up some disk space on the disk they originally selected.
I'm using a basic MSI and the only obvious way seems to be to uninstall and reinstall the feature. This is complicated and unwelcome because of configuration information having to be backed off and restored afterwards (amongst other things).
I tried running a command line with REINSTALL=feature1 DEST1=new-directory where DEST1 is the directory table entry used by feature1. However, DEST1 just gets reset by CostFinalize and the feature stays where it is.
Thanks
Phil
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2009
08:33 AM
Right, I believe Windows Installer requires the uninstall-and-reinstall. From the help topic "Changing the Target Location for a Directory":
- Do not attempt to change the target directory path if some components that use the path are already installed for the current user or for a different user.
- Do not attempt to change the target directory path during a Maintenance Installation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2009
08:49 AM
Thanks for that, Robert. Well spotted in finding that topic -- I must have missed it somehow.
I can now reply to the designer who wondered why we couldn't just copy the files and "tell the installer to off".
Phil
I can now reply to the designer who wondered why we couldn't just copy the files and "tell the installer to
Phil