1. It doesn't actually work fine on XP, unless you are logged in as an
administrator.
2. CustomActions are never deferred after InstallFinalize.
3. It depends who can start the service. If anyone can start the service,
then your first plan should have worked. If only administrators can start the
service, then you'll need to launch some executable that will prompt for
elevation at the end of the install. That would be pretty icky, a very late
UAC prompt... you'd probably want to have some UI around it. Alternatively, if
the service is automatic start, you could schedule a reboot.
4. Or... you could just make your service not dependent on things in the GAC.
I personally like this one best.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Fischer
Sent: Thursday, May 17, 2007 11:47 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] problem starting service dependent on GAC on Vista
I'm writing an install that installs a service which is dependent on GAC files
that are also being installed.
Reading through the various threads I figured out why my use of ServiceControl
to Start this service wasn't working. The explanation I read was that GAC
files don't get installed until InstallFinalize and ServiceControl's Start
happens before then.
My workaround (based on another message) was to use CAQuietExec to launch a
command line "command /c net start foo.service" in immediate mode after
InstallFinalize. This worked fine on XP.
On Vista, this no longer works. I don't see an error in the log, but the
service never gets started. In various messages, its been stated that custom
actions can't be run as deferred after InstallFinalize on Vista.
Is there a way to start a service that depends on files installed to the GAC on
Vista? Perhaps another way to structure my MSI?
Thanks,
Kevin
________________________________
Add some color. Personalize your inbox with your favorite colors. Try
it!<www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_addcolor_0507>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users