Product.wxs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">
  3. <?if $(var.Platform) = x64 ?>
  4. <?define bitness = "(64 bit)" ?>
  5. <?define Win64 = "yes" ?>
  6. <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  7. <?else ?>
  8. <?define bitness = "(32 bit)" ?>
  9. <?define Win64 = "no" ?>
  10. <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  11. <?endif ?>
  12. <Product Id="*" Name="FnSync" Language="1033" Version="0.8.0.0" Manufacturer="holmium" UpgradeCode="9ad7c0b9-c690-4cf2-bbb6-093d68c50100" >
  13. <Package InstallerVersion="500" Compressed="yes" InstallScope="perMachine" />
  14. <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
  15. <MediaTemplate EmbedCab="yes"/>
  16. <WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
  17. <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
  18. <UIRef Id="WixUI_InstallDir" />
  19. <Feature Id="ProductFeature" Title="WixInstaller" Level="1">
  20. <ComponentGroupRef Id="ProductComponents" />
  21. </Feature>
  22. </Product>
  23. <Fragment>
  24. <Directory Id="TARGETDIR" Name="SourceDir">
  25. <Directory Id="$(var.PlatformProgramFilesFolder)">
  26. <Directory Id="INSTALLFOLDER" Name="FnSync" />
  27. </Directory>
  28. <Directory Id="ProgramMenuFolder">
  29. </Directory>
  30. </Directory>
  31. </Fragment>
  32. <Fragment>
  33. <DirectoryRef Id="ProgramMenuFolder">
  34. <Component Id="ApplicationShortcut" Guid="c7a6c885-eb0f-406e-9351-90cce2092d00">
  35. <Shortcut Id="ApplicationStartMenuShortcut" Name="FnSync" Description="FnSync" Target="[INSTALLFOLDER]FnSync.exe" WorkingDirectory="INSTALLFOLDER">
  36. <!--AUMID-->
  37. <!--<ShortcutProperty Key="System.AppUserModel.ID" Value="holmium.FnSync.A7F49234CADC422229142EDC7D8932E"/>-->
  38. <!--COM CLSID, specifying which CLSID to activate when toast clicked-->
  39. <!--<ShortcutProperty Key="System.AppUserModel.ToastActivatorCLSID" Value="{8C025F15-F051-427B-AF16-9F43DB9ED3EA}"/>-->
  40. </Shortcut>
  41. <RemoveFile Id="RemoveApplicationShortcut" Directory="ProgramMenuFolder" Name="Desktop Toasts" On="uninstall"/>
  42. <RegistryValue Root="HKCU" Key="Software\FnSync" Name="installed" Type="integer" Value="1" KeyPath="yes" />
  43. </Component>
  44. </DirectoryRef>
  45. </Fragment>
  46. <Fragment>
  47. <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
  48. <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
  49. <Component Id="ProductComponent">
  50. <!-- TODO: Insert files, registry keys, and other resources here. -->
  51. <File Source="$(var.FnSync.TargetPath)">
  52. <fire:FirewallException Id="FnSync_TCP"
  53. Name="FnSync_TCP"
  54. Protocol="tcp"
  55. Scope="any"
  56. IgnoreFailure="yes"
  57. Profile="all" />
  58. <fire:FirewallException Id="FnSync_UDP"
  59. Name="FnSync_UDP"
  60. Protocol="udp"
  61. Scope="any"
  62. IgnoreFailure="yes"
  63. Profile="all" />
  64. </File>
  65. </Component>
  66. <ComponentRef Id="ApplicationShortcut"/>
  67. <Component Id="FnSync.exe.config">
  68. <File Source="$(var.FnSync.TargetDir)\FnSync.exe.config" />
  69. </Component>
  70. <Component Id="AdonisUI.ClassicTheme.dll">
  71. <File Source="$(var.FnSync.TargetDir)\AdonisUI.ClassicTheme.dll" />
  72. </Component>
  73. <Component Id="AdonisUI.dll">
  74. <File Source="$(var.FnSync.TargetDir)\AdonisUI.dll" />
  75. </Component>
  76. <Component Id="BouncyCastle.Crypto.dll">
  77. <File Source="$(var.FnSync.TargetDir)\BouncyCastle.Crypto.dll" />
  78. </Component>
  79. <Component Id="Hardcodet.NotifyIcon.Wpf.dll">
  80. <File Source="$(var.FnSync.TargetDir)\Hardcodet.NotifyIcon.Wpf.dll" />
  81. </Component>
  82. <Component Id="Microsoft.Toolkit.Uwp.Notifications.dll">
  83. <File Source="$(var.FnSync.TargetDir)\Microsoft.Toolkit.Uwp.Notifications.dll" />
  84. </Component>
  85. <Component Id="Microsoft.Win32.Primitives.dll">
  86. <File Source="$(var.FnSync.TargetDir)\Microsoft.Win32.Primitives.dll" />
  87. </Component>
  88. <Component Id="netstandard.dll">
  89. <File Source="$(var.FnSync.TargetDir)\netstandard.dll" />
  90. </Component>
  91. <Component Id="Newtonsoft.Json.dll">
  92. <File Source="$(var.FnSync.TargetDir)\Newtonsoft.Json.dll" />
  93. </Component>
  94. <Component Id="Ookii.Dialogs.Wpf.dll">
  95. <File Source="$(var.FnSync.TargetDir)\Ookii.Dialogs.Wpf.dll" />
  96. </Component>
  97. <Component Id="QRCoder.dll">
  98. <File Source="$(var.FnSync.TargetDir)\QRCoder.dll" />
  99. </Component>
  100. <Component Id="QueryString.NETCore.dll">
  101. <File Source="$(var.FnSync.TargetDir)\QueryString.NETCore.dll" />
  102. </Component>
  103. <Component Id="System.AppContext.dll">
  104. <File Source="$(var.FnSync.TargetDir)\System.AppContext.dll" />
  105. </Component>
  106. <Component Id="System.Collections.Concurrent.dll">
  107. <File Source="$(var.FnSync.TargetDir)\System.Collections.Concurrent.dll" />
  108. </Component>
  109. <Component Id="System.Collections.dll">
  110. <File Source="$(var.FnSync.TargetDir)\System.Collections.dll" />
  111. </Component>
  112. <Component Id="System.Collections.NonGeneric.dll">
  113. <File Source="$(var.FnSync.TargetDir)\System.Collections.NonGeneric.dll" />
  114. </Component>
  115. <Component Id="System.Collections.Specialized.dll">
  116. <File Source="$(var.FnSync.TargetDir)\System.Collections.Specialized.dll" />
  117. </Component>
  118. <Component Id="System.ComponentModel.dll">
  119. <File Source="$(var.FnSync.TargetDir)\System.ComponentModel.dll" />
  120. </Component>
  121. <Component Id="System.ComponentModel.EventBasedAsync.dll">
  122. <File Source="$(var.FnSync.TargetDir)\System.ComponentModel.EventBasedAsync.dll" />
  123. </Component>
  124. <Component Id="System.ComponentModel.Primitives.dll">
  125. <File Source="$(var.FnSync.TargetDir)\System.ComponentModel.Primitives.dll" />
  126. </Component>
  127. <Component Id="System.ComponentModel.TypeConverter.dll">
  128. <File Source="$(var.FnSync.TargetDir)\System.ComponentModel.TypeConverter.dll" />
  129. </Component>
  130. <Component Id="System.Console.dll">
  131. <File Source="$(var.FnSync.TargetDir)\System.Console.dll" />
  132. </Component>
  133. <Component Id="System.Data.Common.dll">
  134. <File Source="$(var.FnSync.TargetDir)\System.Data.Common.dll" />
  135. </Component>
  136. <Component Id="System.Diagnostics.Contracts.dll">
  137. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.Contracts.dll" />
  138. </Component>
  139. <Component Id="System.Diagnostics.Debug.dll">
  140. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.Debug.dll" />
  141. </Component>
  142. <Component Id="System.Diagnostics.FileVersionInfo.dll">
  143. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.FileVersionInfo.dll" />
  144. </Component>
  145. <Component Id="System.Diagnostics.Process.dll">
  146. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.Process.dll" />
  147. </Component>
  148. <Component Id="System.Diagnostics.StackTrace.dll">
  149. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.StackTrace.dll" />
  150. </Component>
  151. <Component Id="System.Diagnostics.TextWriterTraceListener.dll">
  152. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.TextWriterTraceListener.dll" />
  153. </Component>
  154. <Component Id="System.Diagnostics.Tools.dll">
  155. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.Tools.dll" />
  156. </Component>
  157. <Component Id="System.Diagnostics.TraceSource.dll">
  158. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.TraceSource.dll" />
  159. </Component>
  160. <Component Id="System.Diagnostics.Tracing.dll">
  161. <File Source="$(var.FnSync.TargetDir)\System.Diagnostics.Tracing.dll" />
  162. </Component>
  163. <Component Id="System.Drawing.Primitives.dll">
  164. <File Source="$(var.FnSync.TargetDir)\System.Drawing.Primitives.dll" />
  165. </Component>
  166. <Component Id="System.Dynamic.Runtime.dll">
  167. <File Source="$(var.FnSync.TargetDir)\System.Dynamic.Runtime.dll" />
  168. </Component>
  169. <Component Id="System.Globalization.Calendars.dll">
  170. <File Source="$(var.FnSync.TargetDir)\System.Globalization.Calendars.dll" />
  171. </Component>
  172. <Component Id="System.Globalization.dll">
  173. <File Source="$(var.FnSync.TargetDir)\System.Globalization.dll" />
  174. </Component>
  175. <Component Id="System.Globalization.Extensions.dll">
  176. <File Source="$(var.FnSync.TargetDir)\System.Globalization.Extensions.dll" />
  177. </Component>
  178. <Component Id="System.IO.Compression.dll">
  179. <File Source="$(var.FnSync.TargetDir)\System.IO.Compression.dll" />
  180. </Component>
  181. <Component Id="System.IO.Compression.ZipFile.dll">
  182. <File Source="$(var.FnSync.TargetDir)\System.IO.Compression.ZipFile.dll" />
  183. </Component>
  184. <Component Id="System.IO.dll">
  185. <File Source="$(var.FnSync.TargetDir)\System.IO.dll" />
  186. </Component>
  187. <Component Id="System.IO.FileSystem.dll">
  188. <File Source="$(var.FnSync.TargetDir)\System.IO.FileSystem.dll" />
  189. </Component>
  190. <Component Id="System.IO.FileSystem.DriveInfo.dll">
  191. <File Source="$(var.FnSync.TargetDir)\System.IO.FileSystem.DriveInfo.dll" />
  192. </Component>
  193. <Component Id="System.IO.FileSystem.Primitives.dll">
  194. <File Source="$(var.FnSync.TargetDir)\System.IO.FileSystem.Primitives.dll" />
  195. </Component>
  196. <Component Id="System.IO.FileSystem.Watcher.dll">
  197. <File Source="$(var.FnSync.TargetDir)\System.IO.FileSystem.Watcher.dll" />
  198. </Component>
  199. <Component Id="System.IO.IsolatedStorage.dll">
  200. <File Source="$(var.FnSync.TargetDir)\System.IO.IsolatedStorage.dll" />
  201. </Component>
  202. <Component Id="System.IO.MemoryMappedFiles.dll">
  203. <File Source="$(var.FnSync.TargetDir)\System.IO.MemoryMappedFiles.dll" />
  204. </Component>
  205. <Component Id="System.IO.Pipes.dll">
  206. <File Source="$(var.FnSync.TargetDir)\System.IO.Pipes.dll" />
  207. </Component>
  208. <Component Id="System.IO.UnmanagedMemoryStream.dll">
  209. <File Source="$(var.FnSync.TargetDir)\System.IO.UnmanagedMemoryStream.dll" />
  210. </Component>
  211. <Component Id="System.Linq.dll">
  212. <File Source="$(var.FnSync.TargetDir)\System.Linq.dll" />
  213. </Component>
  214. <Component Id="System.Linq.Expressions.dll">
  215. <File Source="$(var.FnSync.TargetDir)\System.Linq.Expressions.dll" />
  216. </Component>
  217. <Component Id="System.Linq.Parallel.dll">
  218. <File Source="$(var.FnSync.TargetDir)\System.Linq.Parallel.dll" />
  219. </Component>
  220. <Component Id="System.Linq.Queryable.dll">
  221. <File Source="$(var.FnSync.TargetDir)\System.Linq.Queryable.dll" />
  222. </Component>
  223. <Component Id="System.Net.Http.dll">
  224. <File Source="$(var.FnSync.TargetDir)\System.Net.Http.dll" />
  225. </Component>
  226. <Component Id="System.Net.NameResolution.dll">
  227. <File Source="$(var.FnSync.TargetDir)\System.Net.NameResolution.dll" />
  228. </Component>
  229. <Component Id="System.Net.NetworkInformation.dll">
  230. <File Source="$(var.FnSync.TargetDir)\System.Net.NetworkInformation.dll" />
  231. </Component>
  232. <Component Id="System.Net.Ping.dll">
  233. <File Source="$(var.FnSync.TargetDir)\System.Net.Ping.dll" />
  234. </Component>
  235. <Component Id="System.Net.Primitives.dll">
  236. <File Source="$(var.FnSync.TargetDir)\System.Net.Primitives.dll" />
  237. </Component>
  238. <Component Id="System.Net.Requests.dll">
  239. <File Source="$(var.FnSync.TargetDir)\System.Net.Requests.dll" />
  240. </Component>
  241. <Component Id="System.Net.Security.dll">
  242. <File Source="$(var.FnSync.TargetDir)\System.Net.Security.dll" />
  243. </Component>
  244. <Component Id="System.Net.Sockets.dll">
  245. <File Source="$(var.FnSync.TargetDir)\System.Net.Sockets.dll" />
  246. </Component>
  247. <Component Id="System.Net.WebHeaderCollection.dll">
  248. <File Source="$(var.FnSync.TargetDir)\System.Net.WebHeaderCollection.dll" />
  249. </Component>
  250. <Component Id="System.Net.WebSockets.Client.dll">
  251. <File Source="$(var.FnSync.TargetDir)\System.Net.WebSockets.Client.dll" />
  252. </Component>
  253. <Component Id="System.Net.WebSockets.dll">
  254. <File Source="$(var.FnSync.TargetDir)\System.Net.WebSockets.dll" />
  255. </Component>
  256. <Component Id="System.ObjectModel.dll">
  257. <File Source="$(var.FnSync.TargetDir)\System.ObjectModel.dll" />
  258. </Component>
  259. <Component Id="System.Reflection.dll">
  260. <File Source="$(var.FnSync.TargetDir)\System.Reflection.dll" />
  261. </Component>
  262. <Component Id="System.Reflection.Extensions.dll">
  263. <File Source="$(var.FnSync.TargetDir)\System.Reflection.Extensions.dll" />
  264. </Component>
  265. <Component Id="System.Reflection.Primitives.dll">
  266. <File Source="$(var.FnSync.TargetDir)\System.Reflection.Primitives.dll" />
  267. </Component>
  268. <Component Id="System.Resources.Reader.dll">
  269. <File Source="$(var.FnSync.TargetDir)\System.Resources.Reader.dll" />
  270. </Component>
  271. <Component Id="System.Resources.ResourceManager.dll">
  272. <File Source="$(var.FnSync.TargetDir)\System.Resources.ResourceManager.dll" />
  273. </Component>
  274. <Component Id="System.Resources.Writer.dll">
  275. <File Source="$(var.FnSync.TargetDir)\System.Resources.Writer.dll" />
  276. </Component>
  277. <Component Id="System.Runtime.CompilerServices.VisualC.dll">
  278. <File Source="$(var.FnSync.TargetDir)\System.Runtime.CompilerServices.VisualC.dll" />
  279. </Component>
  280. <Component Id="System.Runtime.dll">
  281. <File Source="$(var.FnSync.TargetDir)\System.Runtime.dll" />
  282. </Component>
  283. <Component Id="System.Runtime.Extensions.dll">
  284. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Extensions.dll" />
  285. </Component>
  286. <Component Id="System.Runtime.Handles.dll">
  287. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Handles.dll" />
  288. </Component>
  289. <Component Id="System.Runtime.InteropServices.dll">
  290. <File Source="$(var.FnSync.TargetDir)\System.Runtime.InteropServices.dll" />
  291. </Component>
  292. <Component Id="System.Runtime.InteropServices.RuntimeInformation.dll">
  293. <File Source="$(var.FnSync.TargetDir)\System.Runtime.InteropServices.RuntimeInformation.dll" />
  294. </Component>
  295. <Component Id="System.Runtime.Numerics.dll">
  296. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Numerics.dll" />
  297. </Component>
  298. <Component Id="System.Runtime.Serialization.Formatters.dll">
  299. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Serialization.Formatters.dll" />
  300. </Component>
  301. <Component Id="System.Runtime.Serialization.Json.dll">
  302. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Serialization.Json.dll" />
  303. </Component>
  304. <Component Id="System.Runtime.Serialization.Primitives.dll">
  305. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Serialization.Primitives.dll" />
  306. </Component>
  307. <Component Id="System.Runtime.Serialization.Xml.dll">
  308. <File Source="$(var.FnSync.TargetDir)\System.Runtime.Serialization.Xml.dll" />
  309. </Component>
  310. <Component Id="System.Security.Claims.dll">
  311. <File Source="$(var.FnSync.TargetDir)\System.Security.Claims.dll" />
  312. </Component>
  313. <Component Id="System.Security.Cryptography.Algorithms.dll">
  314. <File Source="$(var.FnSync.TargetDir)\System.Security.Cryptography.Algorithms.dll" />
  315. </Component>
  316. <Component Id="System.Security.Cryptography.Csp.dll">
  317. <File Source="$(var.FnSync.TargetDir)\System.Security.Cryptography.Csp.dll" />
  318. </Component>
  319. <Component Id="System.Security.Cryptography.Encoding.dll">
  320. <File Source="$(var.FnSync.TargetDir)\System.Security.Cryptography.Encoding.dll" />
  321. </Component>
  322. <Component Id="System.Security.Cryptography.Primitives.dll">
  323. <File Source="$(var.FnSync.TargetDir)\System.Security.Cryptography.Primitives.dll" />
  324. </Component>
  325. <Component Id="System.Security.Cryptography.X509Certificates.dll">
  326. <File Source="$(var.FnSync.TargetDir)\System.Security.Cryptography.X509Certificates.dll" />
  327. </Component>
  328. <Component Id="System.Security.Principal.dll">
  329. <File Source="$(var.FnSync.TargetDir)\System.Security.Principal.dll" />
  330. </Component>
  331. <Component Id="System.Security.SecureString.dll">
  332. <File Source="$(var.FnSync.TargetDir)\System.Security.SecureString.dll" />
  333. </Component>
  334. <Component Id="System.Text.Encoding.dll">
  335. <File Source="$(var.FnSync.TargetDir)\System.Text.Encoding.dll" />
  336. </Component>
  337. <Component Id="System.Text.Encoding.Extensions.dll">
  338. <File Source="$(var.FnSync.TargetDir)\System.Text.Encoding.Extensions.dll" />
  339. </Component>
  340. <Component Id="System.Text.RegularExpressions.dll">
  341. <File Source="$(var.FnSync.TargetDir)\System.Text.RegularExpressions.dll" />
  342. </Component>
  343. <Component Id="System.Threading.dll">
  344. <File Source="$(var.FnSync.TargetDir)\System.Threading.dll" />
  345. </Component>
  346. <Component Id="System.Threading.Overlapped.dll">
  347. <File Source="$(var.FnSync.TargetDir)\System.Threading.Overlapped.dll" />
  348. </Component>
  349. <Component Id="System.Threading.Tasks.Dataflow.dll">
  350. <File Source="$(var.FnSync.TargetDir)\System.Threading.Tasks.Dataflow.dll" />
  351. </Component>
  352. <Component Id="System.Threading.Tasks.dll">
  353. <File Source="$(var.FnSync.TargetDir)\System.Threading.Tasks.dll" />
  354. </Component>
  355. <Component Id="System.Threading.Tasks.Parallel.dll">
  356. <File Source="$(var.FnSync.TargetDir)\System.Threading.Tasks.Parallel.dll" />
  357. </Component>
  358. <Component Id="System.Threading.Thread.dll">
  359. <File Source="$(var.FnSync.TargetDir)\System.Threading.Thread.dll" />
  360. </Component>
  361. <Component Id="System.Threading.ThreadPool.dll">
  362. <File Source="$(var.FnSync.TargetDir)\System.Threading.ThreadPool.dll" />
  363. </Component>
  364. <Component Id="System.Threading.Timer.dll">
  365. <File Source="$(var.FnSync.TargetDir)\System.Threading.Timer.dll" />
  366. </Component>
  367. <Component Id="System.ValueTuple.dll">
  368. <File Source="$(var.FnSync.TargetDir)\System.ValueTuple.dll" />
  369. </Component>
  370. <Component Id="System.Xml.ReaderWriter.dll">
  371. <File Source="$(var.FnSync.TargetDir)\System.Xml.ReaderWriter.dll" />
  372. </Component>
  373. <Component Id="System.Xml.XDocument.dll">
  374. <File Source="$(var.FnSync.TargetDir)\System.Xml.XDocument.dll" />
  375. </Component>
  376. <Component Id="System.Xml.XmlDocument.dll">
  377. <File Source="$(var.FnSync.TargetDir)\System.Xml.XmlDocument.dll" />
  378. </Component>
  379. <Component Id="System.Xml.XmlSerializer.dll">
  380. <File Source="$(var.FnSync.TargetDir)\System.Xml.XmlSerializer.dll" />
  381. </Component>
  382. <Component Id="System.Xml.XPath.dll">
  383. <File Source="$(var.FnSync.TargetDir)\System.Xml.XPath.dll" />
  384. </Component>
  385. <Component Id="System.Xml.XPath.XDocument.dll">
  386. <File Source="$(var.FnSync.TargetDir)\System.Xml.XPath.XDocument.dll" />
  387. </Component>
  388. </ComponentGroup>
  389. </Fragment>
  390. </Wix>