Created
April 28, 2021 23:37
-
-
Save mgreen27/5e2c4b6788d56b0ae8c25ec2886bb8b4 to your computer and use it in GitHub Desktop.
Velociraptor x86 msi config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='windows-1252'?> | |
<?define AppRegKey="Software\COMPANYNAME\TOOLNAME" ?> | |
<?define PackageDescription="COMPANYNAME TOOLNAME installer" ?> | |
<?define Manufacturer="COMPANYNAME" ?> | |
<?define Name="TOOLNAME" ?> | |
<?define Version="VERSION" ?> | |
<?define BinaryName="TOOLNAME.exe" ?> | |
<?define BinaryNamex86="TOOLNAMEx86.exe" ?> | |
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | |
<Product Name='$(var.Name)' Manufacturer='$(var.Manufacturer)' | |
Id='*' | |
UpgradeCode='19690A19-E393-4E32-94B6-AC0DC7BDF73E' | |
Language='1033' Codepage='1252' Version='1.0'> | |
<Package Id='*' Keywords='Installer' Description="$(var.PackageDescription)" | |
Comments='$(var.PackageDescription)' | |
Manufacturer='$(var.Manufacturer)' | |
InstallerVersion='200' Languages='1033' Compressed='yes' | |
SummaryCodepage='1252' /> | |
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' /> | |
<Property Id='DiskPrompt' Value="Installation [1]" /> | |
<Directory Id='TARGETDIR' Name='SourceDir'> | |
<Directory Id='ProgramFilesFolder' Name='PFiles'> | |
<Directory Id='INSTALLDIR' Name='$(var.Name)'> | |
<Component Id='MainExecutable' | |
Guid='1DF5F6E9-2056-4B02-89A8-4FAC5E0A1F4A'> | |
<File Id='ServiceEXE' Name='$(var.BinaryName)' | |
DiskId='1' | |
Source='.\$(var.BinaryNamex86)' KeyPath='yes'> | |
</File> | |
<ServiceInstall | |
Id="ServiceInstaller" | |
Type="ownProcess" | |
Vital="yes" | |
Name="$(var.Name)" | |
DisplayName="$(var.Name) Service" | |
Description="$(var.Name) Service" | |
Start="auto" | |
Account="LocalSystem" | |
Arguments=' service run ' | |
ErrorControl="normal" | |
Interactive="no"/> | |
<util:ServiceConfig xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" | |
ServiceName="$(var.Name)" | |
FirstFailureActionType="restart" | |
SecondFailureActionType="restart" | |
ThirdFailureActionType="restart" | |
RestartServiceDelayInSeconds="30" | |
ResetPeriodInDays="0" /> | |
<ServiceControl | |
Id="StartService" | |
Name="$(var.Name)" | |
Stop="both" | |
Start="install" | |
Remove="uninstall" Wait="yes" /> | |
<RemoveFile Id="PurgeINSTALLDIR" Name="*.*" On="uninstall" /> | |
</Component> | |
</Directory> | |
</Directory> | |
</Directory> | |
<Feature Id='Complete' Level='1'> | |
<ComponentRef Id='MainExecutable' /> | |
</Feature> | |
<MajorUpgrade DowngradeErrorMessage="Downgrades are not allowed." | |
Schedule="afterInstallValidate" /> | |
<Property Id="ALLUSERS" Value="1" /> | |
<Property Id="ARPNOREPAIR" Value="1" /> | |
<Property Id="ARPNOMODIFY" Value="1" /> | |
<?if $(sys.BUILDARCH) = x86 ?> | |
<Condition Message="This MSI is for a x86 Operating System and can not be installed on a x64 machine."> | |
<![CDATA[Not VersionNT64]]> | |
</Condition> | |
<?endif?> | |
</Product> | |
</Wix> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment