The UI phase completes before the install phase commences, so you can simply
refer to the properties in a RegistryValue element's Value attribute. The
Value attribute's data is interpreted as Windows Installer's Formatted type,
so property names in square brackets [] are replaced by the value of that
property. For example, to use the value of the USERNAME property, specify
[USERNAME].

 

For more see http://msdn2.microsoft.com/en-us/library/aa368609.aspx. 

 

You will probably need to make the property public (by making its name
ALLCAPS) and mark it Secure to ensure that its value is passed from the UI
to the actual installation.

 

The USERNAME property is automatically set by Windows Installer to the
information set for Windows itself (the information provided at install
time). Likewise the COMPANYNAME property is set to the company information
from Windows. I'd use these properties unless you have a really good reason
not to. If you don't want them set automatically, set the NOUSERNAME and
NOCOMPANYNAME properties. 

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dustin Johnson
Sent: 07 March 2008 17:13
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Writing Property to Registry

 

I want to be able to write a value into the registry, specifically the
User's Name and  Company information.   I have created a custom dialog that
has a few Edit controls to collect this information and deposit it into the
respective properties.  How do I write these to the registry?  Will I have
to do it manually with my custom action dll?


--
Dustin Johnson
CACE Technologies
Tel: 530-758-2790 x109
Fax: 530-758-2781
www.cacetech.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to