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
- :
- Installing files to a dynamically determined location
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
Apr 24, 2008
09:41 AM
Installing files to a dynamically determined location
In addition to my main application files, I'm trying to install a DLL into a location that I don't know in advance. During setup, I run an InstallScript script to check some registry keys and find out where the DLL should be installed. I then use the MsiSetTargetPath() method to change the value of the DirectoryIdentifier that the DLL is installed to.
For some reason this doesn't seem to work. When enabling verbose logging I can see my script running successfully, but even though the directory identifier is set correctly, the DLL is still deployed to the original, default value of that Directory Identifier.
I've tried moving the custom action around in the installation sequence, but I can't seem to find the right spot.
For some reason this doesn't seem to work. When enabling verbose logging I can see my script running successfully, but even though the directory identifier is set correctly, the DLL is still deployed to the original, default value of that Directory Identifier.
I've tried moving the custom action around in the installation sequence, but I can't seem to find the right spot.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 24, 2008
05:00 PM
For a slightly different approach, perhaps see this newsletter tip (PDF warning): http://www.acresso.com/webdocuments/PDF/is_install_dir_from_app_search.pdf.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)