KetarinSettings.xml 77 KB

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