I am currently experimenting with WiX to see if it is something we can
use for our next generation software.
My immediate thought was to simply build the complete installation from
ground-up in small steps.
This have worked fine so far, now I have run into a problem though, when
I try to install a Windows Service I get this error:
Service "My Name Server" (NSEngine) could not be installed. Verify that
you have sufficient privileges to install system services.
The problem is, I DO have sufficient privileges to install services, at
least I haven't had any problems using the InstallUtil.
The services have been created with VS2008 and .NET 3.5 (C#).
If I use InstallUtil, they install fine, but I thought I would try doing
it the "right" way.
Here is the code I am currently using:
<DirectoryRef Id="INSTALLDIR">
<Component Id="NameServiceComponent"
Guid="53398A87-395B-4DA8-A475-04684FE5DE20">
<File Id="NSEngine"
Name="$(var.NSEngine.TargetFileName)"
Source="$(var.NSEngine.TargetPath)" DiskId="1"
KeyPath="yes" />
<ServiceInstall Id="NSEngineInstall"
DisplayName="My Name Server"
Name="NSEngine"
ErrorControl="normal"
Start="auto"
Type="ownProcess"
Account="Network Service"
Vital="yes"
Interactive="no"/>
<ServiceControl Id="NSEngineControl"
Name="NSEngine"
Start="install"
Stop="both"
Remove="uninstall" />
</Component>
</DirectoryRef>
<Feature Id="MainFeature" Title="Main Feature" Level="1">
<ComponentRef Id="NameServiceComponent"/>
</Feature>
What I am doing wrong?
TYI
Thomas Due
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users