Richard wrote:
> The problem isn't anything to do with Vista, its because your service
> has a dependency on something in the GAC and the files don't really
> appear in the GAC until after the Commit phase of the install.
> 
> Just mark your service as starting automaticly and you shouldn't have
> any problem.  Then Windows will start the service when its needed.
> Why do you think that you must start your service before the install
> finishes?

First a general comment - thanks for all the replies!

Regarding the service now, I think the problem has a lot to do with the
installation of stuff into the GAC (the recommended way of doing things
after all). All that the service needs is the C runtime, nothing special
here. But that is not available.

Now, wix has

<ServiceControl .... start="install"/>

so, why have that? Coincidently, it works on *every* release of windows,
but not Vista because of Vista's new way of handing assemblies.
Therefore the bug is either in WiX, Windows Installer or Vista. By my
understanding of how things work, GAC
refresh/update/install/committing/whatever you want to call it, should
just be an API call within Windows Installer so the installation
sequence can be,


.. install stuff (including to GAC)
.. refresh GAC -- maybe this could be a custom step that doesn't run
unless needed, like when starting services before installation is done.
.. start services.

Then if start services fails, you roll back by uninstalling the stuff
from the GAC, (refreshing it again, if you have done it before) and
rolling back the rest of the installation.


Finally, the application here is installed as a service because it is
not a user intractable application and it is the easiest way of doing
things. But yes, there may be another way of running it... messy, but
possible. But for general case, does windows have triggers that allow a
service to be started automatically when someone tried to connect to UDP
port 123 (example) or a named pipe? If yes, then I guess
ServiceControl's start attribute can be removed?

- Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to