I am using Advanced Installer 11.2.1.
I wish to pass in a numeric value on the msiexec command line, so that it is available as a windows installer property, and then store that numeric value into the registry as a dword value.
However, it seems to me that the custom installer property is stored as a string, and so, when I install my setup, I get a warning message box displayed:
title "Installer Information"
content "Could not write value OverlayCount to key \Software\mycompany\mykey. Verify that you have sufficient access to that key, or contact your support personnel."
(where the 'data' value for the OverlayCount registry value is set to [OverlayCount], which itself is a custom install parameter property with value [OVERLAYCOUNT] which will be picked up from the msiexec command line invocation of my msi file).
I can ignore the error and carry on, but of course that registry value is not present.
Is it possible to achieve this?
(one possible option would be to write a c# custom action that converts the properrty to an integer and writes it to the registry, but I would prefer not to do this unless there is no alternative)
FOLLOW US
Get the latest news in Application Packaging