I have just created an ISScript custom action and the first line tries to get the SUPPORTDIR path.ie
MsiGetProperty(hMSI, "SUPPORTDIR", svSetupPath, nBufferSize);
The svSetupPath variable remains blank after the function is called.
In debug mode when I hover over "SUPPORTDIR" it has the correct path but svSetupPath is blank.
When I try leaving out the MsiGetProperty function and just
try svSetupPath=SUPPORTDIR;
svSetupPath remains empty even though when I hover over "SUPPORTDIR" it has the correct path in debug.
Any suggestions as to why its happening? I'm using IS 7.04
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.
Problems with SUPPORTDIR
Started by
carrolls
, Sep 10 2002 17:56
2 replies to this topic
Posted 24 July 2004 - 00:11
Make sure nBufferSize is atleast 128.
If nBufferSize is less than the length of SUPPORTDIR, then it will not work.
If nBufferSize is less than the length of SUPPORTDIR, then it will not work.
Posted 24 July 2004 - 06:29
Maybe try something like this:
CODE |
function DoStuff ( hMSI ) NUMBER nvType, nBuffer; STRING szString; begin nBuffer = 256; MsiGetProperty ( hMSI, "ProductVersion", szString, nBuffer ); end; |
Regards
-Stein Åsmul
-Stein Åsmul