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

MSI Project - Custom destination path in Components

Hi,

Im trying to set a variable for some of my components which i shall assign later at run time in the installscript. I have tried creating the variable in Path Variables but i cant seem to see it in the destination path. How can this be achieved?

Regards,

Sniperkid
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

Actually, the Path Variables view is just for paths to source files on your build system. You can use the Files and Folders view, or use the create-a-destination command in a component's Destination setting menu, to create a custom destination directory identifier.
0 Kudos
sniperkid
Level 3

What i mean is, the folder path varies per computer as it grabs the location from the registry i cant specify the exact registry because it depends on what version is installed, this is handled in the installscript code and then it sets the variable. So i just need a way to set a variable that i can call/change in the installscript code on run time.

Regards,

Sniperkid
0 Kudos
RobertDickau
Flexera Alumni

Perhaps MsiSetTarget?

You might also look at this old newsletter tip (PDF): http://www.flexerasoftware.com/webdocuments/PDF/is_install_dir_from_app_search.pdf.
0 Kudos