JDeighton
04-10-2002, 07:03 AM
I'm having a great deal of trouble setting and then using some custom Properties in my installations. I've got some InstallScript that calculates values that need to be written to a product's INI file, but I can't seem to get the content of the string variables from the InstallScript into the MSI Properties.
I'm using MsiSetProperty to create and populate the desired Properties, and I've then used the Properties in the "INI File Changes" pane of the InstallShield Developer IDE. The problem is that while the INI entries are created, the values from the assigned Properties are nulls.
I've used some debug code to try to get to the bottom of the problem, for example:
if (MsiSetProperty(ISMSI_HANDLE, "MAINSETTING", sMainSetting) = ERROR_SUCCESS) then
MessageBox("MsiSetProperty Success", INFORMATION);
MessageBox(sMainSetting, INFORMATION);
MsiGetProperty(ISMSI_HANDLE, "MAINSETTING", sTest, nBuffer);
MessageBox(sTest, INFORMATION);
endif;
MsiSetProperty reports success, sMainSetting appears correct, but the contents of the MAINSETTING Property seems to be nothing at all...
Anyone have any ideas about this? Is there something I've managed to miss in several hours of trawling the help files and this forum?
Thanks,
J Deighton
I'm using MsiSetProperty to create and populate the desired Properties, and I've then used the Properties in the "INI File Changes" pane of the InstallShield Developer IDE. The problem is that while the INI entries are created, the values from the assigned Properties are nulls.
I've used some debug code to try to get to the bottom of the problem, for example:
if (MsiSetProperty(ISMSI_HANDLE, "MAINSETTING", sMainSetting) = ERROR_SUCCESS) then
MessageBox("MsiSetProperty Success", INFORMATION);
MessageBox(sMainSetting, INFORMATION);
MsiGetProperty(ISMSI_HANDLE, "MAINSETTING", sTest, nBuffer);
MessageBox(sTest, INFORMATION);
endif;
MsiSetProperty reports success, sMainSetting appears correct, but the contents of the MAINSETTING Property seems to be nothing at all...
Anyone have any ideas about this? Is there something I've managed to miss in several hours of trawling the help files and this forum?
Thanks,
J Deighton