You can have a component like this which points to your Property (ex: LOGPATH)

            <Component Id="RegistryComponent" Guid="C7C79c91-F573-49CC-9D2B-5234D2B7393F">

                <Registry Id="Registry4" Root="HKLM" Key="SOFTWARE\CompanyName\ProductName" Name="LogPath"

                    Type="string" Value="[LOGPATH]" />

            </Component>

 

Link the property to control in your dialog

<Control Id="EditLogPath" Type="Edit" X="21" Y="99" Width="237" Height="17" Property="LOGPATH"/>

 

Sequence your dialog correctly in InstallUISequence.

Reference your component in appropriate Feature.

It should set the value correctly and update the registry with textbox input value.

http://www.tramontana.co.hu/wix/lesson8.php#8.4 has a sample on UI properties.

 

- chandra


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Saxey
Sent: Tuesday, June 06, 2006 3:01 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] using UI to change a registry key

 

Please forgive me if this is a stupid question, I'm new to installers and WIX.  I'm trying to create an installer that contains two pages with text boxes.  I would like to use the info in these text boxes to change registry values later in the install.  I was looking at the doc on WIX and noticed the PropertyRef Element.  Can I just create Properties linked with these text boxes and then reference these properties with the PropertyRef element?  If so, does anyone have an example or know where to find an example of this sort of usage?

Thanks for your help, and sorry if this is a stupid question

 

Chris

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to