Hey,
I'm am trying to write an installscript for a custom action that looks at the path the user has selected for their data folder to see if it exists, not the same as INSTALLDIR. Everywhere else in the Basic MSI project, I can just use [DATA_FOLDER] and it will display properly. My question is how do I use that same variable in an installscript? Is there a way to pass it in when the user clicks Next in the dialog?
Thanks in advance
Brad
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Directory variable in an installscript
Started by
pi3k
, Jul 12 2006 22:10
2 replies to this topic
Posted 12 July 2006 - 22:18
Please check the documentation for MsiGetProperty. I can provide more detail later, but got to run now :-)
Regards
-Stein Åsmul
-Stein Åsmul
Posted 13 July 2006 - 20:41
Thanks, I didn't know that MsiGetProperty could do that.
I figured I would post the code just incase anyone else has the same question:
I figured I would post the code just incase anyone else has the same question:
CODE |
NUMBER nvSize; STRING dataDir; //Use MsiGetProperty to get the location of the User Data Folder nvSize = 256; MsiGetProperty( hMSI, "USER_DATA", dataDir, nvSize ); |