-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.wxs
30 lines (25 loc) · 1.65 KB
/
package.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="Simple Folder Syncer" Manufacturer="Grill Günther" UpgradeCode="9e914e0d-014b-4a92-a147-755ad34dfc26" Version="0.1.2">
<Icon Id="icon.ico" SourceFile="resources\icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<Property Id="ARPNOMODIFY" Value="no" Secure="yes" />
<MediaTemplate EmbedCab="yes" />
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="SyncerFolder" Name="Simple Folder Syncer" />
</StandardDirectory>
<Feature Id="Main">
<Component Directory="SyncerFolder" Guid="ef88aca5-ca0f-49b3-a95b-385d7c9a2965">
<File Source="target\\release\\simple-folder-syncer.exe" />
<File Source="reconnect-netdrive.bat" />
<File Id="InstallScheuduleCmd" Source="install-schedule.bat" />
<File Id="UninstallScheuduleCmd" Source="uninstall-schedule.bat" />
</Component>
</Feature>
<CustomAction Id='InstallSchedule' FileRef='InstallScheuduleCmd' ExeCommand='' Execute='immediate' Impersonate='yes' Return='check' />
<CustomAction Id='UninstallSchedule' FileRef='UninstallScheuduleCmd' ExeCommand='' Execute='immediate' Impersonate='yes' Return='ignore' />
<InstallExecuteSequence>
<Custom Action="InstallSchedule" After="InstallFinalize" Condition="NOT Installed"/>
<Custom Action="UninstallSchedule" Before="InstallFinalize" Condition='Installed AND ( REMOVE = "ALL" OR AI_INSTALL_MODE = "Remove" ) AND NOT UPGRADINGPRODUCTCODE'/>
</InstallExecuteSequence>
</Package>
</Wix>