Jump to content


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.
Photo

Problems with SUPPORTDIR


2 replies to this topic

carrolls

carrolls
  • Members
  • 2 posts

Posted 10 September 2002 - 17:56

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

mdhedhi

mdhedhi
  • Members
  • 2 posts

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.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

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