Thank you everyone. After much research and many difficulties, I finally figured it out with the help of your replies (special thanks to the winded reply by Blair). According to a comment on Rob's Remember Property blog, I also found out that WiX 3.5+ supports firstSequence on SetProperty so manually adding a Custom Action didn't end up being necessary. Been working on this since mid-December on and off so I'm very happy!
Here's my working code that supports the following: • On first install, the default property value will display in your Dialog Control • On first install, the default value can be overridden by the user. Whatever value is entered will be stored in the registry and used for updating the xmlfile (or whatever else you're doing with the Property) • On upgrades, the value from the registry will display in your Dialog Control. This value may be overridden by the user. Whatever value is entered will again be stored in the registry and used for updating the xmlfile <Property Id="PROP_APPSERVER_HOSTNAME" Value="DefaultValue" Secure="yes"/> <Property Id="PROP_REG_APPSERVER_HOSTNAME"> <RegistrySearch Id="REG_APPSERVER_NAME" Root="HKLM" Key="$(var.RegPath)" Name="APPSERVER_HOSTNAME" Type="raw"/> </Property> <SetProperty Id="PROP_APPSERVER_HOSTNAME" Value="[PROP_REG_APPSERVER_HOSTNAME]" After="AppSearch" Sequence="first">PROP_REG_APPSERVER_HOSTNAME</SetProperty> <DirectoryRef Id="TARGETDIR"> <Component Id="COMP_REG_PROP_APPSERVER_HOSTNAME" Guid="{65BC2953-85EC-4CA3-B248-729EF296C2AF}"> <RegistryValue Root="HKLM" Key="$(var.RegPath)" Name="APPSERVER_HOSTNAME" Value="[PROP_APPSERVER_HOSTNAME]" Type="string"/> </Component> </DirectoryRef> ***NO Custom Actions*** -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unable-to-override-SetProperty-value-with-Edit-Control-value-tp7591569p7591678.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users