I expected this answer, unfortunately I have such a thing as a silent
upgrade.

 

This scenario is extremely frustrating. The only way I can upgrade a
service during a major upgrade is by suppressing InstallServices /
DeleteServices, which is far from ideal (since I will never be able to
add a new service). My problem is worse - I force-uninstall a previous
version that doesn't know anything about upgrade.  Is there a way to
suppress an element of a sequence at runtime? I am happy with a hack :)

 

Thx

dB.

 

PS: I can't find anywhere how these credentials are actually stored... I
don't expect I will, but if someone knows, please tell me J

 

From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 26, 2008 1:47 PM
To: dB.
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How can I preserve service credentials on
upgrade (with complications)?

 

dB. wrote: 

I am major-upgrading a previous product with a service called SERVICEX.
SERVICEX will be uninstalled because the old installer doesn't know
anything about UPGRADECODE. I reinstall the service (under a slightly
different name), but I can't figure out how to preserve service
credentials when X isn't running under LocalSystem.

 

I tried saving all keys under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SERVICEX (including
Security) and restoring them after the installation, but the service
won't start stating that logon failed. I can't find any reference to
what's inside those registry keys.


Service credentials aren't stored in the registry. (Probably via DPAPI
or some other secure storage mechanism.) If they could be copied so
easily, they wouldn't be secure. You need to prompt the user for
credentials.



-- 
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to