I haven't tried this, but what if you make that registry value a the key path of its own component and mark the component as Permanent. I suspect that will not be removed when the app is uninstalled.
- Don Benson - On Thu, Mar 12, 2009 at 9:00 PM, Andrew Lowe < al...@immersivetechnologies.com> wrote: > Hi all, > Sorry if this a basic question, I'm very very new to Wix and am > still trying to make sense of it. Our application runs on dedicated > machines and I need to turn off Simple File Sharing. This is controlled > by the registry value: > > HKLM\SYSTEM\CurrentControlSet\Control\Lsa\ForceGuest > > What I need to do is set this to false, value = 0, during the install > and for the uninstall of the software to set it back to true, value = 1. > > At present I'm doing > > . > .. > ... > <RegistryKey Root="HKLM" > Key="SYSTEM\CurrentControlSet\Control\Lsa"> > <RegistryValue Type="integer" Name="ForceGuest" > Value="0"/> > </RegistryKey> > ... > .. > . > > But this removes the "ForceGuest" entry upon uninstall, which in turn > freaks out the computer and causes all sorts of trouble upon reboot. > There must be a way to modify this value upon install and restore it > upon uninstall, in fact I don't really care about the uninstall, it can > stay as is. Can anyone prod me in the right directions? > > Regards, > Andrew Lowe > Disclaimer: > This message contains confidential information and is intended only for the > individual(s) named. If you are not the named addressee you should not > disseminate, distribute or copy this email. Please immediately delete it and > all copies of it from your system, destroy any hard copies of it, and notify > the sender. Email transmission cannot be guaranteed to be secure or > error-free as information could be intercepted, corrupted, lost, destroyed, > arrive late or incomplete, or contain viruses. To the maximum extent > permitted by law, Immersive Technologies Pty. Ltd. does not accept liability > for any errors or omissions in the contents of this message which arise as a > result of email transmission. > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users