Skip to content

Instantly share code, notes, and snippets.

@rrreese
Created November 18, 2012 10:53
Show Gist options
  • Save rrreese/4104542 to your computer and use it in GitHub Desktop.
Save rrreese/4104542 to your computer and use it in GitHub Desktop.
Installing and Starting Windows Services with WiX
<ServiceInstall Id="TestServiceID"
Name="testService"
Type="ownProcess"
ErrorControl="normal"
Start="auto" >
<⁄ServiceInstall>
<File Id="testFile1" Name="testFile1.exe" Source="E:\Documents\TestFile1.exe" KeyPath="yes"⁄>
<File Id="testFile2" Name="testFile2.txt" Source="E:\Documents\TestFile2.txt" ⁄>
<File Id="testFile3" Name="testFile3.txt" Source="E:\Documents\TestFile3.txt" ⁄>
<⁄Component>
<ServiceControl Id="serviceControltestID"
Name="testService"
Remove="uninstall"
Start="install"
Stop="uninstall"
Wait="yes" ⁄>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment