PDA

View Full Version : Display property in messagebox



leesouth
06-30-2006, 06:25 AM
Im am having problems in InstallScript writing out one of the properties from the "Properties Manager" page.

After the SQL Login I want to write out the value of the property "IS_SQLSERVER_SERVER" but I dont know how to do this.

Id have thought it was something like this:


MessageBox ("IS_SQLSERVER_SERVER=" + IS_SQLSERVER_SERVER, INFORMATION);

but that dosnt work - the project will not compile (undefined identifier).

Ive tried []'s round the property but that dosnt work either.

Anyone know how to do it?

LarryIRL
06-30-2006, 08:48 AM
use MsiGetProperty function

Look up the exact syntax in the help, for the handle to the current window use the constant ISMSI_HANDLE

leesouth
06-30-2006, 09:08 AM
Will this work in an Installscript MSI Project?

LarryIRL
06-30-2006, 10:39 AM
should do, got it to work with the Set function anyway