Running scripts is not recommended and using InstallService should be avoided
from what I hear.  (I am relatively new and don't claim to be an expert.)

I would look at the script and figure out what it is doing, then use the
equivalent wix elements to install the service.  Something like this:
 
    <ComponentGroup Id="Service.exe" Directory="WebServicesDir">
      <Component Id="Service.exe" >
        <File Id="Service.exe" KeyPath="yes"
Source="$(var.Service)\Service.exe" />
        
        
        <util:User Id="AdminUser" Domain="[DOMAIN]" Name="[ACCOUNT]"
CreateUser="no" >
          <util:GroupRef Id="AdminGroup"/>
        </util:User>
        
        <util:RestartResource ServiceName="Service_Reg_Key"/>
        
        <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes"
Name="Service_Reg_Key" DisplayName="$(var.RdpPkgNameBldProp)"
                         Description="!(loc.Description)" Start="auto"
Account="[DOMAIN]\[ACCOUNT]" ErrorControl="ignore" Interactive="no"
Password=""/>
        <ServiceControl Id="StopService" Stop="both" Remove="uninstall"
Name="Service_Reg_Key" Wait="yes" />-->
        <ServiceControl Id="StartStopService" Start="install" Stop="both"
Remove="uninstall" Name="Service_Reg_Key" Wait="yes" />
      </Component>
</ComponentGroup>

There are other approaches on google blogs.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problems-writing-an-installer-for-ActiveMQ-tp7597556p7597578.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

Reply via email to