I do this .NET Service install and it works all the time.

    <ComponentGroup Id="ServicesGroup">
        <Component Id="DataService" Guid="*"  
Directory="APPLICATION_ROOT_DIRECTORY">
        <File Id="DataServiceexe" Name="DataService.exe" KeyPath="yes" 
Source="$(var.SourceFolder)\DataService.exe" />
        <ServiceInstall Id="dpservice" Description=" Data Service" 
DisplayName="Data Service" Interactive="no" Name="DataService" Start="auto" 
Type="ownProcess" Vital="yes" ErrorControl="ignore" />
        <ServiceControl Id="dpservicecontrol" Name="DataService" 
Stop="uninstall"   Remove="uninstall"  />
     </Component>
  </ComponentGroup>

Arun Perregattur


-----Original Message-----
From: Rajendra Magar [mailto:rma...@newfrontieradvisors.com]
Sent: Tuesday, February 23, 2010 2:48 PM
To: 'wix-users@lists.sourceforge.net'
Subject: [WiX-users] Problem installing a .NET installer-based service using 
InstallUtilLib.dll

Hi,

I am working on a Visual Studio WiX project to install a .NET installer-based 
service using InstallUtilLib.dll/ManagedInstall. I was following the 
instructions in the following link.

http://blog.vagmim.com/2004/09/installing-windows-services-created.html

The preceding link uses InstallUtilLib.dll from .NET version 1.0 whereas I am 
using InstallUtilLib.dll from .NET version 2.0.
When I tried to install the generated msi on a Vista machine, I got "Error 
2869: The dialog ErrorDlg has the error style bit set, but is no an error 
dialog".
When I tried to install on an XP machine, I got "InstallUtilLib.dll: Unknown 
error". I am attaching the verbose logs from both installation instances.
I looked into the logs and also searched around in online forums but I can't 
seem to find a way to fix these errors by manipulating my WiX input.

While I know that the author of the above link and Rob Mensching don't 
recommend installing services using a managed code custom action, I have no 
choice at the moment. :( Could someone please be kind with me and tell me what 
I could do to get my msi to install correctly? I am also attaching my WiX 
source and the config file used by InstallUtilLib.dll

Sincerely,
Raz Magar


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to