Get the property through the installscript
Posted 10 January 2002 - 09:48
Posted 10 January 2002 - 17:22
// Include header file for built-in functions
#include "isrt.h"
// Include header file for MSI API functions and constants
#include "iswi.h"
export prototype Func1(HWND);
function Func1(hMSI)
STRING svName;
NUMBER nvSize, nResponse;
begin
// Retrieve the user's name from the MSI database
nvSize = 256;
MsiGetProperty (hMSI, "USERNAME", svName, nvSize);
nResponse = AskYesNo ("Your name will be registered as " +
svName + ". Is this correct?", YES);
if nResponse = NO then
AskText ("Enter the name that will be registered for " +
"this product.", svName, svName);
MsiSetProperty(hMSI, "USERNAME", svName);
endif;
end;
I have used variations of this in InstallScript to get and set properties successfully.
Good Luck
Kurt Schneider
Posted 11 January 2002 - 04:33
Posted 11 January 2002 - 10:31
So use an immediate action (Type 51 is useful) to set a suitably name property to a property or a list of properties that you can parse. You will then be able to access your data.