vscodium.xsl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:wi="http://schemas.microsoft.com/wix/2006/wi">
  5. <xsl:strip-space elements="*"/>
  6. <xsl:template match="@*|node()">
  7. <xsl:copy>
  8. <xsl:apply-templates select="@*|node()" />
  9. </xsl:copy>
  10. </xsl:template>
  11. <xsl:key name="vId1ToReplace" match="wi:Component[wi:File[contains(@Source,'@@PRODUCT_NAME@@.exe')]]" use="@Id"/>
  12. <xsl:template match="node()[key('vId1ToReplace', @Id)]">
  13. <xsl:copy>
  14. <xsl:attribute name="Id">VSCODIUM.EXE</xsl:attribute>
  15. <xsl:copy-of select="@*[name()!='Id']"/>
  16. <xsl:apply-templates />
  17. </xsl:copy>
  18. </xsl:template>
  19. <xsl:template match="wi:Component/wi:File[contains(@Source,'@@PRODUCT_NAME@@.exe')]">
  20. <xsl:copy>
  21. <xsl:attribute name="Id">VSCODIUM.EXE</xsl:attribute>
  22. <xsl:copy-of select="@*[name()!='Id']"/>
  23. <xsl:apply-templates />
  24. </xsl:copy>
  25. </xsl:template>
  26. <xsl:key name="vId2ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\bower.ico')]]" use="@Id"/>
  27. <xsl:template match="node()[key('vId2ToReplace', @Id)]">
  28. <xsl:copy>
  29. <xsl:attribute name="Id">BOWER.ICO</xsl:attribute>
  30. <xsl:copy-of select="@*[name()!='Id']"/>
  31. <xsl:apply-templates />
  32. </xsl:copy>
  33. </xsl:template>
  34. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\bower.ico')]">
  35. <xsl:copy>
  36. <xsl:attribute name="Id">BOWER.ICO</xsl:attribute>
  37. <xsl:copy-of select="@*[name()!='Id']"/>
  38. <xsl:apply-templates />
  39. </xsl:copy>
  40. </xsl:template>
  41. <xsl:key name="vId3ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\c.ico')]]" use="@Id"/>
  42. <xsl:template match="node()[key('vId3ToReplace', @Id)]">
  43. <xsl:copy>
  44. <xsl:attribute name="Id">C.ICO</xsl:attribute>
  45. <xsl:copy-of select="@*[name()!='Id']"/>
  46. <xsl:apply-templates />
  47. </xsl:copy>
  48. </xsl:template>
  49. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\c.ico')]">
  50. <xsl:copy>
  51. <xsl:attribute name="Id">C.ICO</xsl:attribute>
  52. <xsl:copy-of select="@*[name()!='Id']"/>
  53. <xsl:apply-templates />
  54. </xsl:copy>
  55. </xsl:template>
  56. <xsl:key name="vId4ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\config.ico')]]" use="@Id"/>
  57. <xsl:template match="node()[key('vId4ToReplace', @Id)]">
  58. <xsl:copy>
  59. <xsl:attribute name="Id">CONFIG.ICO</xsl:attribute>
  60. <xsl:copy-of select="@*[name()!='Id']"/>
  61. <xsl:apply-templates />
  62. </xsl:copy>
  63. </xsl:template>
  64. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\config.ico')]">
  65. <xsl:copy>
  66. <xsl:attribute name="Id">CONFIG.ICO</xsl:attribute>
  67. <xsl:copy-of select="@*[name()!='Id']"/>
  68. <xsl:apply-templates />
  69. </xsl:copy>
  70. </xsl:template>
  71. <xsl:key name="vId5ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\cpp.ico')]]" use="@Id"/>
  72. <xsl:template match="node()[key('vId5ToReplace', @Id)]">
  73. <xsl:copy>
  74. <xsl:attribute name="Id">CPP.ICO</xsl:attribute>
  75. <xsl:copy-of select="@*[name()!='Id']"/>
  76. <xsl:apply-templates />
  77. </xsl:copy>
  78. </xsl:template>
  79. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\cpp.ico')]">
  80. <xsl:copy>
  81. <xsl:attribute name="Id">CPP.ICO</xsl:attribute>
  82. <xsl:copy-of select="@*[name()!='Id']"/>
  83. <xsl:apply-templates />
  84. </xsl:copy>
  85. </xsl:template>
  86. <xsl:key name="vId7ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\csharp.ico')]]" use="@Id"/>
  87. <xsl:template match="node()[key('vId7ToReplace', @Id)]">
  88. <xsl:copy>
  89. <xsl:attribute name="Id">CSHARP.ICO</xsl:attribute>
  90. <xsl:copy-of select="@*[name()!='Id']"/>
  91. <xsl:apply-templates />
  92. </xsl:copy>
  93. </xsl:template>
  94. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\csharp.ico')]">
  95. <xsl:copy>
  96. <xsl:attribute name="Id">CSHARP.ICO</xsl:attribute>
  97. <xsl:copy-of select="@*[name()!='Id']"/>
  98. <xsl:apply-templates />
  99. </xsl:copy>
  100. </xsl:template>
  101. <xsl:key name="vId8ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\css.ico')]]" use="@Id"/>
  102. <xsl:template match="node()[key('vId8ToReplace', @Id)]">
  103. <xsl:copy>
  104. <xsl:attribute name="Id">CSS.ICO</xsl:attribute>
  105. <xsl:copy-of select="@*[name()!='Id']"/>
  106. <xsl:apply-templates />
  107. </xsl:copy>
  108. </xsl:template>
  109. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\css.ico')]">
  110. <xsl:copy>
  111. <xsl:attribute name="Id">CSS.ICO</xsl:attribute>
  112. <xsl:copy-of select="@*[name()!='Id']"/>
  113. <xsl:apply-templates />
  114. </xsl:copy>
  115. </xsl:template>
  116. <xsl:key name="vId9ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\default.ico')]]" use="@Id"/>
  117. <xsl:template match="node()[key('vId9ToReplace', @Id)]">
  118. <xsl:copy>
  119. <xsl:attribute name="Id">DEFAULT.ICO</xsl:attribute>
  120. <xsl:copy-of select="@*[name()!='Id']"/>
  121. <xsl:apply-templates />
  122. </xsl:copy>
  123. </xsl:template>
  124. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\default.ico')]">
  125. <xsl:copy>
  126. <xsl:attribute name="Id">DEFAULT.ICO</xsl:attribute>
  127. <xsl:copy-of select="@*[name()!='Id']"/>
  128. <xsl:apply-templates />
  129. </xsl:copy>
  130. </xsl:template>
  131. <xsl:key name="vId10ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\go.ico')]]" use="@Id"/>
  132. <xsl:template match="node()[key('vId10ToReplace', @Id)]">
  133. <xsl:copy>
  134. <xsl:attribute name="Id">GO.ICO</xsl:attribute>
  135. <xsl:copy-of select="@*[name()!='Id']"/>
  136. <xsl:apply-templates />
  137. </xsl:copy>
  138. </xsl:template>
  139. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\go.ico')]">
  140. <xsl:copy>
  141. <xsl:attribute name="Id">GO.ICO</xsl:attribute>
  142. <xsl:copy-of select="@*[name()!='Id']"/>
  143. <xsl:apply-templates />
  144. </xsl:copy>
  145. </xsl:template>
  146. <xsl:key name="vId11ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\html.ico')]]" use="@Id"/>
  147. <xsl:template match="node()[key('vId11ToReplace', @Id)]">
  148. <xsl:copy>
  149. <xsl:attribute name="Id">HTML.ICO</xsl:attribute>
  150. <xsl:copy-of select="@*[name()!='Id']"/>
  151. <xsl:apply-templates />
  152. </xsl:copy>
  153. </xsl:template>
  154. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\html.ico')]">
  155. <xsl:copy>
  156. <xsl:attribute name="Id">HTML.ICO</xsl:attribute>
  157. <xsl:copy-of select="@*[name()!='Id']"/>
  158. <xsl:apply-templates />
  159. </xsl:copy>
  160. </xsl:template>
  161. <xsl:key name="vId12ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\jade.ico')]]" use="@Id"/>
  162. <xsl:template match="node()[key('vId12ToReplace', @Id)]">
  163. <xsl:copy>
  164. <xsl:attribute name="Id">JADE.ICO</xsl:attribute>
  165. <xsl:copy-of select="@*[name()!='Id']"/>
  166. <xsl:apply-templates />
  167. </xsl:copy>
  168. </xsl:template>
  169. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\jade.ico')]">
  170. <xsl:copy>
  171. <xsl:attribute name="Id">JADE.ICO</xsl:attribute>
  172. <xsl:copy-of select="@*[name()!='Id']"/>
  173. <xsl:apply-templates />
  174. </xsl:copy>
  175. </xsl:template>
  176. <xsl:key name="vId13ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\java.ico')]]" use="@Id"/>
  177. <xsl:template match="node()[key('vId13ToReplace', @Id)]">
  178. <xsl:copy>
  179. <xsl:attribute name="Id">JAVA.ICO</xsl:attribute>
  180. <xsl:copy-of select="@*[name()!='Id']"/>
  181. <xsl:apply-templates />
  182. </xsl:copy>
  183. </xsl:template>
  184. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\java.ico')]">
  185. <xsl:copy>
  186. <xsl:attribute name="Id">JAVA.ICO</xsl:attribute>
  187. <xsl:copy-of select="@*[name()!='Id']"/>
  188. <xsl:apply-templates />
  189. </xsl:copy>
  190. </xsl:template>
  191. <xsl:key name="vId14ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\javascript.ico')]]" use="@Id"/>
  192. <xsl:template match="node()[key('vId14ToReplace', @Id)]">
  193. <xsl:copy>
  194. <xsl:attribute name="Id">JAVASCRIPT.ICO</xsl:attribute>
  195. <xsl:copy-of select="@*[name()!='Id']"/>
  196. <xsl:apply-templates />
  197. </xsl:copy>
  198. </xsl:template>
  199. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\javascript.ico')]">
  200. <xsl:copy>
  201. <xsl:attribute name="Id">JAVASCRIPT.ICO</xsl:attribute>
  202. <xsl:copy-of select="@*[name()!='Id']"/>
  203. <xsl:apply-templates />
  204. </xsl:copy>
  205. </xsl:template>
  206. <xsl:key name="vId15ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\json.ico')]]" use="@Id"/>
  207. <xsl:template match="node()[key('vId15ToReplace', @Id)]">
  208. <xsl:copy>
  209. <xsl:attribute name="Id">JSON.ICO</xsl:attribute>
  210. <xsl:copy-of select="@*[name()!='Id']"/>
  211. <xsl:apply-templates />
  212. </xsl:copy>
  213. </xsl:template>
  214. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\json.ico')]">
  215. <xsl:copy>
  216. <xsl:attribute name="Id">JSON.ICO</xsl:attribute>
  217. <xsl:copy-of select="@*[name()!='Id']"/>
  218. <xsl:apply-templates />
  219. </xsl:copy>
  220. </xsl:template>
  221. <xsl:key name="vId16ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\less.ico')]]" use="@Id"/>
  222. <xsl:template match="node()[key('vId16ToReplace', @Id)]">
  223. <xsl:copy>
  224. <xsl:attribute name="Id">LESS.ICO</xsl:attribute>
  225. <xsl:copy-of select="@*[name()!='Id']"/>
  226. <xsl:apply-templates />
  227. </xsl:copy>
  228. </xsl:template>
  229. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\less.ico')]">
  230. <xsl:copy>
  231. <xsl:attribute name="Id">LESS.ICO</xsl:attribute>
  232. <xsl:copy-of select="@*[name()!='Id']"/>
  233. <xsl:apply-templates />
  234. </xsl:copy>
  235. </xsl:template>
  236. <xsl:key name="vId17ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\markdown.ico')]]" use="@Id"/>
  237. <xsl:template match="node()[key('vId17ToReplace', @Id)]">
  238. <xsl:copy>
  239. <xsl:attribute name="Id">MARKDOWN.ICO</xsl:attribute>
  240. <xsl:copy-of select="@*[name()!='Id']"/>
  241. <xsl:apply-templates />
  242. </xsl:copy>
  243. </xsl:template>
  244. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\markdown.ico')]">
  245. <xsl:copy>
  246. <xsl:attribute name="Id">MARKDOWN.ICO</xsl:attribute>
  247. <xsl:copy-of select="@*[name()!='Id']"/>
  248. <xsl:apply-templates />
  249. </xsl:copy>
  250. </xsl:template>
  251. <xsl:key name="vId18ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\php.ico')]]" use="@Id"/>
  252. <xsl:template match="node()[key('vId18ToReplace', @Id)]">
  253. <xsl:copy>
  254. <xsl:attribute name="Id">PHP.ICO</xsl:attribute>
  255. <xsl:copy-of select="@*[name()!='Id']"/>
  256. <xsl:apply-templates />
  257. </xsl:copy>
  258. </xsl:template>
  259. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\php.ico')]">
  260. <xsl:copy>
  261. <xsl:attribute name="Id">PHP.ICO</xsl:attribute>
  262. <xsl:copy-of select="@*[name()!='Id']"/>
  263. <xsl:apply-templates />
  264. </xsl:copy>
  265. </xsl:template>
  266. <xsl:key name="vId19ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\powershell.ico')]]" use="@Id"/>
  267. <xsl:template match="node()[key('vId19ToReplace', @Id)]">
  268. <xsl:copy>
  269. <xsl:attribute name="Id">POWERSHELL.ICO</xsl:attribute>
  270. <xsl:copy-of select="@*[name()!='Id']"/>
  271. <xsl:apply-templates />
  272. </xsl:copy>
  273. </xsl:template>
  274. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\powershell.ico')]">
  275. <xsl:copy>
  276. <xsl:attribute name="Id">POWERSHELL.ICO</xsl:attribute>
  277. <xsl:copy-of select="@*[name()!='Id']"/>
  278. <xsl:apply-templates />
  279. </xsl:copy>
  280. </xsl:template>
  281. <xsl:key name="vId20ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\python.ico')]]" use="@Id"/>
  282. <xsl:template match="node()[key('vId20ToReplace', @Id)]">
  283. <xsl:copy>
  284. <xsl:attribute name="Id">PYTHON.ICO</xsl:attribute>
  285. <xsl:copy-of select="@*[name()!='Id']"/>
  286. <xsl:apply-templates />
  287. </xsl:copy>
  288. </xsl:template>
  289. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\python.ico')]">
  290. <xsl:copy>
  291. <xsl:attribute name="Id">PYTHON.ICO</xsl:attribute>
  292. <xsl:copy-of select="@*[name()!='Id']"/>
  293. <xsl:apply-templates />
  294. </xsl:copy>
  295. </xsl:template>
  296. <xsl:key name="vId21ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\react.ico')]]" use="@Id"/>
  297. <xsl:template match="node()[key('vId21ToReplace', @Id)]">
  298. <xsl:copy>
  299. <xsl:attribute name="Id">REACT.ICO</xsl:attribute>
  300. <xsl:copy-of select="@*[name()!='Id']"/>
  301. <xsl:apply-templates />
  302. </xsl:copy>
  303. </xsl:template>
  304. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\react.ico')]">
  305. <xsl:copy>
  306. <xsl:attribute name="Id">REACT.ICO</xsl:attribute>
  307. <xsl:copy-of select="@*[name()!='Id']"/>
  308. <xsl:apply-templates />
  309. </xsl:copy>
  310. </xsl:template>
  311. <xsl:key name="vId22ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\ruby.ico')]]" use="@Id"/>
  312. <xsl:template match="node()[key('vId22ToReplace', @Id)]">
  313. <xsl:copy>
  314. <xsl:attribute name="Id">RUBY.ICO</xsl:attribute>
  315. <xsl:copy-of select="@*[name()!='Id']"/>
  316. <xsl:apply-templates />
  317. </xsl:copy>
  318. </xsl:template>
  319. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\ruby.ico')]">
  320. <xsl:copy>
  321. <xsl:attribute name="Id">RUBY.ICO</xsl:attribute>
  322. <xsl:copy-of select="@*[name()!='Id']"/>
  323. <xsl:apply-templates />
  324. </xsl:copy>
  325. </xsl:template>
  326. <xsl:key name="vId23ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\sass.ico')]]" use="@Id"/>
  327. <xsl:template match="node()[key('vId23ToReplace', @Id)]">
  328. <xsl:copy>
  329. <xsl:attribute name="Id">SASS.ICO</xsl:attribute>
  330. <xsl:copy-of select="@*[name()!='Id']"/>
  331. <xsl:apply-templates />
  332. </xsl:copy>
  333. </xsl:template>
  334. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\sass.ico')]">
  335. <xsl:copy>
  336. <xsl:attribute name="Id">SASS.ICO</xsl:attribute>
  337. <xsl:copy-of select="@*[name()!='Id']"/>
  338. <xsl:apply-templates />
  339. </xsl:copy>
  340. </xsl:template>
  341. <xsl:key name="vId24ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\shell.ico')]]" use="@Id"/>
  342. <xsl:template match="node()[key('vId24ToReplace', @Id)]">
  343. <xsl:copy>
  344. <xsl:attribute name="Id">SHELL.ICO</xsl:attribute>
  345. <xsl:copy-of select="@*[name()!='Id']"/>
  346. <xsl:apply-templates />
  347. </xsl:copy>
  348. </xsl:template>
  349. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\shell.ico')]">
  350. <xsl:copy>
  351. <xsl:attribute name="Id">SHELL.ICO</xsl:attribute>
  352. <xsl:copy-of select="@*[name()!='Id']"/>
  353. <xsl:apply-templates />
  354. </xsl:copy>
  355. </xsl:template>
  356. <xsl:key name="vId25ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\sql.ico')]]" use="@Id"/>
  357. <xsl:template match="node()[key('vId25ToReplace', @Id)]">
  358. <xsl:copy>
  359. <xsl:attribute name="Id">SQL.ICO</xsl:attribute>
  360. <xsl:copy-of select="@*[name()!='Id']"/>
  361. <xsl:apply-templates />
  362. </xsl:copy>
  363. </xsl:template>
  364. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\sql.ico')]">
  365. <xsl:copy>
  366. <xsl:attribute name="Id">SQL.ICO</xsl:attribute>
  367. <xsl:copy-of select="@*[name()!='Id']"/>
  368. <xsl:apply-templates />
  369. </xsl:copy>
  370. </xsl:template>
  371. <xsl:key name="vId26ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\typescript.ico')]]" use="@Id"/>
  372. <xsl:template match="node()[key('vId26ToReplace', @Id)]">
  373. <xsl:copy>
  374. <xsl:attribute name="Id">TYPESCRIPT.ICO</xsl:attribute>
  375. <xsl:copy-of select="@*[name()!='Id']"/>
  376. <xsl:apply-templates />
  377. </xsl:copy>
  378. </xsl:template>
  379. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\typescript.ico')]">
  380. <xsl:copy>
  381. <xsl:attribute name="Id">TYPESCRIPT.ICO</xsl:attribute>
  382. <xsl:copy-of select="@*[name()!='Id']"/>
  383. <xsl:apply-templates />
  384. </xsl:copy>
  385. </xsl:template>
  386. <xsl:key name="vId27ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\vue.ico')]]" use="@Id"/>
  387. <xsl:template match="node()[key('vId27ToReplace', @Id)]">
  388. <xsl:copy>
  389. <xsl:attribute name="Id">VUE.ICO</xsl:attribute>
  390. <xsl:copy-of select="@*[name()!='Id']"/>
  391. <xsl:apply-templates />
  392. </xsl:copy>
  393. </xsl:template>
  394. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\vue.ico')]">
  395. <xsl:copy>
  396. <xsl:attribute name="Id">VUE.ICO</xsl:attribute>
  397. <xsl:copy-of select="@*[name()!='Id']"/>
  398. <xsl:apply-templates />
  399. </xsl:copy>
  400. </xsl:template>
  401. <xsl:key name="vId28ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\xml.ico')]]" use="@Id"/>
  402. <xsl:template match="node()[key('vId28ToReplace', @Id)]">
  403. <xsl:copy>
  404. <xsl:attribute name="Id">XML.ICO</xsl:attribute>
  405. <xsl:copy-of select="@*[name()!='Id']"/>
  406. <xsl:apply-templates />
  407. </xsl:copy>
  408. </xsl:template>
  409. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\xml.ico')]">
  410. <xsl:copy>
  411. <xsl:attribute name="Id">XML.ICO</xsl:attribute>
  412. <xsl:copy-of select="@*[name()!='Id']"/>
  413. <xsl:apply-templates />
  414. </xsl:copy>
  415. </xsl:template>
  416. <xsl:key name="vId29ToReplace" match="wi:Component[wi:File[contains(@Source,'resources\app\resources\win32\yaml.ico')]]" use="@Id"/>
  417. <xsl:template match="node()[key('vId29ToReplace', @Id)]">
  418. <xsl:copy>
  419. <xsl:attribute name="Id">YAML.ICO</xsl:attribute>
  420. <xsl:copy-of select="@*[name()!='Id']"/>
  421. <xsl:apply-templates />
  422. </xsl:copy>
  423. </xsl:template>
  424. <xsl:template match="wi:Component/wi:File[contains(@Source,'resources\app\resources\win32\yaml.ico')]">
  425. <xsl:copy>
  426. <xsl:attribute name="Id">YAML.ICO</xsl:attribute>
  427. <xsl:copy-of select="@*[name()!='Id']"/>
  428. <xsl:apply-templates />
  429. </xsl:copy>
  430. </xsl:template>
  431. <!-- Remove conflicting non-MSI updater -->
  432. <xsl:key name="FileToRemove" match="wi:Component[wi:File[contains(@Source,'tools\inno_updater.exe')]]" use="@Id" />
  433. <xsl:template match="*[self::wi:Component or self::wi:ComponentRef][key('FileToRemove', @Id)]" />
  434. <xsl:key name="FileToRemove" match="wi:Component[wi:File[contains(@Source,'tools\vcruntime140.dll')]]" use="@Id" />
  435. <xsl:template match="*[self::wi:Component or self::wi:ComponentRef][key('FileToRemove', @Id)]" />
  436. </xsl:stylesheet>