KetarinSettings.xml 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Ketarin>
  3. <Settings>
  4. <dictionary>
  5. <item>
  6. <key>
  7. <string>AuthorGuid</string>
  8. </key>
  9. <value>
  10. <string>System.String:{75a093b7-da5f-493a-b8f0-22c278f874c1}</string>
  11. </value>
  12. </item>
  13. <item>
  14. <key>
  15. <string>LastUpdateCheck</string>
  16. </key>
  17. <value>
  18. <string>AAEAAAD/////AQAAAAAAAAAEAQAAAA9TeXN0ZW0uRGF0ZVRpbWUCAAAABXRpY2tzCGRhdGVEYXRhAAAJEOGhVC47mtII4aFULjua0ogL</string>
  19. </value>
  20. </item>
  21. <item>
  22. <key>
  23. <string>MainForm/Size</string>
  24. </key>
  25. <value>
  26. <string>System.Drawing.Size:1046,476</string>
  27. </value>
  28. </item>
  29. <item>
  30. <key>
  31. <string>MainForm/Location</string>
  32. </key>
  33. <value>
  34. <string>System.Drawing.Point:203,77</string>
  35. </value>
  36. </item>
  37. <item>
  38. <key>
  39. <string>MainForm/WindowState</string>
  40. </key>
  41. <value>
  42. <string>System.Int32:0</string>
  43. </value>
  44. </item>
  45. <item>
  46. <key>
  47. <string>olvJobs/Application:Visibility</string>
  48. </key>
  49. <value>
  50. <string>System.Boolean:True</string>
  51. </value>
  52. </item>
  53. <item>
  54. <key>
  55. <string>olvJobs/Application:Width</string>
  56. </key>
  57. <value>
  58. <string>System.Int32:126</string>
  59. </value>
  60. </item>
  61. <item>
  62. <key>
  63. <string>olvJobs/Application:LastDisplayIndex</string>
  64. </key>
  65. <value>
  66. <string>System.Int32:0</string>
  67. </value>
  68. </item>
  69. <item>
  70. <key>
  71. <string>olvJobs/Last updated:Visibility</string>
  72. </key>
  73. <value>
  74. <string>System.Boolean:True</string>
  75. </value>
  76. </item>
  77. <item>
  78. <key>
  79. <string>olvJobs/Last updated:Width</string>
  80. </key>
  81. <value>
  82. <string>System.Int32:96</string>
  83. </value>
  84. </item>
  85. <item>
  86. <key>
  87. <string>olvJobs/Last updated:LastDisplayIndex</string>
  88. </key>
  89. <value>
  90. <string>System.Int32:2</string>
  91. </value>
  92. </item>
  93. <item>
  94. <key>
  95. <string>olvJobs/Progress:Visibility</string>
  96. </key>
  97. <value>
  98. <string>System.Boolean:True</string>
  99. </value>
  100. </item>
  101. <item>
  102. <key>
  103. <string>olvJobs/Progress:Width</string>
  104. </key>
  105. <value>
  106. <string>System.Int32:100</string>
  107. </value>
  108. </item>
  109. <item>
  110. <key>
  111. <string>olvJobs/Progress:LastDisplayIndex</string>
  112. </key>
  113. <value>
  114. <string>System.Int32:4</string>
  115. </value>
  116. </item>
  117. <item>
  118. <key>
  119. <string>olvJobs/Target:Visibility</string>
  120. </key>
  121. <value>
  122. <string>System.Boolean:True</string>
  123. </value>
  124. </item>
  125. <item>
  126. <key>
  127. <string>olvJobs/Target:Width</string>
  128. </key>
  129. <value>
  130. <string>System.Int32:0</string>
  131. </value>
  132. </item>
  133. <item>
  134. <key>
  135. <string>olvJobs/Target:LastDisplayIndex</string>
  136. </key>
  137. <value>
  138. <string>System.Int32:5</string>
  139. </value>
  140. </item>
  141. <item>
  142. <key>
  143. <string>olvJobs/Category:Visibility</string>
  144. </key>
  145. <value>
  146. <string>System.Boolean:True</string>
  147. </value>
  148. </item>
  149. <item>
  150. <key>
  151. <string>olvJobs/Category:Width</string>
  152. </key>
  153. <value>
  154. <string>System.Int32:80</string>
  155. </value>
  156. </item>
  157. <item>
  158. <key>
  159. <string>olvJobs/Category:LastDisplayIndex</string>
  160. </key>
  161. <value>
  162. <string>System.Int32:15</string>
  163. </value>
  164. </item>
  165. <item>
  166. <key>
  167. <string>olvJobs/Status:Visibility</string>
  168. </key>
  169. <value>
  170. <string>System.Boolean:True</string>
  171. </value>
  172. </item>
  173. <item>
  174. <key>
  175. <string>olvJobs/Status:Width</string>
  176. </key>
  177. <value>
  178. <string>System.Int32:79</string>
  179. </value>
  180. </item>
  181. <item>
  182. <key>
  183. <string>olvJobs/Status:LastDisplayIndex</string>
  184. </key>
  185. <value>
  186. <string>System.Int32:6</string>
  187. </value>
  188. </item>
  189. <item>
  190. <key>
  191. <string>olvJobs/LastSortColumn</string>
  192. </key>
  193. <value>
  194. <string>System.String:Application</string>
  195. </value>
  196. </item>
  197. <item>
  198. <key>
  199. <string>olvJobs/LastSortOrder</string>
  200. </key>
  201. <value>
  202. <string>System.Int32:1</string>
  203. </value>
  204. </item>
  205. <item>
  206. <key>
  207. <string>Ketarin/ShowGroups</string>
  208. </key>
  209. <value>
  210. <string>System.Boolean:True</string>
  211. </value>
  212. </item>
  213. <item>
  214. <key>
  215. <string>Ketarin/ShowStatusBar</string>
  216. </key>
  217. <value>
  218. <string>System.Boolean:False</string>
  219. </value>
  220. </item>
  221. <item>
  222. <key>
  223. <string>Ketarin/ShowLog</string>
  224. </key>
  225. <value>
  226. <string>System.Boolean:True</string>
  227. </value>
  228. </item>
  229. <item>
  230. <key>
  231. <string>Ketarin/AutoScroll</string>
  232. </key>
  233. <value>
  234. <string>System.Boolean:True</string>
  235. </value>
  236. </item>
  237. <item>
  238. <key>
  239. <string>PreUpdateCommand</string>
  240. </key>
  241. <value>
  242. <string>System.String:REM https://chocolatey.org/packages/chocolateypackageupdater
  243. SET URL={url}
  244. IF '%URL%'=='' SET URL={preupdate-url}
  245. chocopkgup {nopush} {force} --pf="{autoPackagesFolder}" --packagename="{appname}" --version="{version}" --url="%URL%" --urlx64="{url64}" --checksum="{checksum}" --c64="{checksumx64}" --debug</string>
  246. </value>
  247. </item>
  248. <item>
  249. <key>
  250. <string>PreUpdateCommandType</string>
  251. </key>
  252. <value>
  253. <string>System.String:Batch</string>
  254. </value>
  255. </item>
  256. <item>
  257. <key>
  258. <string>CustomColumns</string>
  259. </key>
  260. <value>
  261. <string>System.String:&lt;?xml version="1.0" encoding="utf-16"?&gt;
  262. &lt;dictionary&gt;
  263. &lt;item&gt;
  264. &lt;key&gt;
  265. &lt;string&gt;version&lt;/string&gt;
  266. &lt;/key&gt;
  267. &lt;value&gt;
  268. &lt;string&gt;{version}&lt;/string&gt;
  269. &lt;/value&gt;
  270. &lt;/item&gt;
  271. &lt;item&gt;
  272. &lt;key&gt;
  273. &lt;string&gt;filesize&lt;/string&gt;
  274. &lt;/key&gt;
  275. &lt;value&gt;
  276. &lt;string&gt;{filesize:formatfilesize}&lt;/string&gt;
  277. &lt;/value&gt;
  278. &lt;/item&gt;
  279. &lt;item&gt;
  280. &lt;key&gt;
  281. &lt;string&gt;host&lt;/string&gt;
  282. &lt;/key&gt;
  283. &lt;value&gt;
  284. &lt;string&gt;{url:regex:(?&amp;lt;=//)([\w-]+\.)*(?=[\w-]+\.[\w-]+(?=/))}&lt;/string&gt;
  285. &lt;/value&gt;
  286. &lt;/item&gt;
  287. &lt;item&gt;
  288. &lt;key&gt;
  289. &lt;string&gt;fileDate&lt;/string&gt;
  290. &lt;/key&gt;
  291. &lt;value&gt;
  292. &lt;string&gt;{f:yyyy}-{f:MM}-{f:dd} {f:HH}:{f:mm}&lt;/string&gt;
  293. &lt;/value&gt;
  294. &lt;/item&gt;
  295. &lt;item&gt;
  296. &lt;key&gt;
  297. &lt;string&gt;fixedUrl&lt;/string&gt;
  298. &lt;/key&gt;
  299. &lt;value&gt;
  300. &lt;string&gt;{property:FixedDownloadUrl:regex:(?&amp;lt;=//).*}&lt;/string&gt;
  301. &lt;/value&gt;
  302. &lt;/item&gt;
  303. &lt;item&gt;
  304. &lt;key&gt;
  305. &lt;string&gt;referer&lt;/string&gt;
  306. &lt;/key&gt;
  307. &lt;value&gt;
  308. &lt;string&gt;{property:HttpReferer}&lt;/string&gt;
  309. &lt;/value&gt;
  310. &lt;/item&gt;
  311. &lt;item&gt;
  312. &lt;key&gt;
  313. &lt;string&gt;user-agent&lt;/string&gt;
  314. &lt;/key&gt;
  315. &lt;value&gt;
  316. &lt;string&gt;{property:UserAgent}&lt;/string&gt;
  317. &lt;/value&gt;
  318. &lt;/item&gt;
  319. &lt;item&gt;
  320. &lt;key&gt;
  321. &lt;string&gt;delPrevFile&lt;/string&gt;
  322. &lt;/key&gt;
  323. &lt;value&gt;
  324. &lt;string&gt;{property:DeletePreviousFile:multireplace:,:True,False:X,}&lt;/string&gt;
  325. &lt;/value&gt;
  326. &lt;/item&gt;
  327. &lt;item&gt;
  328. &lt;key&gt;
  329. &lt;string&gt;varChgInd&lt;/string&gt;
  330. &lt;/key&gt;
  331. &lt;value&gt;
  332. &lt;string&gt;{property:VariableChangeIndicator}&lt;/string&gt;
  333. &lt;/value&gt;
  334. &lt;/item&gt;
  335. &lt;item&gt;
  336. &lt;key&gt;
  337. &lt;string&gt;cscript&lt;/string&gt;
  338. &lt;/key&gt;
  339. &lt;value&gt;
  340. &lt;string&gt;{cscript}&lt;/string&gt;
  341. &lt;/value&gt;
  342. &lt;/item&gt;
  343. &lt;item&gt;
  344. &lt;key&gt;
  345. &lt;string&gt;enabled&lt;/string&gt;
  346. &lt;/key&gt;
  347. &lt;value&gt;
  348. &lt;string&gt;{property:Enabled}&lt;/string&gt;
  349. &lt;/value&gt;
  350. &lt;/item&gt;
  351. &lt;item&gt;
  352. &lt;key&gt;
  353. &lt;string&gt;nopush&lt;/string&gt;
  354. &lt;/key&gt;
  355. &lt;value&gt;
  356. &lt;string&gt;{nopush}&lt;/string&gt;
  357. &lt;/value&gt;
  358. &lt;/item&gt;
  359. &lt;item&gt;
  360. &lt;key&gt;
  361. &lt;string&gt;domain&lt;/string&gt;
  362. &lt;/key&gt;
  363. &lt;value&gt;
  364. &lt;string&gt;{url:regex:(?&amp;lt;=//[\w-]+\.)*[\w-]+\.[\w-]+(?=/)}&lt;/string&gt;
  365. &lt;/value&gt;
  366. &lt;/item&gt;
  367. &lt;item&gt;
  368. &lt;key&gt;
  369. &lt;string&gt;url64&lt;/string&gt;
  370. &lt;/key&gt;
  371. &lt;value&gt;
  372. &lt;string&gt;{url64}&lt;/string&gt;
  373. &lt;/value&gt;
  374. &lt;/item&gt;
  375. &lt;item&gt;
  376. &lt;key&gt;
  377. &lt;string&gt;hashInternal&lt;/string&gt;
  378. &lt;/key&gt;
  379. &lt;value&gt;
  380. &lt;string&gt;{hash}&lt;/string&gt;
  381. &lt;/value&gt;
  382. &lt;/item&gt;
  383. &lt;item&gt;
  384. &lt;key&gt;
  385. &lt;string&gt;hashType&lt;/string&gt;
  386. &lt;/key&gt;
  387. &lt;value&gt;
  388. &lt;string&gt;{property:HashType:replace:None:}&lt;/string&gt;
  389. &lt;/value&gt;
  390. &lt;/item&gt;
  391. &lt;item&gt;
  392. &lt;key&gt;
  393. &lt;string&gt;proto&lt;/string&gt;
  394. &lt;/key&gt;
  395. &lt;value&gt;
  396. &lt;string&gt;{url:regex:.*?(?=.//)}&lt;/string&gt;
  397. &lt;/value&gt;
  398. &lt;/item&gt;
  399. &lt;item&gt;
  400. &lt;key&gt;
  401. &lt;string&gt;bytes&lt;/string&gt;
  402. &lt;/key&gt;
  403. &lt;value&gt;
  404. &lt;string&gt;{filesize}&lt;/string&gt;
  405. &lt;/value&gt;
  406. &lt;/item&gt;
  407. &lt;item&gt;
  408. &lt;key&gt;
  409. &lt;string&gt;hashExternal&lt;/string&gt;
  410. &lt;/key&gt;
  411. &lt;value&gt;
  412. &lt;string&gt;{checksum}&lt;/string&gt;
  413. &lt;/value&gt;
  414. &lt;/item&gt;
  415. &lt;item&gt;
  416. &lt;key&gt;
  417. &lt;string&gt;checksum64&lt;/string&gt;
  418. &lt;/key&gt;
  419. &lt;value&gt;
  420. &lt;string&gt;{checksumx64}&lt;/string&gt;
  421. &lt;/value&gt;
  422. &lt;/item&gt;
  423. &lt;/dictionary&gt;</string>
  424. </value>
  425. </item>
  426. <item>
  427. <key>
  428. <string>CustomColumn</string>
  429. </key>
  430. <value>
  431. <string p6:nil="true" xmlns:p6="http://www.w3.org/2001/XMLSchema-instance" />
  432. </value>
  433. </item>
  434. <item>
  435. <key>
  436. <string>CustomColumn2</string>
  437. </key>
  438. <value>
  439. <string p6:nil="true" xmlns:p6="http://www.w3.org/2001/XMLSchema-instance" />
  440. </value>
  441. </item>
  442. <item>
  443. <key>
  444. <string>UpdateAtStartup</string>
  445. </key>
  446. <value>
  447. <string>System.Boolean:False</string>
  448. </value>
  449. </item>
  450. <item>
  451. <key>
  452. <string>AvoidFileHippoBeta</string>
  453. </key>
  454. <value>
  455. <string>System.Boolean:True</string>
  456. </value>
  457. </item>
  458. <item>
  459. <key>
  460. <string>ConnectionTimeout</string>
  461. </key>
  462. <value>
  463. <string>AAEAAAD/////AQAAAAAAAAAEAQAAAA5TeXN0ZW0uRGVjaW1hbAQAAAAFZmxhZ3MCaGkCbG8DbWlkAAAAAAgICAgAAAAAAAAAADwAAAAAAAAACw==</string>
  464. </value>
  465. </item>
  466. <item>
  467. <key>
  468. <string>ThreadCount</string>
  469. </key>
  470. <value>
  471. <string>System.Int32:4</string>
  472. </value>
  473. </item>
  474. <item>
  475. <key>
  476. <string>RetryCount</string>
  477. </key>
  478. <value>
  479. <string>System.Int32:2</string>
  480. </value>
  481. </item>
  482. <item>
  483. <key>
  484. <string>UpdateOnlineDatabase</string>
  485. </key>
  486. <value>
  487. <string>System.Boolean:False</string>
  488. </value>
  489. </item>
  490. <item>
  491. <key>
  492. <string>MinimizeToTray</string>
  493. </key>
  494. <value>
  495. <string>System.Boolean:True</string>
  496. </value>
  497. </item>
  498. <item>
  499. <key>
  500. <string>CreateDatabaseBackups</string>
  501. </key>
  502. <value>
  503. <string>System.Boolean:True</string>
  504. </value>
  505. </item>
  506. <item>
  507. <key>
  508. <string>OpenWebsiteOnDoubleClick</string>
  509. </key>
  510. <value>
  511. <string>System.Boolean:False</string>
  512. </value>
  513. </item>
  514. <item>
  515. <key>
  516. <string>ProxyPort</string>
  517. </key>
  518. <value>
  519. <string>AAEAAAD/////AQAAAAAAAAAEAQAAAA5TeXN0ZW0uRGVjaW1hbAQAAAAFZmxhZ3MCaGkCbG8DbWlkAAAAAAgICAgAAAAAAAAAALgiAAAAAAAACw==</string>
  520. </value>
  521. </item>
  522. <item>
  523. <key>
  524. <string>ProxyServer</string>
  525. </key>
  526. <value>
  527. <string>System.String:</string>
  528. </value>
  529. </item>
  530. <item>
  531. <key>
  532. <string>ProxyUser</string>
  533. </key>
  534. <value>
  535. <string>System.String:</string>
  536. </value>
  537. </item>
  538. <item>
  539. <key>
  540. <string>ProxyPassword</string>
  541. </key>
  542. <value>
  543. <string>System.String:</string>
  544. </value>
  545. </item>
  546. <item>
  547. <key>
  548. <string>olvJobs/Version:Visibility</string>
  549. </key>
  550. <value>
  551. <string>System.Boolean:True</string>
  552. </value>
  553. </item>
  554. <item>
  555. <key>
  556. <string>olvJobs/Version:Width</string>
  557. </key>
  558. <value>
  559. <string>System.Int32:99</string>
  560. </value>
  561. </item>
  562. <item>
  563. <key>
  564. <string>olvJobs/Version:LastDisplayIndex</string>
  565. </key>
  566. <value>
  567. <string>System.Int32:1</string>
  568. </value>
  569. </item>
  570. <item>
  571. <key>
  572. <string>SetPlaceholderDialog/Size</string>
  573. </key>
  574. <value>
  575. <string>System.Drawing.Size:699,157</string>
  576. </value>
  577. </item>
  578. <item>
  579. <key>
  580. <string>SetPlaceholderDialog/Location</string>
  581. </key>
  582. <value>
  583. <string>System.Drawing.Point:0,0</string>
  584. </value>
  585. </item>
  586. <item>
  587. <key>
  588. <string>SetPlaceholderDialog/WindowState</string>
  589. </key>
  590. <value>
  591. <string>System.Int32:0</string>
  592. </value>
  593. </item>
  594. <item>
  595. <key>
  596. <string>EditVariablesDialog/Size</string>
  597. </key>
  598. <value>
  599. <string>System.Drawing.Size:1004,492</string>
  600. </value>
  601. </item>
  602. <item>
  603. <key>
  604. <string>EditVariablesDialog/Location</string>
  605. </key>
  606. <value>
  607. <string>System.Drawing.Point:66,65</string>
  608. </value>
  609. </item>
  610. <item>
  611. <key>
  612. <string>EditVariablesDialog/WindowState</string>
  613. </key>
  614. <value>
  615. <string>System.Int32:0</string>
  616. </value>
  617. </item>
  618. <item>
  619. <key>
  620. <string>ApplicationJobDialog/Size</string>
  621. </key>
  622. <value>
  623. <string>System.Drawing.Size:507,507</string>
  624. </value>
  625. </item>
  626. <item>
  627. <key>
  628. <string>ApplicationJobDialog/Location</string>
  629. </key>
  630. <value>
  631. <string>System.Drawing.Point:173,12</string>
  632. </value>
  633. </item>
  634. <item>
  635. <key>
  636. <string>ApplicationJobDialog/WindowState</string>
  637. </key>
  638. <value>
  639. <string>System.Int32:0</string>
  640. </value>
  641. </item>
  642. <item>
  643. <key>
  644. <string>LogDialog/Size</string>
  645. </key>
  646. <value>
  647. <string>System.Drawing.Size:1143,423</string>
  648. </value>
  649. </item>
  650. <item>
  651. <key>
  652. <string>LogDialog/Location</string>
  653. </key>
  654. <value>
  655. <string>System.Drawing.Point:116,360</string>
  656. </value>
  657. </item>
  658. <item>
  659. <key>
  660. <string>LogDialog/WindowState</string>
  661. </key>
  662. <value>
  663. <string>System.Int32:0</string>
  664. </value>
  665. </item>
  666. <item>
  667. <key>
  668. <string>ErrorsDialog/Size</string>
  669. </key>
  670. <value>
  671. <string>System.Drawing.Size:1096,965</string>
  672. </value>
  673. </item>
  674. <item>
  675. <key>
  676. <string>olvErrors/Application:Visibility</string>
  677. </key>
  678. <value>
  679. <string>System.Boolean:True</string>
  680. </value>
  681. </item>
  682. <item>
  683. <key>
  684. <string>olvErrors/Application:Width</string>
  685. </key>
  686. <value>
  687. <string>System.Int32:98</string>
  688. </value>
  689. </item>
  690. <item>
  691. <key>
  692. <string>olvErrors/Application:LastDisplayIndex</string>
  693. </key>
  694. <value>
  695. <string>System.Int32:-1</string>
  696. </value>
  697. </item>
  698. <item>
  699. <key>
  700. <string>olvErrors/Error:Visibility</string>
  701. </key>
  702. <value>
  703. <string>System.Boolean:True</string>
  704. </value>
  705. </item>
  706. <item>
  707. <key>
  708. <string>olvErrors/Error:Width</string>
  709. </key>
  710. <value>
  711. <string>System.Int32:952</string>
  712. </value>
  713. </item>
  714. <item>
  715. <key>
  716. <string>olvErrors/Error:LastDisplayIndex</string>
  717. </key>
  718. <value>
  719. <string>System.Int32:-1</string>
  720. </value>
  721. </item>
  722. <item>
  723. <key>
  724. <string>olvErrors/LastSortColumn</string>
  725. </key>
  726. <value>
  727. <string>System.String:Application</string>
  728. </value>
  729. </item>
  730. <item>
  731. <key>
  732. <string>olvErrors/LastSortOrder</string>
  733. </key>
  734. <value>
  735. <string>System.Int32:1</string>
  736. </value>
  737. </item>
  738. <item>
  739. <key>
  740. <string>ProgressDialog/Size</string>
  741. </key>
  742. <value>
  743. <string>System.Drawing.Size:302,112</string>
  744. </value>
  745. </item>
  746. <item>
  747. <key>
  748. <string>Hotkey: OpenWebsite</string>
  749. </key>
  750. <value>
  751. <string>System.String:</string>
  752. </value>
  753. </item>
  754. <item>
  755. <key>
  756. <string>Hotkey: Edit</string>
  757. </key>
  758. <value>
  759. <string>System.String:</string>
  760. </value>
  761. </item>
  762. <item>
  763. <key>
  764. <string>Hotkey: Update</string>
  765. </key>
  766. <value>
  767. <string>System.String:</string>
  768. </value>
  769. </item>
  770. <item>
  771. <key>
  772. <string>Hotkey: ForceDownload</string>
  773. </key>
  774. <value>
  775. <string>System.String:</string>
  776. </value>
  777. </item>
  778. <item>
  779. <key>
  780. <string>Hotkey: InstallSelected</string>
  781. </key>
  782. <value>
  783. <string>System.String:</string>
  784. </value>
  785. </item>
  786. <item>
  787. <key>
  788. <string>Hotkey: OpenFile</string>
  789. </key>
  790. <value>
  791. <string>System.String:</string>
  792. </value>
  793. </item>
  794. <item>
  795. <key>
  796. <string>Hotkey: OpenFolder</string>
  797. </key>
  798. <value>
  799. <string>System.String:</string>
  800. </value>
  801. </item>
  802. <item>
  803. <key>
  804. <string>Hotkey: CheckUpdate</string>
  805. </key>
  806. <value>
  807. <string>System.String:</string>
  808. </value>
  809. </item>
  810. <item>
  811. <key>
  812. <string>Hotkey: UpdateAndInstall</string>
  813. </key>
  814. <value>
  815. <string>System.String:</string>
  816. </value>
  817. </item>
  818. <item>
  819. <key>
  820. <string>InstallingApplicationsDialog/Size</string>
  821. </key>
  822. <value>
  823. <string>System.Drawing.Size:406,250</string>
  824. </value>
  825. </item>
  826. <item>
  827. <key>
  828. <string>InstallingApplicationsDialog/Location</string>
  829. </key>
  830. <value>
  831. <string>System.Drawing.Point:164,724</string>
  832. </value>
  833. </item>
  834. <item>
  835. <key>
  836. <string>InstallingApplicationsDialog/WindowState</string>
  837. </key>
  838. <value>
  839. <string>System.Int32:0</string>
  840. </value>
  841. </item>
  842. <item>
  843. <key>
  844. <string>olvLog/Time:Visibility</string>
  845. </key>
  846. <value>
  847. <string>System.Boolean:True</string>
  848. </value>
  849. </item>
  850. <item>
  851. <key>
  852. <string>olvLog/Time:Width</string>
  853. </key>
  854. <value>
  855. <string>System.Int32:55</string>
  856. </value>
  857. </item>
  858. <item>
  859. <key>
  860. <string>olvLog/Time:LastDisplayIndex</string>
  861. </key>
  862. <value>
  863. <string>System.Int32:-1</string>
  864. </value>
  865. </item>
  866. <item>
  867. <key>
  868. <string>olvLog/Message:Visibility</string>
  869. </key>
  870. <value>
  871. <string>System.Boolean:True</string>
  872. </value>
  873. </item>
  874. <item>
  875. <key>
  876. <string>olvLog/Message:Width</string>
  877. </key>
  878. <value>
  879. <string>System.Int32:310</string>
  880. </value>
  881. </item>
  882. <item>
  883. <key>
  884. <string>olvLog/Message:LastDisplayIndex</string>
  885. </key>
  886. <value>
  887. <string>System.Int32:-1</string>
  888. </value>
  889. </item>
  890. <item>
  891. <key>
  892. <string>olvLog/LastSortColumn</string>
  893. </key>
  894. <value>
  895. <string>System.String:Time</string>
  896. </value>
  897. </item>
  898. <item>
  899. <key>
  900. <string>olvLog/LastSortOrder</string>
  901. </key>
  902. <value>
  903. <string>System.Int32:0</string>
  904. </value>
  905. </item>
  906. <item>
  907. <key>
  908. <string>InstallingApplicationsDialog/Expanded</string>
  909. </key>
  910. <value>
  911. <string>System.Boolean:True</string>
  912. </value>
  913. </item>
  914. <item>
  915. <key>
  916. <string>DefaultCommand</string>
  917. </key>
  918. <value>
  919. <string>System.String:////////////////////////////////////////////////////////////////////////////////////////
  920. /// version ? Lots of changes
  921. ///
  922. /// Changelog:
  923. /// - Allow for non-versioned output folder paths
  924. /// - Logging!
  925. /// - Call choco directly, expected to be at the default location.
  926. ///
  927. // REQUIRES:
  928. // global vars: saveDir=corresponds to download location of installer file
  929. // app vars: nopush, checksum64file=corresponds to 64 bit install file
  930. // file vars: same as specified by chocopkgup
  931. // get package variable 'cscript'
  932. string varCScript = "";
  933. varCScript = app.Variables.ReplaceAllInString("{cscript}").Trim();
  934. Ketarin.Forms.LogDialog.Log(app,"cscript='" + varCScript + "'");
  935. Ketarin.Forms.LogDialog.Log(app,"If cscript is set to 1, checksums will be calculated but the package won't be pushed.");
  936. Ketarin.Forms.LogDialog.Log(app,"If cscript is set to 2, checksums will be calculated AND the package will be pushed.");
  937. // determine whether we run this by checking cscript exists AND is 1 or 2
  938. if ((varCScript == "1") || (varCScript == "2"))
  939. {
  940. // ketarin variables we pass for this script to use
  941. string varAppname = app.Variables.ReplaceAllInString("{appname}");
  942. string varVersion = app.Variables.ReplaceAllInString("{version}");
  943. string varChocoPkgOutput = System.IO.Path.Combine(app.Variables.ReplaceAllInString("{autoPackagesFolder}"), "_output");
  944. string varChecksum = app.Variables.ReplaceAllInString("{checksum}");
  945. string varChecksumx64 = app.Variables.ReplaceAllInString("{checksumx64}");
  946. string varChecksum64File = app.Variables.ReplaceAllInString("{url64}");
  947. string varSaveDir = app.Variables.ReplaceAllInString("{saveDir}");
  948. // custom variables used in this script
  949. // equivalent to ketarin variable "{file}"
  950. string savePath = app.PreviousLocation;
  951. string pkgPath = System.IO.Path.Combine(varChocoPkgOutput, varAppname, varVersion);
  952. if (!System.IO.Directory.Exists(pkgPath))
  953. {
  954. pkgPath = System.IO.Path.Combine(varChocoPkgOutput, varAppname);
  955. Ketarin.Forms.LogDialog.Log(app,"Using the output folder without a version");
  956. }
  957. Ketarin.Forms.LogDialog.Log(app, "Using package file at " + pkgPath);
  958. string fileNameNuspec = System.String.Concat(varAppname, ".nuspec");
  959. string fileUriNuspec = System.IO.Path.Combine(pkgPath, fileNameNuspec);
  960. string fileNameNupkg = System.String.Concat(varAppname, ".", varVersion, ".nupkg");
  961. string fileUriNupkg = System.IO.Path.Combine(pkgPath, fileNameNupkg);
  962. //MessageBox.Show("pkgPath=" + pkgPath + System.Environment.NewLine
  963. // + "savePath=" + savePath);
  964. // do not re-push package if package already created
  965. System.DateTime today = System.DateTime.Today;
  966. System.DateTime pkgCreateDate = System.IO.File.GetCreationTime(pkgPath);
  967. if (today &gt; pkgCreateDate)
  968. {
  969. return;
  970. }
  971. // calculate SHA256 from {url} Note we are leveraging ketarin's downloaded copy
  972. System.IO.FileStream fileSha = new System.IO.FileStream(savePath, System.IO.FileMode.Open);
  973. System.Security.Cryptography.SHA256 sha256 = new System.Security.Cryptography.SHA256Managed();
  974. byte[] retValSha = sha256.ComputeHash(fileSha);
  975. fileSha.Close();
  976. // build string from byte value
  977. System.Text.StringBuilder sbSha = new System.Text.StringBuilder();
  978. for (int i = 0; i &lt; retValSha.Length; i++)
  979. {
  980. sbSha.Append(retValSha[i].ToString("x2"));
  981. }
  982. // find $pkgPath -iname "*.nuspec" -o -iname "*.ps1" -exec sed -i 's/'$sbSha'/{checksum}/g' '{}' \;
  983. string replaceChecksum = sbSha.ToString();
  984. Ketarin.Forms.LogDialog.Log(app, "Checksum for url is " + replaceChecksum);
  985. //MessageBox.Show(replaceChecksum);
  986. System.Collections.Generic.List&lt;string&gt; pkgFileList = new System.Collections.Generic.List&lt;string&gt;(System.IO.Directory.GetFiles(pkgPath, "*.ps1", System.IO.SearchOption.AllDirectories));
  987. string[] filesNuspec = System.IO.Directory.GetFiles(pkgPath, "*.nuspec", System.IO.SearchOption.AllDirectories);
  988. pkgFileList.AddRange(filesNuspec);
  989. string[] files = pkgFileList.ToArray();
  990. foreach (string file in files)
  991. {
  992. try
  993. {
  994. string contents = System.IO.File.ReadAllText(file);
  995. //MessageBox.Show(contents);
  996. contents = contents.Replace("{checksum}", replaceChecksum);
  997. //MessageBox.Show(contents);
  998. // Make files writable
  999. // File.SetAttributes(file, FileAttributes.Normal);
  1000. System.IO.File.WriteAllText(file, contents);
  1001. }
  1002. catch (System.Exception ex)
  1003. {
  1004. System.Console.WriteLine(ex.Message);
  1005. }
  1006. }
  1007. // Get Checksum for 64bit file if url64 exists
  1008. if (varChecksum64File != "{url64}" &amp;&amp; varChecksum64File != "\"\"" &amp;&amp; !System.String.IsNullOrEmpty(varChecksum64File))
  1009. {
  1010. // TODO: verify and validate URI checksum64file points to a downloadable file
  1011. // string varChecksum64basefile = app.Variables.ReplaceAllInString("{url64:basefile}");
  1012. string varChecksum64ext = app.Variables.ReplaceAllInString("{url64:ext}");
  1013. string saveFileName64 = System.String.Concat(varAppname, "_64_", varVersion, ".", varChecksum64ext);
  1014. string savePath64 = System.IO.Path.Combine(varSaveDir, saveFileName64);
  1015. // we must download the file to calculate checksum ... may as well save it
  1016. Ketarin.Forms.LogDialog.Log(app, "Downloading '" + varChecksum64File + "' to '" + savePath64 + "'.");
  1017. System.Net.WebClient webClient = new System.Net.WebClient();
  1018. webClient.DownloadFile(varChecksum64File, savePath64);
  1019. // calculate SHA256 from file of url pointed to by 'checksum64file'
  1020. System.IO.FileStream file64Sha = new System.IO.FileStream(savePath64, System.IO.FileMode.Open);
  1021. System.Security.Cryptography.SHA256 sha256_64 = new System.Security.Cryptography.SHA256Managed();
  1022. byte[] retVal64Sha = sha256_64.ComputeHash(file64Sha);
  1023. file64Sha.Close();
  1024. // build string from byte value
  1025. System.Text.StringBuilder sb64Sha = new System.Text.StringBuilder();
  1026. for (int i = 0; i &lt; retVal64Sha.Length; i++)
  1027. {
  1028. sb64Sha.Append(retVal64Sha[i].ToString("x2"));
  1029. }
  1030. // find $pkgPath -iname "*.nuspec" -o -iname "*.ps1" -exec sed -i 's/'$sb64Sha'/{checksumx64}/g' '{}' \;
  1031. // Note chocopkgup will strip 1 set of curly braces so {{checksum}} becomes {checksum}
  1032. string replace64Checksum = sb64Sha.ToString();
  1033. Ketarin.Forms.LogDialog.Log(app, "Checksum for url64 is " + replace64Checksum);
  1034. foreach (string file in files)
  1035. {
  1036. try
  1037. {
  1038. string contents = System.IO.File.ReadAllText(file);
  1039. //MessageBox.Show(contents);
  1040. contents = contents.Replace("{checksumx64}", replace64Checksum);
  1041. //MessageBox.Show(contents);
  1042. System.IO.File.WriteAllText(file, contents);
  1043. }
  1044. catch (System.Exception ex)
  1045. {
  1046. System.Console.WriteLine(ex.Message);
  1047. }
  1048. }
  1049. }
  1050. // delete existing nupkg made by chocopkgup; we leverage chocopkgup to create the structure/files in destination
  1051. Ketarin.Forms.LogDialog.Log(app, "Deleting the existing nupkg before repacking at " + fileUriNupkg);
  1052. System.Diagnostics.Process process1 = new System.Diagnostics.Process();
  1053. System.Diagnostics.ProcessStartInfo proc1 = new System.Diagnostics.ProcessStartInfo();
  1054. proc1.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  1055. proc1.UseShellExecute = true;
  1056. proc1.WorkingDirectory = pkgPath;
  1057. proc1.FileName = "cmd.exe";
  1058. proc1.Arguments = "/c " + "del /f " + fileUriNupkg;
  1059. process1.StartInfo = proc1;
  1060. process1.Start();
  1061. process1.WaitForExit(30000);
  1062. // create a new nupkg
  1063. Ketarin.Forms.LogDialog.Log(app, "Packing up the package, this time with checksums");
  1064. System.Diagnostics.Process process2 = new System.Diagnostics.Process();
  1065. System.Diagnostics.ProcessStartInfo proc2 = new System.Diagnostics.ProcessStartInfo();
  1066. proc2.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
  1067. proc2.UseShellExecute = false;
  1068. proc2.WorkingDirectory = pkgPath;
  1069. proc2.FileName = "C:\\ProgramData\\Chocolatey\\bin\\choco.exe";
  1070. proc2.Arguments = "pack " + fileUriNuspec;
  1071. proc2.RedirectStandardOutput = true;
  1072. proc2.RedirectStandardError = true;
  1073. proc2.CreateNoWindow = true;
  1074. process2.StartInfo = proc2;
  1075. process2.OutputDataReceived += (s, e) =&gt; { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
  1076. process2.ErrorDataReceived += (s, e) =&gt; { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
  1077. process2.EnableRaisingEvents = true;
  1078. process2.Start();
  1079. process2.BeginErrorReadLine();
  1080. process2.BeginOutputReadLine();
  1081. process2.WaitForExit(30000);
  1082. process2.StartInfo = proc2;
  1083. process2.Start();
  1084. // push the nupkg
  1085. if (varCScript == "2")
  1086. {
  1087. System.Threading.Thread.Sleep(2000);
  1088. System.Int32 exitCode = -1;
  1089. Ketarin.Forms.LogDialog.Log(app, "Pushing the package");
  1090. System.Diagnostics.Process process3 = new System.Diagnostics.Process();
  1091. System.Diagnostics.ProcessStartInfo proc3 = new System.Diagnostics.ProcessStartInfo();
  1092. proc3.WindowStyle = System.Diagnostics.ProcessWindowStyle.Minimized;
  1093. proc3.UseShellExecute = false;
  1094. proc3.WorkingDirectory = pkgPath;
  1095. proc3.FileName = "C:\\ProgramData\\Chocolatey\\bin\\choco.exe";
  1096. // find nupkg in pkgPath
  1097. string[] pushPkg = System.IO.Directory.GetFiles(pkgPath, "*.nupkg", System.IO.SearchOption.TopDirectoryOnly);
  1098. foreach (System.String file in pushPkg)
  1099. {
  1100. Ketarin.Forms.LogDialog.Log(app, "Pushing " + file + " to dot org");
  1101. proc3.Arguments = "push " + file;
  1102. }
  1103. proc3.RedirectStandardOutput = true;
  1104. proc3.RedirectStandardError = true;
  1105. proc3.CreateNoWindow = true;
  1106. process3.StartInfo = proc3;
  1107. process3.OutputDataReceived += (s, e) =&gt; { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
  1108. process3.ErrorDataReceived += (s, e) =&gt; { if (e != null) Ketarin.Forms.LogDialog.Log(app, e.Data); };
  1109. process3.EnableRaisingEvents = true;
  1110. process3.Start();
  1111. process3.BeginErrorReadLine();
  1112. process3.BeginOutputReadLine();
  1113. System.Boolean exited = process3.WaitForExit(120000);
  1114. if (exited)
  1115. {
  1116. exitCode = process3.ExitCode;
  1117. }
  1118. if (exitCode != 0)
  1119. {
  1120. throw new System.Exception("Push did not finish successfully. See the log for details.");
  1121. Ketarin.Forms.LogDialog.Log(app, "This is a failure. However Ketarin doesn't error on post updates.");
  1122. }
  1123. }
  1124. }</string>
  1125. </value>
  1126. </item>
  1127. <item>
  1128. <key>
  1129. <string>DefaultCommandType</string>
  1130. </key>
  1131. <value>
  1132. <string>System.String:CS</string>
  1133. </value>
  1134. </item>
  1135. <item>
  1136. <key>
  1137. <string>PostUpdateCommand</string>
  1138. </key>
  1139. <value>
  1140. <string>System.String:</string>
  1141. </value>
  1142. </item>
  1143. <item>
  1144. <key>
  1145. <string>PostUpdateCommandType</string>
  1146. </key>
  1147. <value>
  1148. <string>System.String:Batch</string>
  1149. </value>
  1150. </item>
  1151. <item>
  1152. <key>
  1153. <string>DefaultApplication</string>
  1154. </key>
  1155. <value>
  1156. <string>System.String:&lt;?xml version="1.0" encoding="utf-8"?&gt;
  1157. &lt;Jobs&gt;
  1158. &lt;ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  1159. &lt;WebsiteUrl /&gt;
  1160. &lt;UserAgent /&gt;
  1161. &lt;UserNotes /&gt;
  1162. &lt;LastFileSize&gt;0&lt;/LastFileSize&gt;
  1163. &lt;LastFileDate xsi:nil="true" /&gt;
  1164. &lt;IgnoreFileInformation&gt;false&lt;/IgnoreFileInformation&gt;
  1165. &lt;DownloadBeta&gt;Default&lt;/DownloadBeta&gt;
  1166. &lt;CheckForUpdatesOnly&gt;false&lt;/CheckForUpdatesOnly&gt;
  1167. &lt;VariableChangeIndicator /&gt;
  1168. &lt;HashVariable /&gt;
  1169. &lt;HashType&gt;None&lt;/HashType&gt;
  1170. &lt;CanBeShared&gt;true&lt;/CanBeShared&gt;
  1171. &lt;ShareApplication&gt;false&lt;/ShareApplication&gt;
  1172. &lt;ExclusiveDownload&gt;false&lt;/ExclusiveDownload&gt;
  1173. &lt;HttpReferer /&gt;
  1174. &lt;SetupInstructions /&gt;
  1175. &lt;Variables&gt;
  1176. &lt;item&gt;
  1177. &lt;key&gt;
  1178. &lt;string&gt;nopush&lt;/string&gt;
  1179. &lt;/key&gt;
  1180. &lt;value&gt;
  1181. &lt;UrlVariable&gt;
  1182. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1183. &lt;VariableType&gt;Textual&lt;/VariableType&gt;
  1184. &lt;Regex /&gt;
  1185. &lt;TextualContent&gt;--nopush&lt;/TextualContent&gt;
  1186. &lt;Name&gt;nopush&lt;/Name&gt;
  1187. &lt;/UrlVariable&gt;
  1188. &lt;/value&gt;
  1189. &lt;/item&gt;
  1190. &lt;item&gt;
  1191. &lt;key&gt;
  1192. &lt;string&gt;version&lt;/string&gt;
  1193. &lt;/key&gt;
  1194. &lt;value&gt;
  1195. &lt;UrlVariable&gt;
  1196. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1197. &lt;VariableType&gt;RegularExpression&lt;/VariableType&gt;
  1198. &lt;Regex&gt;Last program version.*?([\d\.]+)&lt;/Regex&gt;
  1199. &lt;Url&gt;x&lt;/Url&gt;
  1200. &lt;Name&gt;version&lt;/Name&gt;
  1201. &lt;/UrlVariable&gt;
  1202. &lt;/value&gt;
  1203. &lt;/item&gt;
  1204. &lt;item&gt;
  1205. &lt;key&gt;
  1206. &lt;string&gt;url&lt;/string&gt;
  1207. &lt;/key&gt;
  1208. &lt;value&gt;
  1209. &lt;UrlVariable&gt;
  1210. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1211. &lt;VariableType&gt;Textual&lt;/VariableType&gt;
  1212. &lt;Regex /&gt;
  1213. &lt;TextualContent&gt;{getUrl}&lt;/TextualContent&gt;
  1214. &lt;Name&gt;url&lt;/Name&gt;
  1215. &lt;/UrlVariable&gt;
  1216. &lt;/value&gt;
  1217. &lt;/item&gt;
  1218. &lt;item&gt;
  1219. &lt;key&gt;
  1220. &lt;string&gt;url64&lt;/string&gt;
  1221. &lt;/key&gt;
  1222. &lt;value&gt;
  1223. &lt;UrlVariable&gt;
  1224. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1225. &lt;VariableType&gt;Textual&lt;/VariableType&gt;
  1226. &lt;Regex /&gt;
  1227. &lt;TextualContent&gt;{getUrl64}&lt;/TextualContent&gt;
  1228. &lt;Name&gt;url64&lt;/Name&gt;
  1229. &lt;/UrlVariable&gt;
  1230. &lt;/value&gt;
  1231. &lt;/item&gt;
  1232. &lt;item&gt;
  1233. &lt;key&gt;
  1234. &lt;string&gt;getUrl&lt;/string&gt;
  1235. &lt;/key&gt;
  1236. &lt;value&gt;
  1237. &lt;UrlVariable&gt;
  1238. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1239. &lt;VariableType&gt;RegularExpression&lt;/VariableType&gt;
  1240. &lt;Regex&gt;[^ "'&amp;lt;&amp;gt;\*]+\.exe&lt;/Regex&gt;
  1241. &lt;Url&gt;x&lt;/Url&gt;
  1242. &lt;Name&gt;getUrl&lt;/Name&gt;
  1243. &lt;/UrlVariable&gt;
  1244. &lt;/value&gt;
  1245. &lt;/item&gt;
  1246. &lt;item&gt;
  1247. &lt;key&gt;
  1248. &lt;string&gt;getUrl64&lt;/string&gt;
  1249. &lt;/key&gt;
  1250. &lt;value&gt;
  1251. &lt;UrlVariable&gt;
  1252. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1253. &lt;VariableType&gt;RegularExpression&lt;/VariableType&gt;
  1254. &lt;Regex&gt;[^ "'&amp;lt;&amp;gt;\*]+\.exe&lt;/Regex&gt;
  1255. &lt;Url&gt;x&lt;/Url&gt;
  1256. &lt;Name&gt;getUrl64&lt;/Name&gt;
  1257. &lt;/UrlVariable&gt;
  1258. &lt;/value&gt;
  1259. &lt;/item&gt;
  1260. &lt;item&gt;
  1261. &lt;key&gt;
  1262. &lt;string&gt;checksum&lt;/string&gt;
  1263. &lt;/key&gt;
  1264. &lt;value&gt;
  1265. &lt;UrlVariable&gt;
  1266. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1267. &lt;VariableType&gt;RegularExpression&lt;/VariableType&gt;
  1268. &lt;Regex&gt;[A-Fa-f0-9]{32}&lt;/Regex&gt;
  1269. &lt;Url&gt;md5&lt;/Url&gt;
  1270. &lt;TextualContent&gt;{checksum}&lt;/TextualContent&gt;
  1271. &lt;Name&gt;checksum&lt;/Name&gt;
  1272. &lt;/UrlVariable&gt;
  1273. &lt;/value&gt;
  1274. &lt;/item&gt;
  1275. &lt;item&gt;
  1276. &lt;key&gt;
  1277. &lt;string&gt;checksumx64&lt;/string&gt;
  1278. &lt;/key&gt;
  1279. &lt;value&gt;
  1280. &lt;UrlVariable&gt;
  1281. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1282. &lt;VariableType&gt;RegularExpression&lt;/VariableType&gt;
  1283. &lt;Regex&gt;(?&amp;lt;=ResponseUri: )[^\r\n]+&lt;/Regex&gt;
  1284. &lt;Url&gt;{url64}&lt;/Url&gt;
  1285. &lt;TextualContent&gt;{checksum}&lt;/TextualContent&gt;
  1286. &lt;Name&gt;checksumx64&lt;/Name&gt;
  1287. &lt;/UrlVariable&gt;
  1288. &lt;/value&gt;
  1289. &lt;/item&gt;
  1290. &lt;item&gt;
  1291. &lt;key&gt;
  1292. &lt;string&gt;checksum64file&lt;/string&gt;
  1293. &lt;/key&gt;
  1294. &lt;value&gt;
  1295. &lt;UrlVariable&gt;
  1296. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1297. &lt;VariableType&gt;Textual&lt;/VariableType&gt;
  1298. &lt;Regex /&gt;
  1299. &lt;TextualContent&gt;{url64}&lt;/TextualContent&gt;
  1300. &lt;Name&gt;checksum64file&lt;/Name&gt;
  1301. &lt;/UrlVariable&gt;
  1302. &lt;/value&gt;
  1303. &lt;/item&gt;
  1304. &lt;item&gt;
  1305. &lt;key&gt;
  1306. &lt;string&gt;cscript&lt;/string&gt;
  1307. &lt;/key&gt;
  1308. &lt;value&gt;
  1309. &lt;UrlVariable&gt;
  1310. &lt;RegexRightToLeft&gt;false&lt;/RegexRightToLeft&gt;
  1311. &lt;VariableType&gt;Textual&lt;/VariableType&gt;
  1312. &lt;Regex /&gt;
  1313. &lt;TextualContent&gt;0&lt;/TextualContent&gt;
  1314. &lt;Name&gt;cscript&lt;/Name&gt;
  1315. &lt;/UrlVariable&gt;
  1316. &lt;/value&gt;
  1317. &lt;/item&gt;
  1318. &lt;/Variables&gt;
  1319. &lt;ExecuteCommand /&gt;
  1320. &lt;ExecutePreCommand /&gt;
  1321. &lt;ExecuteCommandType&gt;Batch&lt;/ExecuteCommandType&gt;
  1322. &lt;ExecutePreCommandType&gt;Batch&lt;/ExecutePreCommandType&gt;
  1323. &lt;Category /&gt;
  1324. &lt;SourceType&gt;FixedUrl&lt;/SourceType&gt;
  1325. &lt;DeletePreviousFile&gt;false&lt;/DeletePreviousFile&gt;
  1326. &lt;Enabled&gt;true&lt;/Enabled&gt;
  1327. &lt;FileHippoId /&gt;
  1328. &lt;TargetPath&gt;{saveDir}\{appname}_{version}.{url:ext}&lt;/TargetPath&gt;
  1329. &lt;FixedDownloadUrl&gt;{url}&lt;/FixedDownloadUrl&gt;
  1330. &lt;Name&gt;x &lt;/Name&gt;
  1331. &lt;/ApplicationJob&gt;
  1332. &lt;/Jobs&gt;</string>
  1333. </value>
  1334. </item>
  1335. <item>
  1336. <key>
  1337. <string>olvJobs/x:Visibility</string>
  1338. </key>
  1339. <value>
  1340. <string>System.Boolean:True</string>
  1341. </value>
  1342. </item>
  1343. <item>
  1344. <key>
  1345. <string>olvJobs/x:Width</string>
  1346. </key>
  1347. <value>
  1348. <string>System.Int32:89</string>
  1349. </value>
  1350. </item>
  1351. <item>
  1352. <key>
  1353. <string>olvJobs/x:LastDisplayIndex</string>
  1354. </key>
  1355. <value>
  1356. <string>System.Int32:-1</string>
  1357. </value>
  1358. </item>
  1359. <item>
  1360. <key>
  1361. <string>olvJobs/Filesize:Visibility</string>
  1362. </key>
  1363. <value>
  1364. <string>System.Boolean:True</string>
  1365. </value>
  1366. </item>
  1367. <item>
  1368. <key>
  1369. <string>olvJobs/Filesize:Width</string>
  1370. </key>
  1371. <value>
  1372. <string>System.Int32:68</string>
  1373. </value>
  1374. </item>
  1375. <item>
  1376. <key>
  1377. <string>olvJobs/Filesize:LastDisplayIndex</string>
  1378. </key>
  1379. <value>
  1380. <string>System.Int32:5</string>
  1381. </value>
  1382. </item>
  1383. <item>
  1384. <key>
  1385. <string>olvJobs/url:Visibility</string>
  1386. </key>
  1387. <value>
  1388. <string>System.Boolean:True</string>
  1389. </value>
  1390. </item>
  1391. <item>
  1392. <key>
  1393. <string>olvJobs/url:Width</string>
  1394. </key>
  1395. <value>
  1396. <string>System.Int32:147</string>
  1397. </value>
  1398. </item>
  1399. <item>
  1400. <key>
  1401. <string>olvJobs/url:LastDisplayIndex</string>
  1402. </key>
  1403. <value>
  1404. <string>System.Int32:-1</string>
  1405. </value>
  1406. </item>
  1407. <item>
  1408. <key>
  1409. <string>olvJobs/host:Visibility</string>
  1410. </key>
  1411. <value>
  1412. <string>System.Boolean:True</string>
  1413. </value>
  1414. </item>
  1415. <item>
  1416. <key>
  1417. <string>olvJobs/host:Width</string>
  1418. </key>
  1419. <value>
  1420. <string>System.Int32:120</string>
  1421. </value>
  1422. </item>
  1423. <item>
  1424. <key>
  1425. <string>olvJobs/host:LastDisplayIndex</string>
  1426. </key>
  1427. <value>
  1428. <string>System.Int32:10</string>
  1429. </value>
  1430. </item>
  1431. <item>
  1432. <key>
  1433. <string>olvJobs/packageGuid:Visibility</string>
  1434. </key>
  1435. <value>
  1436. <string>System.Boolean:True</string>
  1437. </value>
  1438. </item>
  1439. <item>
  1440. <key>
  1441. <string>olvJobs/packageGuid:Width</string>
  1442. </key>
  1443. <value>
  1444. <string>System.Int32:77</string>
  1445. </value>
  1446. </item>
  1447. <item>
  1448. <key>
  1449. <string>olvJobs/packageGuid:LastDisplayIndex</string>
  1450. </key>
  1451. <value>
  1452. <string>System.Int32:14</string>
  1453. </value>
  1454. </item>
  1455. <item>
  1456. <key>
  1457. <string>olvJobs/fileDate:Visibility</string>
  1458. </key>
  1459. <value>
  1460. <string>System.Boolean:True</string>
  1461. </value>
  1462. </item>
  1463. <item>
  1464. <key>
  1465. <string>olvJobs/fileDate:Width</string>
  1466. </key>
  1467. <value>
  1468. <string>System.Int32:97</string>
  1469. </value>
  1470. </item>
  1471. <item>
  1472. <key>
  1473. <string>olvJobs/fileDate:LastDisplayIndex</string>
  1474. </key>
  1475. <value>
  1476. <string>System.Int32:3</string>
  1477. </value>
  1478. </item>
  1479. <item>
  1480. <key>
  1481. <string>olvJobs/fixedUrl:Visibility</string>
  1482. </key>
  1483. <value>
  1484. <string>System.Boolean:True</string>
  1485. </value>
  1486. </item>
  1487. <item>
  1488. <key>
  1489. <string>olvJobs/fixedUrl:Width</string>
  1490. </key>
  1491. <value>
  1492. <string>System.Int32:96</string>
  1493. </value>
  1494. </item>
  1495. <item>
  1496. <key>
  1497. <string>olvJobs/fixedUrl:LastDisplayIndex</string>
  1498. </key>
  1499. <value>
  1500. <string>System.Int32:9</string>
  1501. </value>
  1502. </item>
  1503. <item>
  1504. <key>
  1505. <string>olvJobs/referer:Visibility</string>
  1506. </key>
  1507. <value>
  1508. <string>System.Boolean:True</string>
  1509. </value>
  1510. </item>
  1511. <item>
  1512. <key>
  1513. <string>olvJobs/referer:Width</string>
  1514. </key>
  1515. <value>
  1516. <string>System.Int32:65</string>
  1517. </value>
  1518. </item>
  1519. <item>
  1520. <key>
  1521. <string>olvJobs/referer:LastDisplayIndex</string>
  1522. </key>
  1523. <value>
  1524. <string>System.Int32:13</string>
  1525. </value>
  1526. </item>
  1527. <item>
  1528. <key>
  1529. <string>olvJobs/User-Agent:Visibility</string>
  1530. </key>
  1531. <value>
  1532. <string>System.Boolean:True</string>
  1533. </value>
  1534. </item>
  1535. <item>
  1536. <key>
  1537. <string>olvJobs/User-Agent:Width</string>
  1538. </key>
  1539. <value>
  1540. <string>System.Int32:80</string>
  1541. </value>
  1542. </item>
  1543. <item>
  1544. <key>
  1545. <string>olvJobs/User-Agent:LastDisplayIndex</string>
  1546. </key>
  1547. <value>
  1548. <string>System.Int32:8</string>
  1549. </value>
  1550. </item>
  1551. <item>
  1552. <key>
  1553. <string>olvJobs/DeletePreviousFile:Visibility</string>
  1554. </key>
  1555. <value>
  1556. <string>System.Boolean:True</string>
  1557. </value>
  1558. </item>
  1559. <item>
  1560. <key>
  1561. <string>olvJobs/DeletePreviousFile:Width</string>
  1562. </key>
  1563. <value>
  1564. <string>System.Int32:41</string>
  1565. </value>
  1566. </item>
  1567. <item>
  1568. <key>
  1569. <string>olvJobs/DeletePreviousFile:LastDisplayIndex</string>
  1570. </key>
  1571. <value>
  1572. <string>System.Int32:20</string>
  1573. </value>
  1574. </item>
  1575. <item>
  1576. <key>
  1577. <string>olvJobs/VariableChangeIndicator:Visibility</string>
  1578. </key>
  1579. <value>
  1580. <string>System.Boolean:True</string>
  1581. </value>
  1582. </item>
  1583. <item>
  1584. <key>
  1585. <string>olvJobs/VariableChangeIndicator:Width</string>
  1586. </key>
  1587. <value>
  1588. <string>System.Int32:55</string>
  1589. </value>
  1590. </item>
  1591. <item>
  1592. <key>
  1593. <string>olvJobs/VariableChangeIndicator:LastDisplayIndex</string>
  1594. </key>
  1595. <value>
  1596. <string>System.Int32:15</string>
  1597. </value>
  1598. </item>
  1599. <item>
  1600. <key>
  1601. <string>olvJobs/github:Visibility</string>
  1602. </key>
  1603. <value>
  1604. <string>System.Boolean:True</string>
  1605. </value>
  1606. </item>
  1607. <item>
  1608. <key>
  1609. <string>olvJobs/github:Width</string>
  1610. </key>
  1611. <value>
  1612. <string>System.Int32:64</string>
  1613. </value>
  1614. </item>
  1615. <item>
  1616. <key>
  1617. <string>olvJobs/github:LastDisplayIndex</string>
  1618. </key>
  1619. <value>
  1620. <string>System.Int32:16</string>
  1621. </value>
  1622. </item>
  1623. <item>
  1624. <key>
  1625. <string>olvJobs/kde:Visibility</string>
  1626. </key>
  1627. <value>
  1628. <string>System.Boolean:True</string>
  1629. </value>
  1630. </item>
  1631. <item>
  1632. <key>
  1633. <string>olvJobs/kde:Width</string>
  1634. </key>
  1635. <value>
  1636. <string>System.Int32:49</string>
  1637. </value>
  1638. </item>
  1639. <item>
  1640. <key>
  1641. <string>olvJobs/kde:LastDisplayIndex</string>
  1642. </key>
  1643. <value>
  1644. <string>System.Int32:17</string>
  1645. </value>
  1646. </item>
  1647. <item>
  1648. <key>
  1649. <string>olvJobs/cscript:Visibility</string>
  1650. </key>
  1651. <value>
  1652. <string>System.Boolean:True</string>
  1653. </value>
  1654. </item>
  1655. <item>
  1656. <key>
  1657. <string>olvJobs/cscript:Width</string>
  1658. </key>
  1659. <value>
  1660. <string>System.Int32:32</string>
  1661. </value>
  1662. </item>
  1663. <item>
  1664. <key>
  1665. <string>olvJobs/cscript:LastDisplayIndex</string>
  1666. </key>
  1667. <value>
  1668. <string>System.Int32:22</string>
  1669. </value>
  1670. </item>
  1671. <item>
  1672. <key>
  1673. <string>olvJobs/enabled:Visibility</string>
  1674. </key>
  1675. <value>
  1676. <string>System.Boolean:True</string>
  1677. </value>
  1678. </item>
  1679. <item>
  1680. <key>
  1681. <string>olvJobs/enabled:Width</string>
  1682. </key>
  1683. <value>
  1684. <string>System.Int32:60</string>
  1685. </value>
  1686. </item>
  1687. <item>
  1688. <key>
  1689. <string>olvJobs/enabled:LastDisplayIndex</string>
  1690. </key>
  1691. <value>
  1692. <string>System.Int32:26</string>
  1693. </value>
  1694. </item>
  1695. <item>
  1696. <key>
  1697. <string>olvJobs/nopush:Visibility</string>
  1698. </key>
  1699. <value>
  1700. <string>System.Boolean:True</string>
  1701. </value>
  1702. </item>
  1703. <item>
  1704. <key>
  1705. <string>olvJobs/nopush:Width</string>
  1706. </key>
  1707. <value>
  1708. <string>System.Int32:60</string>
  1709. </value>
  1710. </item>
  1711. <item>
  1712. <key>
  1713. <string>olvJobs/nopush:LastDisplayIndex</string>
  1714. </key>
  1715. <value>
  1716. <string>System.Int32:23</string>
  1717. </value>
  1718. </item>
  1719. <item>
  1720. <key>
  1721. <string>olvJobs/domainname:Visibility</string>
  1722. </key>
  1723. <value>
  1724. <string>System.Boolean:True</string>
  1725. </value>
  1726. </item>
  1727. <item>
  1728. <key>
  1729. <string>olvJobs/domainname:Width</string>
  1730. </key>
  1731. <value>
  1732. <string>System.Int32:166</string>
  1733. </value>
  1734. </item>
  1735. <item>
  1736. <key>
  1737. <string>olvJobs/domainname:LastDisplayIndex</string>
  1738. </key>
  1739. <value>
  1740. <string>System.Int32:10</string>
  1741. </value>
  1742. </item>
  1743. <item>
  1744. <key>
  1745. <string>olvJobs/domain:Visibility</string>
  1746. </key>
  1747. <value>
  1748. <string>System.Boolean:True</string>
  1749. </value>
  1750. </item>
  1751. <item>
  1752. <key>
  1753. <string>olvJobs/domain:Width</string>
  1754. </key>
  1755. <value>
  1756. <string>System.Int32:141</string>
  1757. </value>
  1758. </item>
  1759. <item>
  1760. <key>
  1761. <string>olvJobs/domain:LastDisplayIndex</string>
  1762. </key>
  1763. <value>
  1764. <string>System.Int32:17</string>
  1765. </value>
  1766. </item>
  1767. <item>
  1768. <key>
  1769. <string>olvJobs/checksum64file:Visibility</string>
  1770. </key>
  1771. <value>
  1772. <string>System.Boolean:True</string>
  1773. </value>
  1774. </item>
  1775. <item>
  1776. <key>
  1777. <string>olvJobs/checksum64file:Width</string>
  1778. </key>
  1779. <value>
  1780. <string>System.Int32:91</string>
  1781. </value>
  1782. </item>
  1783. <item>
  1784. <key>
  1785. <string>olvJobs/checksum64file:LastDisplayIndex</string>
  1786. </key>
  1787. <value>
  1788. <string>System.Int32:25</string>
  1789. </value>
  1790. </item>
  1791. <item>
  1792. <key>
  1793. <string>olvJobs/Target2:Visibility</string>
  1794. </key>
  1795. <value>
  1796. <string>System.Boolean:True</string>
  1797. </value>
  1798. </item>
  1799. <item>
  1800. <key>
  1801. <string>olvJobs/Target2:Width</string>
  1802. </key>
  1803. <value>
  1804. <string>System.Int32:60</string>
  1805. </value>
  1806. </item>
  1807. <item>
  1808. <key>
  1809. <string>olvJobs/Target2:LastDisplayIndex</string>
  1810. </key>
  1811. <value>
  1812. <string>System.Int32:-1</string>
  1813. </value>
  1814. </item>
  1815. <item>
  1816. <key>
  1817. <string>olvJobs/AppName:Visibility</string>
  1818. </key>
  1819. <value>
  1820. <string>System.Boolean:True</string>
  1821. </value>
  1822. </item>
  1823. <item>
  1824. <key>
  1825. <string>olvJobs/AppName:Width</string>
  1826. </key>
  1827. <value>
  1828. <string>System.Int32:164</string>
  1829. </value>
  1830. </item>
  1831. <item>
  1832. <key>
  1833. <string>olvJobs/AppName:LastDisplayIndex</string>
  1834. </key>
  1835. <value>
  1836. <string>System.Int32:-1</string>
  1837. </value>
  1838. </item>
  1839. <item>
  1840. <key>
  1841. <string>olvJobs/version:Visibility</string>
  1842. </key>
  1843. <value>
  1844. <string>System.Boolean:True</string>
  1845. </value>
  1846. </item>
  1847. <item>
  1848. <key>
  1849. <string>olvJobs/version:Width</string>
  1850. </key>
  1851. <value>
  1852. <string>System.Int32:120</string>
  1853. </value>
  1854. </item>
  1855. <item>
  1856. <key>
  1857. <string>olvJobs/version:LastDisplayIndex</string>
  1858. </key>
  1859. <value>
  1860. <string>System.Int32:1</string>
  1861. </value>
  1862. </item>
  1863. <item>
  1864. <key>
  1865. <string>olvJobs/filesize:Visibility</string>
  1866. </key>
  1867. <value>
  1868. <string>System.Boolean:True</string>
  1869. </value>
  1870. </item>
  1871. <item>
  1872. <key>
  1873. <string>olvJobs/filesize:Width</string>
  1874. </key>
  1875. <value>
  1876. <string>System.Int32:68</string>
  1877. </value>
  1878. </item>
  1879. <item>
  1880. <key>
  1881. <string>olvJobs/filesize:LastDisplayIndex</string>
  1882. </key>
  1883. <value>
  1884. <string>System.Int32:8</string>
  1885. </value>
  1886. </item>
  1887. <item>
  1888. <key>
  1889. <string>olvJobs/user-agent:Visibility</string>
  1890. </key>
  1891. <value>
  1892. <string>System.Boolean:True</string>
  1893. </value>
  1894. </item>
  1895. <item>
  1896. <key>
  1897. <string>olvJobs/user-agent:Width</string>
  1898. </key>
  1899. <value>
  1900. <string>System.Int32:60</string>
  1901. </value>
  1902. </item>
  1903. <item>
  1904. <key>
  1905. <string>olvJobs/user-agent:LastDisplayIndex</string>
  1906. </key>
  1907. <value>
  1908. <string>System.Int32:12</string>
  1909. </value>
  1910. </item>
  1911. <item>
  1912. <key>
  1913. <string>olvJobs/delPrevFile:Visibility</string>
  1914. </key>
  1915. <value>
  1916. <string>System.Boolean:True</string>
  1917. </value>
  1918. </item>
  1919. <item>
  1920. <key>
  1921. <string>olvJobs/delPrevFile:Width</string>
  1922. </key>
  1923. <value>
  1924. <string>System.Int32:60</string>
  1925. </value>
  1926. </item>
  1927. <item>
  1928. <key>
  1929. <string>olvJobs/delPrevFile:LastDisplayIndex</string>
  1930. </key>
  1931. <value>
  1932. <string>System.Int32:27</string>
  1933. </value>
  1934. </item>
  1935. <item>
  1936. <key>
  1937. <string>olvJobs/varChangeIndicator:Visibility</string>
  1938. </key>
  1939. <value>
  1940. <string>System.Boolean:True</string>
  1941. </value>
  1942. </item>
  1943. <item>
  1944. <key>
  1945. <string>olvJobs/varChangeIndicator:Width</string>
  1946. </key>
  1947. <value>
  1948. <string>System.Int32:60</string>
  1949. </value>
  1950. </item>
  1951. <item>
  1952. <key>
  1953. <string>olvJobs/varChangeIndicator:LastDisplayIndex</string>
  1954. </key>
  1955. <value>
  1956. <string>System.Int32:20</string>
  1957. </value>
  1958. </item>
  1959. <item>
  1960. <key>
  1961. <string>olvJobs/varChgInd:Visibility</string>
  1962. </key>
  1963. <value>
  1964. <string>System.Boolean:True</string>
  1965. </value>
  1966. </item>
  1967. <item>
  1968. <key>
  1969. <string>olvJobs/varChgInd:Width</string>
  1970. </key>
  1971. <value>
  1972. <string>System.Int32:82</string>
  1973. </value>
  1974. </item>
  1975. <item>
  1976. <key>
  1977. <string>olvJobs/varChgInd:LastDisplayIndex</string>
  1978. </key>
  1979. <value>
  1980. <string>System.Int32:16</string>
  1981. </value>
  1982. </item>
  1983. <item>
  1984. <key>
  1985. <string>olvJobs/url64:Visibility</string>
  1986. </key>
  1987. <value>
  1988. <string>System.Boolean:True</string>
  1989. </value>
  1990. </item>
  1991. <item>
  1992. <key>
  1993. <string>olvJobs/url64:Width</string>
  1994. </key>
  1995. <value>
  1996. <string>System.Int32:60</string>
  1997. </value>
  1998. </item>
  1999. <item>
  2000. <key>
  2001. <string>olvJobs/url64:LastDisplayIndex</string>
  2002. </key>
  2003. <value>
  2004. <string>System.Int32:24</string>
  2005. </value>
  2006. </item>
  2007. <item>
  2008. <key>
  2009. <string>olvJobs/hash:Visibility</string>
  2010. </key>
  2011. <value>
  2012. <string>System.Boolean:True</string>
  2013. </value>
  2014. </item>
  2015. <item>
  2016. <key>
  2017. <string>olvJobs/hash:Width</string>
  2018. </key>
  2019. <value>
  2020. <string>System.Int32:60</string>
  2021. </value>
  2022. </item>
  2023. <item>
  2024. <key>
  2025. <string>olvJobs/hash:LastDisplayIndex</string>
  2026. </key>
  2027. <value>
  2028. <string>System.Int32:24</string>
  2029. </value>
  2030. </item>
  2031. <item>
  2032. <key>
  2033. <string>olvJobs/hashType:Visibility</string>
  2034. </key>
  2035. <value>
  2036. <string>System.Boolean:True</string>
  2037. </value>
  2038. </item>
  2039. <item>
  2040. <key>
  2041. <string>olvJobs/hashType:Width</string>
  2042. </key>
  2043. <value>
  2044. <string>System.Int32:60</string>
  2045. </value>
  2046. </item>
  2047. <item>
  2048. <key>
  2049. <string>olvJobs/hashType:LastDisplayIndex</string>
  2050. </key>
  2051. <value>
  2052. <string>System.Int32:18</string>
  2053. </value>
  2054. </item>
  2055. <item>
  2056. <key>
  2057. <string>ImportFromDatabaseDialog/Size</string>
  2058. </key>
  2059. <value>
  2060. <string>System.Drawing.Size:524,1596</string>
  2061. </value>
  2062. </item>
  2063. <item>
  2064. <key>
  2065. <string>olvApplications/Application name:Visibility</string>
  2066. </key>
  2067. <value>
  2068. <string>System.Boolean:True</string>
  2069. </value>
  2070. </item>
  2071. <item>
  2072. <key>
  2073. <string>olvApplications/Application name:Width</string>
  2074. </key>
  2075. <value>
  2076. <string>System.Int32:291</string>
  2077. </value>
  2078. </item>
  2079. <item>
  2080. <key>
  2081. <string>olvApplications/Application name:LastDisplayIndex</string>
  2082. </key>
  2083. <value>
  2084. <string>System.Int32:-1</string>
  2085. </value>
  2086. </item>
  2087. <item>
  2088. <key>
  2089. <string>olvApplications/Last updated:Visibility</string>
  2090. </key>
  2091. <value>
  2092. <string>System.Boolean:True</string>
  2093. </value>
  2094. </item>
  2095. <item>
  2096. <key>
  2097. <string>olvApplications/Last updated:Width</string>
  2098. </key>
  2099. <value>
  2100. <string>System.Int32:130</string>
  2101. </value>
  2102. </item>
  2103. <item>
  2104. <key>
  2105. <string>olvApplications/Last updated:LastDisplayIndex</string>
  2106. </key>
  2107. <value>
  2108. <string>System.Int32:-1</string>
  2109. </value>
  2110. </item>
  2111. <item>
  2112. <key>
  2113. <string>olvApplications/Uses:Visibility</string>
  2114. </key>
  2115. <value>
  2116. <string>System.Boolean:True</string>
  2117. </value>
  2118. </item>
  2119. <item>
  2120. <key>
  2121. <string>olvApplications/Uses:Width</string>
  2122. </key>
  2123. <value>
  2124. <string>System.Int32:40</string>
  2125. </value>
  2126. </item>
  2127. <item>
  2128. <key>
  2129. <string>olvApplications/Uses:LastDisplayIndex</string>
  2130. </key>
  2131. <value>
  2132. <string>System.Int32:-1</string>
  2133. </value>
  2134. </item>
  2135. <item>
  2136. <key>
  2137. <string>olvApplications/LastSortColumn</string>
  2138. </key>
  2139. <value>
  2140. <string>System.String:Application name</string>
  2141. </value>
  2142. </item>
  2143. <item>
  2144. <key>
  2145. <string>olvApplications/LastSortOrder</string>
  2146. </key>
  2147. <value>
  2148. <string>System.Int32:1</string>
  2149. </value>
  2150. </item>
  2151. <item>
  2152. <key>
  2153. <string>ChooseAppsToInstallDialog/Size</string>
  2154. </key>
  2155. <value>
  2156. <string>System.Drawing.Size:618,433</string>
  2157. </value>
  2158. </item>
  2159. <item>
  2160. <key>
  2161. <string>ChooseAppsToInstallDialog/Location</string>
  2162. </key>
  2163. <value>
  2164. <string>System.Drawing.Point:675,637</string>
  2165. </value>
  2166. </item>
  2167. <item>
  2168. <key>
  2169. <string>ChooseAppsToInstallDialog/WindowState</string>
  2170. </key>
  2171. <value>
  2172. <string>System.Int32:0</string>
  2173. </value>
  2174. </item>
  2175. <item>
  2176. <key>
  2177. <string>olvApps/Name:Visibility</string>
  2178. </key>
  2179. <value>
  2180. <string>System.Boolean:True</string>
  2181. </value>
  2182. </item>
  2183. <item>
  2184. <key>
  2185. <string>olvApps/Name:Width</string>
  2186. </key>
  2187. <value>
  2188. <string>System.Int32:263</string>
  2189. </value>
  2190. </item>
  2191. <item>
  2192. <key>
  2193. <string>olvApps/Name:LastDisplayIndex</string>
  2194. </key>
  2195. <value>
  2196. <string>System.Int32:-1</string>
  2197. </value>
  2198. </item>
  2199. <item>
  2200. <key>
  2201. <string>olvApps/LastSortColumn</string>
  2202. </key>
  2203. <value>
  2204. <string>System.String:Name</string>
  2205. </value>
  2206. </item>
  2207. <item>
  2208. <key>
  2209. <string>olvApps/LastSortOrder</string>
  2210. </key>
  2211. <value>
  2212. <string>System.Int32:1</string>
  2213. </value>
  2214. </item>
  2215. <item>
  2216. <key>
  2217. <string>olvLists/Name:Visibility</string>
  2218. </key>
  2219. <value>
  2220. <string>System.Boolean:True</string>
  2221. </value>
  2222. </item>
  2223. <item>
  2224. <key>
  2225. <string>olvLists/Name:Width</string>
  2226. </key>
  2227. <value>
  2228. <string>System.Int32:80</string>
  2229. </value>
  2230. </item>
  2231. <item>
  2232. <key>
  2233. <string>olvLists/Name:LastDisplayIndex</string>
  2234. </key>
  2235. <value>
  2236. <string>System.Int32:-1</string>
  2237. </value>
  2238. </item>
  2239. <item>
  2240. <key>
  2241. <string>olvLists/Applications:Visibility</string>
  2242. </key>
  2243. <value>
  2244. <string>System.Boolean:True</string>
  2245. </value>
  2246. </item>
  2247. <item>
  2248. <key>
  2249. <string>olvLists/Applications:Width</string>
  2250. </key>
  2251. <value>
  2252. <string>System.Int32:80</string>
  2253. </value>
  2254. </item>
  2255. <item>
  2256. <key>
  2257. <string>olvLists/Applications:LastDisplayIndex</string>
  2258. </key>
  2259. <value>
  2260. <string>System.Int32:-1</string>
  2261. </value>
  2262. </item>
  2263. <item>
  2264. <key>
  2265. <string>olvLists/LastSortColumn</string>
  2266. </key>
  2267. <value>
  2268. <string>System.String:Name</string>
  2269. </value>
  2270. </item>
  2271. <item>
  2272. <key>
  2273. <string>olvLists/LastSortOrder</string>
  2274. </key>
  2275. <value>
  2276. <string>System.Int32:0</string>
  2277. </value>
  2278. </item>
  2279. <item>
  2280. <key>
  2281. <string>ChooseAppsToInstallDialog/ListsView</string>
  2282. </key>
  2283. <value>
  2284. <string>System.Int32:4</string>
  2285. </value>
  2286. </item>
  2287. <item>
  2288. <key>
  2289. <string>olvJobs/proto:Visibility</string>
  2290. </key>
  2291. <value>
  2292. <string>System.Boolean:True</string>
  2293. </value>
  2294. </item>
  2295. <item>
  2296. <key>
  2297. <string>olvJobs/proto:Width</string>
  2298. </key>
  2299. <value>
  2300. <string>System.Int32:60</string>
  2301. </value>
  2302. </item>
  2303. <item>
  2304. <key>
  2305. <string>olvJobs/proto:LastDisplayIndex</string>
  2306. </key>
  2307. <value>
  2308. <string>System.Int32:11</string>
  2309. </value>
  2310. </item>
  2311. <item>
  2312. <key>
  2313. <string>CopyFileInstructionDialog/Size</string>
  2314. </key>
  2315. <value>
  2316. <string>System.Drawing.Size:402,163</string>
  2317. </value>
  2318. </item>
  2319. <item>
  2320. <key>
  2321. <string>olvJobs/bytes:Visibility</string>
  2322. </key>
  2323. <value>
  2324. <string>System.Boolean:True</string>
  2325. </value>
  2326. </item>
  2327. <item>
  2328. <key>
  2329. <string>olvJobs/bytes:Width</string>
  2330. </key>
  2331. <value>
  2332. <string>System.Int32:71</string>
  2333. </value>
  2334. </item>
  2335. <item>
  2336. <key>
  2337. <string>olvJobs/bytes:LastDisplayIndex</string>
  2338. </key>
  2339. <value>
  2340. <string>System.Int32:7</string>
  2341. </value>
  2342. </item>
  2343. <item>
  2344. <key>
  2345. <string>olvJobs/hashExtVar:Visibility</string>
  2346. </key>
  2347. <value>
  2348. <string>System.Boolean:True</string>
  2349. </value>
  2350. </item>
  2351. <item>
  2352. <key>
  2353. <string>olvJobs/hashExtVar:Width</string>
  2354. </key>
  2355. <value>
  2356. <string>System.Int32:60</string>
  2357. </value>
  2358. </item>
  2359. <item>
  2360. <key>
  2361. <string>olvJobs/hashExtVar:LastDisplayIndex</string>
  2362. </key>
  2363. <value>
  2364. <string>System.Int32:23</string>
  2365. </value>
  2366. </item>
  2367. <item>
  2368. <key>
  2369. <string>olvJobs/hashInternal:Visibility</string>
  2370. </key>
  2371. <value>
  2372. <string>System.Boolean:True</string>
  2373. </value>
  2374. </item>
  2375. <item>
  2376. <key>
  2377. <string>olvJobs/hashInternal:Width</string>
  2378. </key>
  2379. <value>
  2380. <string>System.Int32:60</string>
  2381. </value>
  2382. </item>
  2383. <item>
  2384. <key>
  2385. <string>olvJobs/hashInternal:LastDisplayIndex</string>
  2386. </key>
  2387. <value>
  2388. <string>System.Int32:19</string>
  2389. </value>
  2390. </item>
  2391. <item>
  2392. <key>
  2393. <string>olvJobs/hashExternal:Visibility</string>
  2394. </key>
  2395. <value>
  2396. <string>System.Boolean:True</string>
  2397. </value>
  2398. </item>
  2399. <item>
  2400. <key>
  2401. <string>olvJobs/hashExternal:Width</string>
  2402. </key>
  2403. <value>
  2404. <string>System.Int32:60</string>
  2405. </value>
  2406. </item>
  2407. <item>
  2408. <key>
  2409. <string>olvJobs/hashExternal:LastDisplayIndex</string>
  2410. </key>
  2411. <value>
  2412. <string>System.Int32:20</string>
  2413. </value>
  2414. </item>
  2415. <item>
  2416. <key>
  2417. <string>olvJobs/checksum64:Visibility</string>
  2418. </key>
  2419. <value>
  2420. <string>System.Boolean:True</string>
  2421. </value>
  2422. </item>
  2423. <item>
  2424. <key>
  2425. <string>olvJobs/checksum64:Width</string>
  2426. </key>
  2427. <value>
  2428. <string>System.Int32:33</string>
  2429. </value>
  2430. </item>
  2431. <item>
  2432. <key>
  2433. <string>olvJobs/checksum64:LastDisplayIndex</string>
  2434. </key>
  2435. <value>
  2436. <string>System.Int32:21</string>
  2437. </value>
  2438. </item>
  2439. </dictionary>
  2440. </Settings>
  2441. <GlobalVariables>
  2442. <Variable Name="7z" Content="7z.exe" />
  2443. <Variable Name="saveDir" Content="c:\chocolatey-auto-save" />
  2444. <Variable Name="autoPackagesFolder" Content="c:\code\chocolatey-packages\automatic" />
  2445. <Variable Name="nopush" Content="--nopush" />
  2446. <Variable Name="cscript" Content="2" />
  2447. <Variable Name="null" Content="null" />
  2448. <Variable Name="ie32" Content="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)" />
  2449. <Variable Name="ie64" Content="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Media Center PC 5.0; SLCC1; Tablet PC 2.0; .NET4.0C)" />
  2450. <Variable Name="firefox" Content="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10" />
  2451. <Variable Name="opera" Content="Opera/9.80 (Windows NT 6.1; U; en) Presto/2.6.30 Version/10.62" />
  2452. <Variable Name="chrome" Content="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3" />
  2453. <Variable Name="wget" Content="wget/1.9+cvs-stable+(red+hat+modified)" />
  2454. <Variable Name="curl" Content="pycurl/7.18.2" />
  2455. <Variable Name="checksum" Content="{checksum}" />
  2456. <Variable Name="checksumx64" Content="{checksumx64}" />
  2457. <Variable Name="packageGuid" Content="{packageGuid}" />
  2458. <Variable Name="url64" Content="{url64}" />
  2459. <Variable Name="force" Content=" " />
  2460. </GlobalVariables>
  2461. <CodeSnippets>
  2462. <Snippet Guid="7158800B-A188-4CAB-927C-31AA36FDD049" Name="chocopkgup" Type="1">chocopkgup {nopush} --packagename={appname} --version={version} --pg="{packageGuid}" --url="{preupdate-url}" --urlx64="{url64}" --packagepath="{file}" --checksum="{checksum}" --c64="{checksumx64}" --debug</Snippet>
  2463. <Snippet Guid="BB8AF683-DA06-4C20-8434-9F854C46B961" Name="cs" Type="0">////////////////////////////////////////////////////////////////////////////////////////
  2464. /// version 6.5
  2465. ///
  2466. /// FIX: do not re-push package if package already created
  2467. ///
  2468. // REQUIRES:
  2469. // global vars: workdir=corresponds to download location of installer file
  2470. // app vars: nopush, checksum64file=corresponds to 64 bit install file
  2471. // file vars: same as specified by chocopkgup
  2472. string varCScript = app.Variables.ReplaceAllInString("{cscript}");
  2473. if ((varCScript == "1") || (varCScript == "2")) {
  2474. string varAppname = app.Variables.ReplaceAllInString("{appname}");
  2475. string varVersion = app.Variables.ReplaceAllInString("{version}");
  2476. string varChocoPkgOutput = System.IO.Path.Combine(app.Variables.ReplaceAllInString("{autoPackagesFolder}"), "_output");
  2477. string varChecksum = app.Variables.ReplaceAllInString("{checksum}");
  2478. string varChecksumx64 = app.Variables.ReplaceAllInString("{checksumx64}");
  2479. string varChecksum64File = app.Variables.ReplaceAllInString("{checksum64file}");
  2480. string varChecksum64basefile = app.Variables.ReplaceAllInString("{checksum64file:basefile}");
  2481. string varChecksum64ext = app.Variables.ReplaceAllInString("{checksum64file:ext}");
  2482. string varWorkdir = app.Variables.ReplaceAllInString("{workdir}");
  2483. string saveFileName64 = String.Concat(varChecksum64basefile, ".", varChecksum64ext);
  2484. // equivalent to ketarin variable "{file}"
  2485. //string savePath = app.PreviousLocation;
  2486. string savePath = app.PreviousLocation;
  2487. string pkgPath = Path.Combine(varChocoPkgOutput, varAppname, varVersion);
  2488. if (!System.IO.Directory.Exists(pkgPath)) {
  2489. pkgPath = Path.Combine(varChocoPkgOutput, varAppname);
  2490. }
  2491. string fileNameNuspec = String.Concat(varAppname, ".nuspec");
  2492. string fileUriNuspec = Path.Combine(pkgPath, fileNameNuspec);
  2493. string fileNameNupkg = String.Concat(varAppname, ".", varVersion, ".nupkg");
  2494. string fileUriNupkg = Path.Combine(pkgPath, fileNameNupkg);
  2495. // do not re-push package if package already created
  2496. DateTime today = DateTime.Today;
  2497. DateTime pkgCreateDate = File.GetCreationTime(pkgPath);
  2498. if (today &gt; pkgCreateDate) {
  2499. return;
  2500. }
  2501. if (varChecksum == "{checksum}") {
  2502. // calculate SHA1
  2503. System.IO.FileStream fileSha1 = new System.IO.FileStream(savePath, System.IO.FileMode.Open);
  2504. System.Security.Cryptography.SHA1 sha1 = new System.Security.Cryptography.SHA1CryptoServiceProvider();
  2505. byte[] retValSha1 = sha1.ComputeHash(fileSha1);
  2506. fileSha1.Close();
  2507. // create a string
  2508. System.Text.StringBuilder sbSha1 = new System.Text.StringBuilder();
  2509. for (int i = 0; i &lt; retValSha1.Length; i++) {
  2510. sbSha1.Append(retValSha1[i].ToString("x2"));
  2511. }
  2512. string replaceChecksum = sbSha1.ToString();
  2513. List&lt;string&gt; fileList = new List&lt;string&gt;(Directory.GetFiles(pkgPath, "*.ps1", SearchOption.AllDirectories));
  2514. string[] filesNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
  2515. fileList.AddRange(filesNuspec);
  2516. string[] files = fileList.ToArray();
  2517. foreach (string file in files) {
  2518. try {
  2519. string contents = File.ReadAllText(file);
  2520. contents = contents.Replace("{checksum}", replaceChecksum);
  2521. // Make files writable
  2522. // File.SetAttributes(file, FileAttributes.Normal);
  2523. File.WriteAllText(file, contents);
  2524. } catch (Exception ex) {
  2525. Console.WriteLine(ex.Message);
  2526. }
  2527. }
  2528. }
  2529. // only get checksum if {checksum64file} exists and points to a downloadable file
  2530. if (varChecksumx64 == "{checksumx64}" &amp;&amp; varChecksum64File != "{checksum64file}") {
  2531. string savePath64 = Path.Combine(varWorkdir, saveFileName64);
  2532. System.Net.WebClient webClient = new System.Net.WebClient();
  2533. webClient.DownloadFile(varChecksum64File, savePath64);
  2534. // calculate SHA1
  2535. System.IO.FileStream file64Sha1 = new System.IO.FileStream(savePath64, System.IO.FileMode.Open);
  2536. System.Security.Cryptography.SHA1 sha164 = new System.Security.Cryptography.SHA1CryptoServiceProvider();
  2537. byte[] retVal64Sha1 = sha164.ComputeHash(file64Sha1);
  2538. file64Sha1.Close();
  2539. // create a string
  2540. System.Text.StringBuilder sb64Sha1 = new System.Text.StringBuilder();
  2541. for (int i = 0; i &lt; retVal64Sha1.Length; i++) {
  2542. sb64Sha1.Append(retVal64Sha1[i].ToString("x2"));
  2543. }
  2544. string replace64Checksum = sb64Sha1.ToString();
  2545. List&lt;string&gt; fileList = new List&lt;string&gt;(Directory.GetFiles(pkgPath, "*.ps1", SearchOption.AllDirectories));
  2546. string[] filesNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
  2547. fileList.AddRange(filesNuspec);
  2548. string[] files = fileList.ToArray();
  2549. foreach (string file in files) {
  2550. try {
  2551. string contents = File.ReadAllText(file);
  2552. contents = contents.Replace("{checksumx64}", replace64Checksum);
  2553. File.WriteAllText(file, contents);
  2554. } catch (Exception ex) {
  2555. Console.WriteLine(ex.Message);
  2556. }
  2557. }
  2558. }
  2559. int checkBeta = varVersion.Split('-').Length;
  2560. if ( checkBeta == 2) {
  2561. string strPre = varVersion.Split('-')[1];
  2562. string strReplace = String.Concat(strPre, "&lt;/version&gt;");
  2563. string strCheck = String.Concat(".", DateTime.Now.ToString("yyyyMMdd"), "&lt;/version&gt;");
  2564. string[] fileNuspec = Directory.GetFiles(pkgPath, "*.nuspec", SearchOption.AllDirectories);
  2565. foreach (string file in fileNuspec) {
  2566. string contents = File.ReadAllText(file);
  2567. contents = contents.Replace(strCheck, strReplace);
  2568. File.WriteAllText(file, contents);
  2569. }
  2570. }
  2571. // delete existing nupkg made by chocopkgup; we leverage chocopkgup to create the structure/files in destination
  2572. System.Diagnostics.Process process1 = new System.Diagnostics.Process();
  2573. System.Diagnostics.ProcessStartInfo proc1 = new System.Diagnostics.ProcessStartInfo();
  2574. proc1.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  2575. proc1.UseShellExecute = true;
  2576. proc1.WorkingDirectory = pkgPath;
  2577. proc1.FileName = "cmd.exe";
  2578. proc1.Arguments = "/c "+"del /f " + fileUriNupkg;
  2579. process1.StartInfo = proc1;
  2580. process1.Start();
  2581. // create a new nupkg
  2582. System.Diagnostics.Process process2 = new System.Diagnostics.Process();
  2583. System.Diagnostics.ProcessStartInfo proc2 = new System.Diagnostics.ProcessStartInfo();
  2584. proc2.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  2585. proc2.UseShellExecute = true;
  2586. proc2.WorkingDirectory = pkgPath;
  2587. proc2.FileName = "cmd.exe";
  2588. proc2.Arguments = "/c "+"choco pack "+fileUriNuspec+" -d";
  2589. process2.StartInfo = proc2;
  2590. process2.Start();
  2591. // push the nupkg
  2592. if (varCScript == "2") {
  2593. System.Diagnostics.Process process3 = new System.Diagnostics.Process();
  2594. System.Diagnostics.ProcessStartInfo proc3 = new System.Diagnostics.ProcessStartInfo();
  2595. proc3.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  2596. proc3.UseShellExecute = true;
  2597. proc3.WorkingDirectory = pkgPath;
  2598. proc3.FileName = "cmd.exe";
  2599. // find nupkg in pkgPath
  2600. string[] pushPkg = Directory.GetFiles(pkgPath, "*.nupkg", SearchOption.TopDirectoryOnly);
  2601. foreach (String file in pushPkg) {
  2602. proc3.Arguments = "/c "+"cpush " + file + " -d";
  2603. }
  2604. process3.StartInfo = proc3;
  2605. System.Threading.Thread.Sleep(2000);
  2606. process3.Start();
  2607. }
  2608. }</Snippet>
  2609. </CodeSnippets>
  2610. <SetupLists />
  2611. </Ketarin>