You don't need a custom action. All you need is a registry item that has [Your 
property name] in it, and Windows Installer will do the rest. 

However.....

When a property is being passed from the UI sequence into the execute sequence 
it needs marking as secure so it goes into the SecureCustomProperties list. 
However, the problem you have is that your property is not public (it contains 
lower case characters) and only public properties can be passed from the UI to 
the execute sequence, so make it all uppercase. BUT don't call it USERNAME 
because that is an existing Windows Installer property. 

Phil W 

-----Original Message-----
From: Ravi Raj [mailto:raviraj.callin...@gmail.com] 
Sent: Wednesday, June 20, 2012 11:12 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Scheduling Custom Action

I am populating UserName property in UI textbox and then storing it in 
registry. For this I am using custom action to set this variable at UISqeuence 
and ExecuteSequence. Everything works great.

I found that if I change this value to something else, my registry is never 
changes to new value. i saw that log then found that in UISequence its fine but 
in ExecuteSequence it changes back to normal. I need to fix this.

I cannot remove the custom action from ExecuteSequence as if I do that then at 
the repair (with no UI just Right-Click -> Repair) I found that, the registry 
value gets deleted (i am not sure why as verbose sows that value as empty). But 
having both CAs intact, it works great.

Again, if I manually the registry value (just for testing), and do repair using 
Maintenance dialog, the registry value resets to the original
(default) value.

I am totally lost how to resolve this?
Requirement is to populate username (from computer), in a textbox, store it in 
registry and keep it there until uninstall.
How do I use CAs sequencing or where should I call repair so that nothing gets 
changed?

--
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to