I am using properties that are attached to text boxes in a custom dialog. During install I enter a username and password in to these text boxes, however the details entered are not saved/used. I can see in the registry that the properties default values are used instead of those entered. Any ideas what I am doing wrong?
This happens because you have created your properties as private. Private properties preserve the changed value until the end of "Wizard Dialog Stage" and when the installation passes to the "Install Execution Stage" (when the registry are installed) they revert to the default value.
In order to preserve their values you should make them public properties. You can achieve that by renaming them only with uppercase letters. There are two types of properties: Private an Public. The private ones contain lowercase and uppercase letters and their value, when changed, is preserved only during one installation stage ( "Wizard Dialog Stage" or "Install Execution Stage"). The public ones contain only uppercase letters and their value is preserved during both installation stages.
FOLLOW US
Get the latest news in Application Packaging