Quantcast

RE: Registry keys getting wiped out

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Registry keys getting wiped out

Rob Mensching
Did this ever get sorted out?  Something doesn't quite match up below so if
you're still having problems, it'd be good to share out more of your .wxs
code and the verbose install/uninstall log with the problem.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Joseph Wee
Sent: Wednesday, September 14, 2005 12:28 AM
To: [hidden email]
Cc: [hidden email]
Subject: RE: [WiX-users] Registry keys getting wiped out

Hi Vagmi,

Thanks for helping me out. But I've been separating the components but
its still not working for me.

1) Component A for HKLM\Software\Apollo
2) Component B for HKLM\Software\Apollo\AppA (and its subkeys)
3) Component C for HKLM\Software\Apollo\AppB (and its subkeys)

It gives me this error when I try to do a non-full UI uninstall (My app
doesn't have a full UI uninstall) at the moment. The error says:

Error 1402. Could not open key:
HKEY_LOCAL_MACHINE\Software\Apollo\\\Domains. Verify that you have
sufficient access to that key, or contact your support personnel.

It then rolls back the installation. Any thoughts?

Thanks again,Joseph



-----Original Message-----
From: Vagmi Mudumbai [mailto:[hidden email]]
Sent: Wednesday, 14 September 2005 2:34 PM
To: Joseph Wee
Cc: [hidden email]
Subject: Re: [WiX-users] Registry keys getting wiped out

Hi Joseph,

The components are immutable. If you need to add additional registry
entries in same registry key, you would have to create a separate
component for the same. This is what I propose.

1) Component A for HKLM\Software\Apollo
2) Component B for HKLM\Software\Apollo\AppA (and its subkeys)
3) Component C for HKLM\Software\Apollo\AppB (and its subkeys)

AppA would include components A and B while AppB would include
components A and C.

Let me know if this works.
On 9/14/05, Joseph Wee <[hidden email]> wrote:
>
>
> Dear all,
>
>  
>
> I'm having problem with the registry keys of my apps. I have two
separate

> applications that use the same software tree branch (e.g. Apollo).
>
>  
>
> HKLM/Software/Apollo/App_A_registries
>
> HKLM/Software/Apollo/App_B_registries
>
>  
>
> However when I install both of them, and then uninstall one of them,
the
> HKLM/Software/Apollo registry tree is removed as well, which is not
what we
> want as there is still another one of my application installed. What I
am
> trying to achieve (without success) is to have only one uninstalled,
and the
> other left there.
>
>  
>
> I have tried certain things to no avail and they are:
>
> 1. App_A_registries and App_B_registries are in separate components
that

> have separate GUIDs
>
> 2. Creating a GUID-less component for HKLM/Software/Apollo
>
> 3. Creating a GUID component for HKLM/Software/Apollo
>
> 4. Setting HKLM/Software/Apollo NeverOverwrite="yes"
>
>  
>
> Below is an example of one of the application's wix registry settings:
>
>
------------------------------------------------------------------------
---------------------------
>
> <Component Id="RegTree"
> Guid="E820575F-1F40-4624-BC5A-141F9FC327AD"
> NeverOverwrite="yes" DiskId="1">
>
>       <Registry Root="HKLM" Key="Software\APOLLO" Action="createKey"
/>

>
> </Component>
>
>  
>
> <Component Id="EnvReg" Guid="
> E8205ADF-1F40-4624-BC3A-141F7FC327AD" DiskId="1">
>
>       <Registry Root="HKLM" Key="Software\APOLLO">
>
>             <Registry Key="MoonStar"
> Action="createKeyAndRemoveKeyOnUninstall">
>
>                         <Registry Key="production">
>
>                         <Registry Id="EnvBrowser" Name="stringkey1"
> Type="string" Value="6.0" />
>
>                         <Registry Id="EnvDBname" Name=" stringkey2"
> Type="string" Value="[APPDB]" />
>
>                         <Registry Id="EnvDBServer" Name="stringkey3"
> Type="string" Value="[DBSERVER]" />
>
>             </Registry>
>
>       </Registry>                  
>
> </Component>
>
>  
>
> Can anyone point out what I'm doing wrong? It seems like I'm missing a
piece
> of the puzzle here. Any help is really appreciated. Thanks a dozen!
>
>  
>
> <Worn-out/>,
>
> Joseph Wee
>
>  


--
Vagmi
http://geekswithblogs.net/vagmi.mudumbai
http://installneo.blogspot.com




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Loading...