parental-control/client/Installer/Package.wxs

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-09-09 10:41:07 +02:00
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="Marek Parental Control" Manufacturer="Disassembler" Version="1.0.0.0" UpgradeCode="feb429a6-684e-4506-816f-006384136754" Compressed="true">
<!-- Allow upgrades and prevent downgrades -->
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<!-- Define the directory structure -->
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="INSTALLDIR" Name="Marek Parental Control" />
</StandardDirectory>
<DirectoryRef Id="INSTALLDIR">
<Component Id="ServiceExecutable" Bitness="always64">
<File Id="ParentalControlService.exe"
Source="$(var.ParentalControlService.TargetDir)publish\ParentalControlService.exe"
KeyPath="true" />
<RemoveFile Id="ALLFILES" Name="*.*" On="both" />
<ServiceInstall Id="ServiceInstaller"
Type="ownProcess"
Name="ParentalControlService"
DisplayName="Marek Parental Control"
Description="Marek Parental Control"
Start="auto"
ErrorControl="normal" />
<ServiceControl Id="StartService"
Start="install"
Stop="both"
Remove="uninstall"
Name="ParentalControlService"
Wait="true" />
</Component>
</DirectoryRef>
<Feature Id="Service" Title="Marek Parental Control Setup" Level="1">
<ComponentRef Id="ServiceExecutable" />
</Feature>
</Package>
</Wix>