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

Current Directory property or variable referencing msi

CChong
By Level 11 Flexeran
Level 11 Flexeran
Hi all,

Is there a property or variable that I can use to reference the location where the msi is launched from ? for example:

In c:\temp\app , I have c:\temp\app\test.msi and c:\temp\app\server.ini . I am creating a installscript and custom action to read a server name from server.ini and set a property for the msi to use. But how do I reference c:\temp\app without having to hard-code it?

Thanks,

Jackson
(2) Replies
CChong
By Level 11 Flexeran
Level 11 Flexeran
Never mind, I figured it out. For anyone who may have the same question, you've gotta set a ResolveSource Action and then use a MsiGetProperty to get SOURCEDIR.
Besides MsiGetProperty on the SourceDir property, there is also the Directory table which stores directory heirarchy information. For more information see:

Q103168 HOWTO: Using the Directory Table

Q105723 HOWTO: Setting a Directory Table Entry At Runtime

Q104462 INFO: Differences Between Directory Table Entries and Path Variables