cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anom217
Level 8

Accessing INSTALLDIR in deferred custom action

How do I get the installation destination path in a deferred custom action for a Basic MSI project? I'm trying to get the value of INSTALLDIR, but I just get an empty string. Is there a simple way to do this?
Labels (1)
0 Kudos
(4) Replies
anthonyw
Level 3

Hi,

I'm pretty new to InstallShield but I just implemented what you'd like to do. What I did was create a property and then I set that property to INSTALLDIR in a custom action. I then accessed this property in an InstallScript using the MsiGetProperty with "CustomActionData" parameter. The key in implementing this is to name your InstallScript function that same as your property.

I hope this helps.

Anthony
0 Kudos
DebbieL
Level 17

0 Kudos
anom217
Level 8

Okay thanks. It was a bit confusing, but I eventually got it to work.

But what if I wanted to get both INSTALLDIR and SUPPORTDIR for use in the same InstallScript function? I believe I saw a help article on doing this in VBScript using arrays. Would I do it similarly in InstallScript? What would I name the Custom Action since I am getting more than one property?

Thanks
0 Kudos
anom217
Level 8

Actually, I figured it out using lists. Thanks again.
0 Kudos