Hello,
i want to install a service and then start him. During uninstall i want to stop and remove the service.
See enclosed example:
<Component Id="C_FL_HIBSERV.EXE" Guid="{7C9AB67C-DB44-4E17-99BC-CA42154DC3E3}">
<File Id="FL_HIBSERV.EXE" DiskId="1" KeyPath="yes" LongName="HIBSERV.EXE" Name="HIBSERVE" Source="D:\\Download\\BackupTest\\HIBACK\\HIBSERV.EXE" DefaultSize="126976" DefaultVersion="6.6.5"/>
<ServiceInstall Id="HibServ" ErrorControl="normal" Name="Hibserv" Start="auto" Type="ownProcess" DisplayName="HICOMP Gui-Server">
<Permission User="Administrators" ServiceUserDefinedControl="yes" ServiceStop="yes" ServiceStart="yes" ServiceQueryStatus="yes" ServiceQueryConfig="yes" ServicePauseContinue="yes" ServiceInterrogate="yes" ServiceEnumerateDependents="yes" ServiceChangeConfig="yes" Extended="yes"/>
</ServiceInstall>
<ServiceControl Id="HibServControl" Name="HibServ" Remove="uninstall" Stop="uninstall" Wait="yes" Start="install"/>
</Component>
produces error:
ExecSecureObjects: Error 0x80070534: failed to get sid
for account:
I need a functional example, for install a service and with permissions to start, stop and remove during install and uninstall.
Kind Regards
C.Bartholomae