MIssing custom registry field - Advanced Installer Community
junix
Posts: 2
Joined: Wed Jul 01, 2015 3:55 pm

MIssing custom registry field

Hi there,

I'm trying to put the HttpPostServerResponse in a registry field.
I create the registry called Depto, than I configure this to catch [HttpPostServerRresponse] property.
Image
Image
In installation logs I have this property with value, but in windws registry is not.

Code: Select all

MSI (c) (C4!B0) [11:51:45:284]: PROPERTY CHANGE: Adding HttpPostServerResponse property. Its value is '4'.

Code: Select all

MSI (s) (30:7C) [11:51:53:957]: Executing op: RegAddValue(Name=Depto,,)
WriteRegistryValues: Key: \Software\Zira Solutions\Zira Smart, Name: Depto, Value: 
Some tip?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: MIssing custom registry field

Hello and welcome to Advanced Installer forums,

This is happening because the HttpPostServerResponse property is a private one.

Windows Installer properties are global variables that Windows Installer uses during an installation. There are two main types of Windows Installer properties:
  • Private Properties (contain lower-case letters in their name, example: My_Prop)
    Public Properties (contain only upper-case letters in their name, example: MY_PROP)
The difference between Public and Private properties consists in the way their values are being passed on. Only the value of a Public Property is passed on from the Wizard Dialogs Stage (in which the dialogs are showed) to the Install Execution Stage (in which the system is modified).

Therefore, make sure that you use a Public Property for an UI control (Editbox, Combobox etc) if you want its value to be available in the InstallExecute Sequence (for instance, if the value of this Property is written in the registry, .ini file), otherwise you will get the default value assigned to this property.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
junix
Posts: 2
Joined: Wed Jul 01, 2015 3:55 pm

Re: MIssing custom registry field

Hello Dan,

I've passed the HttpPostServerResponse to a public property (an invisible Editbox) and than to registry field.
I don't know if it is the best way to do this, but is working.

Thank you for your help.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: MIssing custom registry field

Hello,

This may work only if the intermediate property that you are using in the Edit Registry view is a public one.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”