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

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

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