MSI Factory 2.3

MSI.SetProperty

MSI.SetProperty

This is the first topic This is the last topic  

MSI.SetProperty

This is the first topic This is the last topic  

OverviewExamples

boolean MSI.SetProperty (

number hInstall,

string PropertyName,

string Value )

Example 1

PropertyValue = MSI.GetProperty(_hInstall, "MyProperty");

Dialog.Message("Initial Propety Value", "The initial property value is: "..PropertyValue);

 

bSuccess = MSI.SetProperty(_hInstall, "MyProperty", "NewValue");

 

if (bSuccess) then

   PropertyValue = MSI.GetProperty(_hInstall, "MyProperty");

   Dialog.Message("New Propety Value", "The new property value is: "..PropertyValue);

else

   Dialog.Message("Error", "Setting the property failed.");

end

Shows the initial value of the property named "MyProperty," sets its value to "NewValue," and confirms that it was written successfully.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us