The short answer is that there is nothing about Installer classes that does
what's required - there's nothing that sets the SERVICE_WIN32_SHARE_PROCESS
bit when the service is created (and it doesn't matter if this is a .NET
service or not, that's what needs to happen underneath).  I'm pretty sure
you can do this in the "normal" way (no Installer classes) with service type
set to shareProcess in Wix. 
Phil Wilson 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petr Reichl
Sent: Wednesday, June 07, 2006 12:00 AM
To: ListServ - WiX - users
Subject: [WiX-users] Multiple services installation problem

Hi,

I create installation program by WiX toolkit.  My problem is in windows
services installation (written in .NET). Installation program installs
several services using the InstallUtilLib library.

There are definitions:

<CustomAction Id="InstallService" BinaryKey="InstallUtil" 
DllEntry="ManagedInstall" Execute="deferred" />

<CustomAction Id="InstallServiceSetProp" Property="InstallService" 
Value="/name=&quot;[SERVICE_NAME]&quot; /account=user /user=[LOGIN_USER]
/password=[LOGIN_PASSWD] /installtype=notransaction /action=install
/LogFile= &quot;[#ServiceFile]&quot; &quot;[#CAUtilCfg]&quot;"/>

...

<CustomAction Id="InstallService2" BinaryKey="InstallUtil" 
DllEntry="ManagedInstall" Execute="deferred" />

<CustomAction Id="InstallService2SetProp" Property="InstallService2" 
Value="/name=&quot;[SERVICE_NAME] ([INSTANCE2])&quot; /account=user
/user=[LOGIN_USER] /password=[LOGIN_PASSWD] /installtype=notransaction
/action=install /LogFile= &quot;[#ServiceFile2]&quot;
&quot;[#CAUtilCfg]&quot;"/>

...

The problem is that all installed services referring to same exe file. 
The reffered file is always from first run action. Another parameters are
correct, but target file is incorrect.

I don't see why :-(

- Petr


_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to