Hi Bernd, Thanks for your speedy response,
Sounds like a good little workaround thankyou, will try and implement it asap Cheers! David -----Original Message----- From: Bernd Truckses [mailto:bernd.truck...@mpro.de] Sent: 12 October 2010 11:13 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] registry key change on radio button selection Hi Dave, a dirty trick would be to attach an event to the radiobox or [next]-button of the dialog and call a CustomAction that reads the current property value and stores it in the registry. I did something similar (some heavy registry manipulations and UI prework) and called the according CustomAction when the [next]-button of the WelcomeDlg was started, here are some code snippets: ======================================= <Binary Id="CADLL" SourceFile="[path to custom action dll]CustomActions.CA.dll"/> <CustomAction Id="SetRegProperties" BinaryKey="CADLL" DllEntry="SetRegProperties"/> <InstallExecuteSequence> <!-- NOTE: SetRegProperties is NOT queued up in the InstallExecuteSequence --> ... </InstallExecuteSequence> ... <UI Id="..."> <Publish Dialog="WelcomeDlg" Control="Next" Event="DoAction" Value="SetRegProperties" Order="1">1</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="BlablaDlg" Order="2">NOT Installed</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="2">Installed AND PATCH</Publish> </UI> ======================================== For my CustomAction I've used DTF and coded the CustomAction in c# - this makes implementation very easy but requires .Net framework installed on the target machine... For details, see also chapter 3 of the WiX tutorial, section "3.4 Custom Action in Controls" and "3.5 How to Manage Custom Actions?" Hope that helps Bernd -----Original Message----- From: David Amey [mailto:da...@creative-engine.co.uk] Sent: Dienstag, 12. Oktober 2010 11:05 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] registry key change on radio button selection Hi David, Sorry to not get back sooner. Not sure if this is the answer I'm looking for. Will try and explain again, was a bit of a rushed email last time: Ok So I have created a property in a fragment called [IAgree], the value of this depends on which radio button (in a custom dialog) is selected (will be either 1 or 0). If the option of 1 is selected then another custom dialog appears, displaying some other info. If it is 0 then it goes straight to the standard end dialog. This part works fine. However what I then want to do is take the value of this property (once selection has been made) and store it in a registry key. So far I have only been able to store the default value of [IAgree] in the registry key, it doesn't take the updated value of a selection. Hope this has explained it a bit better, any more help you can give me will be greatly appreciated. Thanks! Dave -----Original Message----- From: David Watson [mailto:dwat...@sdl.com] Sent: 08 October 2010 16:08 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] registry key change on radio button selection Hi, Hard to guess without a code sample but have you made declared your property secure? See http://wix.sourceforge.net/manual-wix3/wix_xsd_property.htm Dave -----Original Message----- From: David Amey [mailto:da...@creative-engine.co.uk] Sent: 08 October 2010 12:31 To: wix-users@lists.sourceforge.net Subject: [WiX-users] registry key change on radio button selection Hi all, I once again require you expertise; I have a registry key that I need stored [ok so far], the value is set to a property which changes on a radio button selection. However the key value only ever takes the default value of the property, it doesn't pick up the change when a different button is selected? Any assistance will be greatly appreciated! Thanks in advance! David Amey The Creative Engine Ltd Almac House, Church Lane, Bisley, Surrey, GU24 9DR T: +44 (0)1483 799200 F: +44 (0)1483 799111 ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ ---- -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ ------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users