42 lines
1.8 KiB
Text
42 lines
1.8 KiB
Text
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||
|
|
<Product Id="*" Name="TestSched" Language="1033" Version="1.0.0.0" Manufacturer="LSW" UpgradeCode="61436dd3-dc9f-498e-bffa-403d8ed6b0ba">
|
||
|
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
||
|
|
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
||
|
|
<MediaTemplate />
|
||
|
|
<Feature Id="ProductFeature" Title="SetupProjectTestSched" Level="1">
|
||
|
|
<ComponentGroupRef Id="ProductComponents" />
|
||
|
|
</Feature>
|
||
|
|
</Product>
|
||
|
|
|
||
|
|
<Fragment>
|
||
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||
|
|
<Directory Id="ProgramFilesFolder">
|
||
|
|
<Directory Id="INSTALLFOLDER" Name="SetupProjectTestSched" />
|
||
|
|
</Directory>
|
||
|
|
</Directory>
|
||
|
|
</Fragment>
|
||
|
|
|
||
|
|
<Fragment>
|
||
|
|
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||
|
|
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
|
||
|
|
<!-- <Component Id="ProductComponent"> -->
|
||
|
|
<!-- TODO: Insert files, registry keys, and other resources here. -->
|
||
|
|
<!-- </Component> -->
|
||
|
|
</ComponentGroup>
|
||
|
|
</Fragment>
|
||
|
|
|
||
|
|
<Fragment>
|
||
|
|
<CustomAction Id="CreateScheduledTask" Return="check" Directory="eDosSyncFolder" Execute="deferred" Impersonate="no" ExeCommand=""[SystemFolder]SCHTASKS.EXE" /CREATE /TN "EDos Sync" /RU "eDosStation"/RP "Infopla+8" " />
|
||
|
|
<CustomAction Id="DeleteScheduledTask" Return="check" Directory="eDosSyncFolder" Execute="deferred" Impersonate="no" ExeCommand=""[SystemFolder]SCHTASKS.EXE" /DELETE /TN "EDos Sync" /F" />
|
||
|
|
|
||
|
|
<InstallExecuteSequence>
|
||
|
|
<Custom Action="CreateScheduledTask" After="InstallFiles" />
|
||
|
|
<Custom Action="DeleteScheduledTask" Before="RemoveFiles" />
|
||
|
|
</InstallExecuteSequence>
|
||
|
|
|
||
|
|
|
||
|
|
</Fragment>
|
||
|
|
|
||
|
|
</Wix>
|