Re: [WiX-users] Scheduling Custom Action
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
Re: [WiX-users] Scheduling Custom Action
The way I would do this is the custom action should be firstSequence, the value stored in a secure property and you should use a RegistrySearch to read the value during maintenance operations. If you have all those pieces in place, then it's just a matter of getting all the conditions right. If you are having problems identifying first install verses an upgrade or repair, you might want to look at http://code.dblock.org/msi-property-patterns-upgrading-firstinstall-and-maintenance which provides a nice wxi file giving some cleanly named properties for the different logical states you are in. Note, for this to work it is vital that RemoveExistingProducts is scheduled After InstallInitialize. This may or may not be appropriate in your situation. -Original Message- From: jhennessey [mailto:jack.hennes...@hyland.com] Sent: Thursday, June 21, 2012 7:34 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Scheduling Custom Action Ravi Raj wrote > > 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? > If you have a custom action that you only want to run once (but need to schedule in both the UI and Execute sequences to cover all your bases ) then you should set the CustomAction/@Execute attribute to "firstSequence". See WiX.chm for more details. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Scheduling-Custom-Action-tp7579001p7579008.html Sent from the wix-users mailing list archive at Nabble.com. -- 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 -- 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
Re: [WiX-users] Scheduling Custom Action
Ravi Raj wrote > > 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? > If you have a custom action that you only want to run once (but need to schedule in both the UI and Execute sequences to cover all your bases ) then you should set the CustomAction/@Execute attribute to "firstSequence". See WiX.chm for more details. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Scheduling-Custom-Action-tp7579001p7579008.html Sent from the wix-users mailing list archive at Nabble.com. -- 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
[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
[WiX-users] Scheduling custom action at end of install
I need to have a merge module custom action happen at the end of the InstallExecuteSequence. Normally I sequence a "MyFinalize" custom action in a merge module as being after InstallFinalize, but if RemoveExistingProducts follows InstallFinalize then MyFinalize must be after RemoveExistingProducts. Because this is a merge module I don't have any insight into which of InstallFinalize or RemoveExistingProducts will come last. How can I code my CA to be after everything else? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users