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

why is TARGETDIR returning blank


2 replies to this topic

mtg82814

mtg82814
  • Members
  • 5 posts

Posted 30 May 2002 - 16:40

I am using InstallShield for Windows Installer 1.52.

In my scripting I have these lines of code:

szMsg = TARGETDIR ;
MessageBox ("|" + szMsg + "|",INFORMATION);


When it gets run, the message box shows: "||"

I have the script run in the execute sequence after LaunchConditions.

Am I missing something?

Thanks,

-Mike

mtg82814

mtg82814
  • Members
  • 5 posts

Posted 30 May 2002 - 17:26

Ok, I answered my own question:

nvSize = 256;
MsiGetProperty(hMSI, "INSTALLDIR", szInstallFolder, nvSize);


although MsiGetProperty is not in the InstallScript help pages.

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 31 May 2002 - 00:15

The InstallShield help file only documents the InstallShield specific stuff.  All of the Msi functions are documented in a seperate help file, Msi.chm, which is a Microsoft help file.

You'll get used to searching across a couple of help files.
Leigh Ravenhall
Expert Information Services