Make sure you have marked those properties as secure (see the
proper...@secure attribute).

-----Original Message-----
From: vjt [mailto:victor.jara.telv...@gmail.com] 
Sent: Wednesday, May 26, 2010 7:51 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ServiceInstall Problem


Hi all 

this is my first project using widows installer xml and I have a question. I
have a project that deploys a windows service, 
 
       <File Id="AppID" Name="$(var.App.TargetFileName)" 
        Source="$(var.App.TargetPath)" DiskId="1" KeyPath="yes" /> 
        <File Id="AppConfig" Name="$(var.App.TargetFileName).config" 
        Source="$(var.App.ProjectDir)App.config" DiskId="1" KeyPath="no" /> 
        <ServiceInstall Id="AppServiceInstall" DisplayName="AppName"
Name="AppID" Start="auto" 
        Account="[SERVICE_DOMAIN]\[SERVICE_ACCOUNT]"
Password="[SERVICE_PASSWORD]" 
        ErrorControl="ignore" Interactive="no" Type="ownProcess" Vital="yes"
> 
        </ServiceInstall> 
        <ServiceControl Id="AppServiceControl" Name="AppID" Start="install"
Stop="uninstall" 
        Remove="uninstall" /> 


During the installation process, a form appears to introduce the credentials
for the service. WixUI_FeatureTree has been customized to included this
form. 


        <Dialog Id="ServiceUserCredentialsDlg" Width="370" Height="270"
Title="[ProductName]"> 
                <Control Id="AccountEdit" Type="Edit" X="20" Y="72"
Width="320" Height="15" 
                        Property="SERVICE_DOMAIN" Text="47" /> 
                <Control Id="DomainEdit" Type="Edit" X="20" Y="102"
Width="320" Height="18" 
                        Property="SERVICE_ACCOUNT"  Text="47" /> 
                <Control Id="PasswordEdit" Type="Edit" Password="yes" X="20"
Y="132" Width="320" 
                        Height="18" Property="SERVICE_PASSWORD" Text="47" />

        </Dialog> 


I have some kind of problem to reference properties when the service is
going to be installed. 
According the log file, the service is installed with the following action: 


        Executing op:
ServiceInstall(Name=AppName,DisplayName=AppName,ImagePath="C:\Program Files
(x86)\AppName\AppName.exe",ServiceType=16,StartType=2,ErrorControl=32768,,De
pendencies=[~],,StartName=\,,,,) 


But shows the following error: 

        Error 1920. Service 'AppName' (AppName) failed to start. Verify that
you have sufficient privileges to start system services. 


                
I think there is some problem when referencing the properties
[SERVICE_DOMAIN],[SERVICE_ACCOUNT] and [SERVICE_PASSWORD]. Parameters of
function  ServiceInstall should be something like  
...,StartName=MyValueDomain\MyValueAccount,MyValuePassword,... 
                
Does anyone know a way to reference these properties? 

Thanks in advance, vjt. 

-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ServiceInstall
-Problem-tp5103940p5103940.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--

_______________________________________________
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