PDA

View Full Version : InstallScript: SetupFileName



blippen
06-18-2007, 05:58 AM
Hi,

I'm trying to set the name of the output file with iscmdbld.exe and some installscript code but I can't get it to work.

I can't get the property thru:
MsiGetProperty(hMSI, "SetupFileName", svRes, nBuffer)

Is there another way to get and set it? (Except from the IDE.)

I'm sorry if this question has been asked before, I tried the search function for this but the search timed out (tried: setup file name, setup file).

Thanks,
Anders

Holger_G
06-18-2007, 06:42 AM
I assume you mean the release's Single Exe File Name, right?

You could make use of the Automation Interface by using the 'SingleEXEFileName' member of the ISWiRelease Object. Just take a look at the InstallShield help library for more details.

RobertDickau
06-18-2007, 08:41 AM
If you're talking about pure InstallScript (and talking about getting the name at run time), perhaps see if the PACKAGE_LOCATION variable has the value you want.