{"id":190654,"date":"2013-08-20T08:43:03","date_gmt":"2013-08-20T04:43:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=190654"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=190654","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 patch\u2019\u0435\u0439 \u043d\u0430 Wix \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PatchWiz. \u0427\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f29\/494\/dcf\/f29494dcf6d3477fc05513891744f0ff.png\" alt=\"image\" align=\"right\"\/><br \/>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u0432\u0441\u0435\u043c! \u0412 \u0441\u0432\u043e\u0435\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/190546\/\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0442\u0447\u0435\u0439 \u0438 \u043d\u0430\u0447\u0430\u043b \u043e\u0431\u0437\u043e\u0440 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430 Wix (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <i>PatchWiz<\/i>). \u0422\u0430\u043c \u0436\u0435 \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0443\u0436\u043d\u043e \u00ab\u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435\u00bb. \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u0447\u0430\u0441\u0442\u044c 2, \u0433\u0434\u0435 \u044f \u043e\u043f\u0438\u0448\u0443 \u043d\u0430\u0448\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c\u0438.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0432\u0441\u0435 \u0436\u0435 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u043d\u0430\u0448 \u043f\u043e\u0434\u0445\u043e\u0434, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u043e\u043f\u044b\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 \u043d\u0435 \u0434\u043e\u0433\u043c\u0443. <br \/>  \u0418\u0442\u0430\u043a \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0435\u0439.<\/p>\n<h4>\u041d\u0430\u0448\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438<\/h4>\n<p>  \u0420\u0435\u0448\u0438\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a: \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0438\u0437 <i><a href=\"http:\/\/wix.sourceforge.net\/manual-wix2\/authoring_merge_modules.htm\">merge modules<\/a><\/i>. <br \/>  \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0430 \u043d\u0435\u043a\u0430\u044f \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 (\u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043b\u0438\u043d\u0438\u044f), \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0430\u044f \u0432 \u0441\u0435\u0431\u044f \u043c\u043e\u0434\u0443\u043b\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u043c\u0438, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445. \u041e\u043d\u0430 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u041f\u0440\u0438 \u0447\u0435\u043c, \u0435\u0441\u043b\u0438 \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e <i>Build number<\/i>, \u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u043d\u043e\u0433\u043e \u043f\u0430\u0442\u0447\u0430, \u0433\u0434\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441 <i>Build number<\/i> = 0 (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0438\u0445 \u043e\u043f\u043e\u0440\u043d\u044b\u043c\u0438 \u0441\u0431\u043e\u0440\u043a\u0430\u043c\u0438).<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/13e\/9c7\/c16\/13e9c7c16510555a9ee90039c3a15799.png\"\/><\/p>\n<p>  \u041a\u0440\u0443\u0436\u043a\u0430\u043c\u0438 \u043d\u0430 \u043e\u0441\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438. \u0421\u0438\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043e\u043c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u043e\u043f\u043e\u0440\u043d\u044b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438, \u0437\u0435\u043b\u0435\u043d\u044b\u043c \u2013 \u0441\u0431\u043e\u0440\u043a\u0438, \u0433\u0434\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u043d\u044b\u0439 \u043f\u0430\u0442\u0447 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043e\u043f\u043e\u0440\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0434\u043b\u044f \u043e\u043f\u043e\u0440\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u0442\u043e\u0436\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u043d\u044b\u0439 \u043f\u0430\u0442\u0447 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043e\u043f\u043e\u0440\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438. <\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0443 \u043d\u0430\u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043c\u044b \u0443\u0442\u043e\u0447\u043d\u044f\u0435\u043c, \u0435\u0441\u0442\u044c \u043b\u0438 \u0443 \u043d\u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u0438 \u043a\u0430\u043a\u043e\u0432 \u0435\u0435 \u043d\u043e\u043c\u0435\u0440. \u0414\u0430\u043b\u0435\u0435 \u2013 \u043b\u0438\u0431\u043e \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043b\u0438\u0431\u043e \u043f\u0430\u0442\u0447.<\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043f\u0440\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438: \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043b\u0438\u0431\u043e <i>msi<\/i>, \u043b\u0438\u0431\u043e <i>msp <\/i>\u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 <i>msiexec<\/i>. <\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<h4>\u041e\u0431\u0437\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0431\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044f (\u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438). \u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0435\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0432\u044b\u043b\u043e\u0436\u0435\u043d\u044b \u043d\u0430 <i>GitHub<\/i>, \u0441\u0441\u044b\u043b\u043a\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2c9\/1a1\/dd6\/2c91a1dd67ffcf97b37c0a150d4b40c1.png\"\/> <\/p>\n<p>  \u041f\u0430\u043f\u043a\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442:<br \/>  1. \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<br \/>  2. \u041e\u0431\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f <i>Wix<\/i>.<br \/>  3. \u041f\u0440\u043e\u0435\u043a\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  4. \u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0435\u0439.<br \/>  5. \u0411\u0430\u0442\u043d\u0438\u043a \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430.<\/p>\n<p>  \u041d\u043e\u043c\u0435\u0440\u0430 \u043f\u0430\u043f\u043e\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u041d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<h4>\u0418\u0434\u0435\u043c \u043f\u043e \u0448\u0430\u0433\u0430\u043c<\/h4>\n<p>  <\/p>\n<h6>\u0428\u0430\u0433 1. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h6>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u00abHello, World!\u00bb, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e.<\/p>\n<h6>\u0428\u0430\u0433 2. \u041f\u0438\u0448\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0434\u043b\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439<\/h6>\n<p>  \u0418\u0434\u0435\u043c \u043f\u043e \u0444\u0430\u0439\u043b\u0430\u043c:<br \/>  <i>Deploy.Variables.wxi<\/i> \u2014 \u043e\u0431\u0449\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438:  <\/p>\n<pre><code class=\"xml\">&lt;Include&gt; \t&lt;?define Manufacturer=&quot;\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435&quot;?&gt; \t&lt;?define ManufacturerUrl=&quot;http:\/\/company.ru&quot;?&gt; \t&lt;?define Language=&quot;1049&quot;?&gt; \t&lt;?define Codepage=&quot;1251&quot;?&gt; &lt;\/Include&gt; <\/code><\/pre>\n<p>\u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u044f\u0441\u043d\u043e: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439.<\/p>\n<p>  <i>Deploy.Yasen.Variables.wxi<\/i> \u2014 \u043e\u0431\u0449\u0438\u0439 <i>Wix <\/i>\u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430:  <\/p>\n<pre><code class=\"xml\">&lt;Include&gt; \t&lt;?define ProductName=&quot;\u042f\u0441\u0435\u043d\u044c&quot; ?&gt; \t&lt;?define YasenProductCode=&quot;{06CABA42-492E-49CE-9849-F85E87442E99}&quot;?&gt; \t&lt;?define YasenUpgradeCode=&quot;{BA8CCE3C-4267-4291-B330-16EE510F023B}&quot;?&gt; &lt;\/Include&gt; <\/code><\/pre>\n<p> \u0417\u0430\u0447\u0435\u043c \u043c\u044b \u0437\u0434\u0435\u0441\u044c \u0432\u044b\u043d\u043e\u0441\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0434\u044b \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 (\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0435 \u043f\u0430\u0442\u0447\u0430).<\/p>\n<p>  <i>Deploy.Yasen.ProductContent.wxi<\/i> \u2013 \u043e\u0431\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439.  <\/p>\n<pre><code class=\"xml\">&lt;Include&gt; \t&lt;Package \t\tId=&quot;$(var.PackageId)&quot; \t\tInstallerVersion=&quot;200&quot; \t\tCompressed=&quot;yes&quot; \t\tLanguages=&quot;$(var.Language)&quot; \t\tSummaryCodepage=&quot;$(var.Codepage)&quot; \t\tComments=&quot;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a $(var.ProductName)&quot; \t\tKeywords=&quot;\u041b\u0435\u0441, \u043f\u043e\u0436\u0430\u0440, \u0443\u0447\u0435\u0442, \u0430\u043d\u0430\u043b\u0438\u0437, \u043e\u0431\u043c\u0435\u043d, \u0434\u0430\u043d\u043d\u044b\u0435&quot; \t\tDescription=&quot;$(var.Subject)&quot; \t\tInstallScope=&quot;perMachine&quot; \t\/&gt;  \t&lt;!-- \u0417\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u0430\u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 --&gt; \t&lt;Property Id=&quot;MSIUSEREALADMINDETECTION&quot; Value=&quot;1&quot; \/&gt; \t \t&lt;MajorUpgrade DowngradeErrorMessage =&quot;\u0423\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430&quot; AllowDowngrades=&quot;no&quot;   \/&gt; \t&lt;Upgrade Id='$(var.UpgradeCode)' &gt; \t\t&lt;UpgradeVersion  \t\t\tOnlyDetect=&quot;no&quot;  \t\t\tMaximum=&quot;$(var.ProductVersion)&quot; IncludeMaximum=&quot;no&quot; \t\t\tProperty=&quot;OLDERVERSIONBEINGUPGRADED&quot;  \t\t\tMigrateFeatures=&quot;yes&quot; \t\t\t\/&gt; \t&lt;\/Upgrade&gt;  \t&lt;!-- Media --&gt; \t&lt;Media Id=&quot;1&quot; Cabinet=&quot;media1.cab&quot; EmbedCab=&quot;yes&quot;  \/&gt; &lt;\/Include&gt; <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043c\u044b, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 (\u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0437\u0436\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438). \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <i>Media <\/i>\u0438 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439):<\/p>\n<ul>\n<li><b>MSIUSEREALADMINDETECTION<\/b> \u2013 \u0435\u0441\u043b\u0438 = 1, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 (\u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u0432\u0438\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 UAC).<\/li>\n<li>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 <b>MajorUpgrade<\/b> \u2013 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f <i>Major upgrade<\/i>, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u043e\u0442\u043a\u0430\u0442 \u043d\u0430 \u0441\u0442\u0430\u0440\u0443\u044e.<\/li>\n<li>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 <b>Upgrade<\/b> \u2013 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439. <\/li>\n<li>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 <b>UpgradeVersion<\/b> \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 (\u043f\u043e <i>UpgradeCode<\/i>) \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b (\u0432\u0441\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0436\u0443):<br \/>  <b>Minimum<\/b> \u2013 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f.<br \/>  <b>Maximum<\/b> \u2013 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f.<br \/>  <b>IncludeMaximum<\/b> \u2013 \u00ab\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 \u0434\u0430).<br \/>  <b>IncludeMinimum<\/b> \u2013 \u00ab\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e.<br \/>  <b>Property<\/b> \u2013 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043c\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0442\u043e \u0432 \u044d\u0442\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0438\u0445 \u043a\u043e\u0434\u044b \u0447\u0435\u0440\u0435\u0437 \u2018;\u2019. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 <i>CustomAction<\/i>.<br \/>  <b>OnlyDetect<\/b> \u2013 \u0415\u0441\u043b\u0438 = \u2018<i>yes<\/i>\u2019, \u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0445 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f.<br \/>  <b>IgnoreRemoveFailure<\/b> \u2013 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u0434\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. <\/li>\n<\/ul>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, <b>UpgradeVersion<\/b> \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u0430\u0448\u0435\u0433\u043e <i>UpgradeCode<\/i>.<\/p>\n<p>  \u0418\u0434\u0435\u043c \u0434\u0430\u043b\u0435\u0435: <i>Deploy.Yasen.PatchCreation.xml<\/i> \u2013 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c \u043f\u0430\u0442\u0447\u0435\u0439 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430.  <\/p>\n<pre><code class=\"xml\">&lt;Include xmlns=&quot;http:\/\/schemas.microsoft.com\/wix\/2006\/wi&quot;&gt;  \t&lt;?include Deploy.Variables.wxi?&gt;  \t&lt;?include Deploy.Yasen.Variables.wxi?&gt; \t \t&lt;?define PatchDescription=&quot;\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 $(var.ProductName)&quot;?&gt;  \t&lt;PatchCreation \t\tId=&quot;$(var.PatchId)&quot; Codepage=&quot;$(var.Codepage)&quot; \t\t  CleanWorkingFolder=&quot;yes&quot; \t\t  OutputPath=&quot;patch.pcp&quot; \t\t  WholeFilesOnly=&quot;yes&quot;        &gt;  \t\t&lt;PatchInformation \t\t\t\tDescription=&quot;$(var.PatchDescription)&quot; \t\t\t\tComments=&quot;$(var.PatchDescription)&quot; \t\t\t\tManufacturer=&quot;$(var.Manufacturer)&quot;\/&gt;  \t\t&lt;PatchMetadata \t\t\t\tAllowRemoval=&quot;yes&quot; \t\t\t\tDescription=&quot;$(var.PatchDescription)&quot; \t\t\t\tManufacturerName=&quot;$(var.Manufacturer)&quot; \t\t\t\tTargetProductName=&quot;$(var.ProductName)&quot; \t\t\t\tMoreInfoURL=&quot;$(var.ManufacturerUrl)&quot; \t\t\t\tClassification=&quot;Update&quot; \t\t\t\tDisplayName=&quot;$(var.PatchDescription) \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 $(var.PatchVersion)&quot;\/&gt;  \t\t&lt;Family DiskId=&quot;2&quot; Name=&quot;$(var.Family)&quot; SequenceStart=&quot;5000&quot; &gt;   \t\t\t&lt;UpgradeImage SourceFile=&quot;$(var.NewMsi)&quot; Id=&quot;NewPackage&quot;   &gt; \t\t\t\t&lt;TargetImage SourceFile=&quot;$(var.BaseMsi)&quot; Order=&quot;2&quot; Id=&quot;BasePackage&quot; IgnoreMissingFiles=&quot;no&quot; Validation = &quot;0x00000912&quot; \/&gt; \t\t\t&lt;\/UpgradeImage&gt; \t\t&lt;\/Family&gt;  \t\t&lt;PatchSequence PatchFamily=&quot;$(var.PatchFamily)&quot; Sequence=&quot;$(var.PatchVersion)&quot; Supersede=&quot;yes&quot; ProductCode=&quot;$(var.ProductCode)&quot;\/&gt; \t&lt;\/PatchCreation&gt; &lt;\/Include&gt; <\/code><\/pre>\n<p> \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <b>PatchCreation<\/b> \u043c\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0438 \u0432 \u0447\u0430\u0441\u0442\u0438 1. \u041d\u043e \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u044f:<\/p>\n<ul>\n<li>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 <b>Validation <\/b>\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <b>TargetImage<\/b>. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u043f\u0443\u0441\u043a \u043f\u0430\u0442\u0447\u0435\u0439. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043d \u043e\u043f\u0438\u0441\u0430\u043d <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa370073(v=vs.85).aspx\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0418\u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u0439, \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0432\u0441\u0435 (\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <b>TargetImage<\/b>), \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u0442\u0447\u0430. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043d\u0430\u0448\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043c\u0435\u0440\u044b (\u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0432\u0435\u0440\u0441\u0438\u0439), \u043c\u044b \u043e\u0431\u043e\u0448\u043b\u0438\u0441\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043e\u043f\u043e\u0440\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u0444\u043b\u0430\u0433\u043e\u043c <b>Validation <\/b>\u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>912<\/b>. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0430 \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435: <i>UpgradeCode<\/i>, <i>ProductCode <\/i> \u0438 <i>magor <\/i>\u0438 <i>minor <\/i>\u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u0442\u0447\u0430 (\u0434\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c) \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c (\u0430 <i>build number<\/i> \u2014 \u043d\u0435\u0442). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 <i>minor<\/i> \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b! \u0414\u0430\u0439 \u043f\u044f\u0442\u044c! \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Validation \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442. Enjoy! <\/li>\n<li>\u0422\u0430\u043a\u0436\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 <i>PatchCreation<\/i> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0440\u0430\u043d\u0435\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <i>var.PatchFamily<\/i>, <i>var.PatchVersion<\/i>. \u0418\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u043c \u0441\u0442\u0430\u043d\u0435\u0442 \u044f\u0441\u043d\u043e \u043d\u0430 \u0448\u0430\u0433\u0435 4.  <\/li>\n<\/ul>\n<p>  \u0418 \u0435\u0449\u0435 \u043d\u0430 \u0448\u0430\u0433\u0435 2 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 <i>Incom.WixExtensions<\/i> (\u0432 \u043f\u0430\u043f\u043a\u0435). \u042d\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f <i>Wix<\/i>. \u041e\u043d \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c, \u0430 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043d\u0430 \u0448\u0430\u0433\u0435 3.<\/p>\n<h6>\u0428\u0430\u0433 3. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430<\/h6>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c <i>Wix<\/i> \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e.  <\/p>\n<pre><code class=\"xml\">\t&lt;?define WixCommonPath=&quot;$(var.ProjectDir)..\\&quot;?&gt; \t&lt;?include $(var.WixCommonPath)\\Deploy.Variables.wxi?&gt; \t&lt;?include $(var.WixCommonPath)\\Deploy.Yasen.Variables.wxi?&gt; <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u041f\u041e \u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043a\u043e\u0434\u044b \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438 \u043b\u0438\u043d\u0435\u0439\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.  <\/p>\n<pre><code class=\"xml\">\t&lt;?define Subject=&quot;\u041a\u0430\u043b\u0438\u043d\u0438\u043d\u0433\u0440\u0430\u0434\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c&quot;?&gt; \t&lt;?define ProductVersion=&quot;$(incom.FileVersion($(var.Yasen.UI.TargetPath)))&quot;?&gt;  \t&lt;?define UpgradeCode=&quot;$(var.YasenUpgradeCode)&quot;?&gt; \t&lt;?define ProductCode=&quot;$(incom.ChangeGuid($(var.YasenProductCode),$(var.ProductVersion), 2))&quot;?&gt; <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e <i>UpgradeCode <\/i>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb, \u0430 \u0434\u043b\u044f \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435.<br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435, \u043c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043c\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0446\u0435\u043b\u0438: \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 <i>Build number Product Code<\/i> \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u043d\u044b\u0439 \u043f\u0430\u0442\u0447, \u0430 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 <i>Major <\/i>\u0438\u043b\u0438 <i>Minor<\/i> \u0432\u0435\u0440\u0441\u0438\u0438 \u2013 <i>Product <\/i>Code \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f (\u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438). \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u0434 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043e\u0442 \u043a\u0430\u043a\u0438\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442. \u041f\u0440\u0438 \u0447\u0435\u043c, 1 \u2013 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 <i>major<\/i>, 2 \u2013 \u043e\u0442 <i>major <\/i>\u0438 <i>minor<\/i>, \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0434\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 4.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f <i>Wix<\/i>. <br \/>  \u0422\u0430\u043a \u043a\u0430\u043a \u0446\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0435 \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u0434\u043b\u044f <i>Wix <\/i>(\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/wix.sourceforge.net\/manual-wix3\/extension_development_preprocessor.htm\">\u0442\u0443\u0442<\/a>), \u0442\u043e \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0443\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u043e: \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043c\u0435\u0442\u043e\u0434 <i>EvaluateFunction<\/i>. \u041e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <i>Wix<\/i>\u2019\u043e\u043c \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <i>incom<\/i>. <br \/>  \u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c 2 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<br \/>  \u2022 \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0430\u0439\u043b\u0430<br \/>  \u2022 \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f <i>Guid<\/i><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f Wix \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt; \/\/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \/\/\/ &lt;\/summary&gt; \/\/\/ &lt;param name=&quot;prefix&quot;&gt;\u041f\u0440\u0435\u0444\u0438\u043a\u0441&lt;\/param&gt; \/\/\/ &lt;param name=&quot;function&quot;&gt;\u0418\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438&lt;\/param&gt; \/\/\/ &lt;param name=&quot;args&quot;&gt;\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b&lt;\/param&gt; \/\/\/ &lt;returns&gt;\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&lt;\/returns&gt; public override string EvaluateFunction(string prefix, string function, string[] args) { \tif (prefix == &quot;incom&quot;) \t{ \t\tswitch (function.ToLower()) \t\t{ \t\t\tcase &quot;fileversion&quot;: \t\t\t\tvar ver = FileVersionInfo.GetVersionInfo(Path.GetFullPath(args[0])).FileVersion; \t\t\t\tConsole.WriteLine(string.Format(&quot;Version of {0}: {1}&quot;, args[0], ver));  \t\t\t\treturn ver;  \t\t\tcase &quot;changeguid&quot;: \t\t\t\tvar guid = Guid.Parse(args[0]).ToByteArray(); \t\t\t\tversion = Version.Parse(args[1]);  \t\t\t\tvar major = BitConverter.GetBytes((Int16)((version.Major & 0xFF) ^ ((version.Major &gt;&gt; 16) & 0xFF))); \t\t\t\tvar minor = BitConverter.GetBytes((Int16)((version.Minor & 0xFF) ^ ((version.Minor &gt;&gt; 16) & 0xFF))); \t\t\t\tvar build = BitConverter.GetBytes((Int16)((version.Build & 0xFF) ^ ((version.Build &gt;&gt; 16) & 0xFF))); \t\t\t\tvar revision = BitConverter.GetBytes((Int16)((version.Revision & 0xFF) ^ ((version.Revision &gt;&gt; 16) & 0xFF)));  \t\t\t\tvar len = 4; \t\t\t\tif (args.Length &gt; 2) \t\t\t\t\tlen = int.Parse(args[2]);  \t\t\t\tif (len &gt; 0) \t\t\t\t{ \t\t\t\t\tguid[0] = major[0]; \t\t\t\t\tguid[1] = major[1]; \t\t\t\t} \t\t\t\tif (len &gt; 1) \t\t\t\t{ \t\t\t\t\tguid[2] = minor[0]; \t\t\t\t\tguid[3] = minor[1]; \t\t\t\t} \t\t\t\tif (len &gt; 2) \t\t\t\t{ \t\t\t\t\tguid[4] = build[0]; \t\t\t\t\tguid[5] = build[1]; \t\t\t\t} \t\t\t\tif (len &gt; 3) \t\t\t\t{ \t\t\t\t\tguid[6] = revision[0]; \t\t\t\t\tguid[7] = revision[1]; \t\t\t\t} \t\t\t\treturn new Guid(guid).ToString(); \t\t} \t}  \treturn base.EvaluateFunction(prefix, function, args); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u0448\u0438 \u043a\u043e\u0434\u044b \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e \u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u0434 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u2013 \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c <i>Build number<\/i> (\u0440\u0430\u0437 \u0432 2-3 \u043d\u0435\u0434\u0435\u043b\u0438), \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0435\u0439 \u2013 \u043c\u0435\u043d\u044f\u0435\u043c <i>Minor number<\/i> (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0437 \u0432 2-3 \u043c\u0435\u0441\u044f\u0446\u0430), \u0447\u0442\u043e\u0431\u044b \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043e\u043f\u043e\u0440\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430. \u041a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u2013 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f <i>Major number<\/i> (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0437 \u0432 3-4 \u0433\u043e\u0434\u0430).<\/p>\n<p>  \u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a <i>wix<\/i> \u0444\u0430\u0439\u043b\u0430\u043c. \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u043b\u043e\u043a <i>Product<\/i>, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0444\u0438\u0447\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <i>Deploy.Yasen.ProductContent<\/i>, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435.  <\/p>\n<pre><code class=\"xml\">&lt;Product Id=&quot;$(var.ProductCode)&quot; \t\t\t\tName=&quot;$(var.ProductName)&quot; \t\t\t\tLanguage=&quot;$(var.Language)&quot; \t\t\t\tVersion=&quot;$(var.ProductVersion)&quot; \t\t\t\tManufacturer=&quot;$(var.Manufacturer)&quot; \t\t\t\tUpgradeCode=&quot;$(var.UpgradeCode)&quot; &gt;  \t\t&lt;?include $(var.WixCommonPath)\\Deploy.Yasen.ProductContent.wxi?&gt; \t \t\t&lt;Directory Id=&quot;TARGETDIR&quot; Name=&quot;SourceDir&quot;&gt; \t\t\t&lt;Directory Id=&quot;ProgramFilesFolder&quot;&gt; \t\t\t\t&lt;Directory Id=&quot;APPLICATIONFOLDER&quot; Name=&quot;$(var.ProductName)&quot; DiskId=&quot;1&quot; &gt;  \t\t\t\t\t&lt;!-- Content --&gt; \t\t\t\t\t&lt;Component Id=&quot;Component1&quot; Guid=&quot;{1F4A6EF3-4B65-4405-8E08-D750E5038C75}&quot;&gt; \t\t\t\t\t\t&lt;File Id=&quot;File1&quot; Name=&quot;content.txt&quot; Source=&quot;..\\..\\Incom.Yasen.Content\\content.txt&quot;\/&gt; \t\t\t\t\t\t&lt;File Id=&quot;File2&quot; Name=&quot;Yasen.UI.exe&quot; Source=&quot;$(var.Yasen.UI.TargetPath)&quot;\/&gt; \t\t\t\t\t&lt;\/Component&gt;  \t\t\t\t&lt;\/Directory&gt; \t\t\t&lt;\/Directory&gt; \t\t&lt;\/Directory&gt;  \t\t&lt;Feature Id=&quot;ClientSide&quot; Title=&quot;\u041a\u043b\u0438\u0435\u043d\u0442 $(var.ProductName)&quot; Level=&quot;1&quot; Absent=&quot;disallow&quot;&gt; \t\t\t&lt;ComponentRef Id=&quot;Component1&quot;\/&gt; \t\t&lt;\/Feature&gt;  \t&lt;\/Product&gt; <\/code><\/pre>\n<p>  <\/p>\n<h6>\u0428\u0430\u0433 4. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0442\u0447\u0430<\/h6>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2013 \u043f\u0430\u0442\u0447\u0438.<br \/>  \u041a\u0430\u043a \u0431\u044b\u043b\u043e \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043e \u0432 \u0447\u0430\u0441\u0442\u0438 1, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u0442\u0447\u0438 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u2013 \u0434\u0435\u043b\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u043b\u043e\u043f\u043e\u0442\u043d\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <i>MakeMsp<\/i>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u044d\u0442\u0438 \u0448\u0430\u0433\u0438 \u0437\u0430 \u043d\u0430\u0441. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0431\u0443\u0434\u0443\u0442 \u0442\u0430\u043a\u0438\u0435: \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430, \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c \u043f\u0430\u0442\u0447\u0435\u0439 \u0438 \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443.  <\/p>\n<pre><code class=\"bash\">Incom.MakeMsp.exe &quot;Releases\\YasenSetup1.msi&quot; &quot;Releases\\YasenSetup1.0.1.msi&quot; &quot;Deploy.Yasen. PatchCreation.xml&quot; &quot;Releases\\Patch.msp&quot; <\/code><\/pre>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:<br \/>  <b>1.<\/b> \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u0435 <i>msi<\/i> \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">Task.WaitAll( \tTask.Run( \t\t() =&gt; \t\t{ \t\t\tConsole.WriteLine(&quot;Start copying RTM...&quot;); \t\t\tFile.Copy(args[0], rtmFilePath, true); \t\t\tConsole.WriteLine(&quot;Finished copying RTM...&quot;); \t\t}) \t\t, \tTask.Run( \t\t() =&gt; \t\t{ \t\t\tConsole.WriteLine(&quot;Start copying latest...&quot;); \t\t\tFile.Copy(args[1], latestFilePath, true); \t\t\tConsole.WriteLine(&quot;Finished copying latest...&quot;); \t\t})); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>2.<\/b> \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u043d\u0430 \u0448\u0430\u0433\u0435 2, \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 <i>PatchCreation<\/i>, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435? \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 <i>Wix <\/i>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u043a\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">var productName = MsiReader.GetMSIParameters(latestFilePath, &quot;ProductName&quot;); var wixPachCreationReference = string.Format( \t\t\t\t@&quot;&lt;?xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;utf-8&quot;&quot;?&gt; \t\t\t\t&lt;Wix xmlns='http:\/\/schemas.microsoft.com\/wix\/2006\/wi'&gt;  \t\t\t\t\t&lt;?define Family='{0}'?&gt; \t\t\t\t\t&lt;?define PatchFamily='{0}'?&gt;  \t\t\t\t\t&lt;?define PatchId='{1}'?&gt; \t\t\t\t\t&lt;?define ProductCode='{2}'?&gt; \t\t\t\t\t&lt;?define PatchVersion='{3}'?&gt; \t\t\t\t\t&lt;?define BaseMsi='{4}'?&gt; \t\t\t\t\t&lt;?define NewMsi='{5}'?&gt; \t\t\t\t\t \t\t\t\t\t&lt;?include {6}?&gt;  \t\t\t\t&lt;\/Wix&gt;&quot;, \t\t\t\t\tnew string(Transliterate(productName).Where(char.IsLetterOrDigit).Take(8).ToArray()), \t\t\t\t\tGuid.NewGuid().ToString(), \t\t\t\t\tMsiReader.GetMSIParameters(latestFilePath, &quot;ProductCode&quot;), \t\t\t\t\tMsiReader.GetMSIParameters(latestFilePath, &quot;ProductVersion&quot;), \t\t\t\t\tPath.Combine(rtmPath, &quot;rtm.msi&quot;), \t\t\t\t\tPath.Combine(latesPath, &quot;last.msi&quot;), \t\t\t\t\tPath.GetFullPath(args[2]) ); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <b>PatchFamily<\/b> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0435\u0439. <b>PatchId<\/b> \u2013 \u043d\u043e\u0432\u044b\u0439 Guid. <b>ProductCode<\/b>, <b>PatchVersion <\/b>\u2013 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 <i>msi<\/i>, <b>BaseMsi<\/b> \u0438 <b>NewMsi <\/b>\u2013 \u043f\u0443\u0442\u0438 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c <i>msi <\/i>(\u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443). \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f <i>include <\/i>\u043d\u0430 \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u0441 <b>PatchCreation<\/b>.<\/p>\n<p>  <b>3.<\/b> \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0448\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u0447\u0430\u0441\u0442\u0438 1.<br \/>  \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:  <\/p>\n<pre><code class=\"bash\">exec(&quot;msiexec&quot;, string.Format(&quot;\/a \\&quot;{0}\\&quot; \/qn TARGETDIR=\\&quot;{1}\\\\\\&quot;&quot;, rtmFilePath, rtmPath)); exec(&quot;msiexec&quot;, string.Format(&quot;\/a \\&quot;{0}\\&quot; \/qn TARGETDIR=\\&quot;{1}\\\\\\&quot;&quot;, latestFilePath, latesPath)); <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0430\u0442\u0447\u0430:  <\/p>\n<pre><code class=\"bash\">exec(&quot;candle&quot;, string.Format(&quot;\\&quot;{0}\\&quot; -out \\&quot;{1}\\\\patch.wixobj\\&quot;&quot;, Path.Combine(tempDir, &quot;desc.xml&quot;), tempDir)); exec(&quot;light&quot;, string.Format(&quot;\\&quot;{0}\\\\patch.wixobj\\&quot; -out \\&quot;{0}\\\\patch.pcp\\&quot;&quot;, tempDir)); exec(&quot;msimsp&quot;, string.Format(&quot;-s \\&quot;{0}\\\\patch.pcp\\&quot; -p \\&quot;{1}\\&quot; -l \\&quot;{0}\\\\msimsp.log\\&quot;&quot;, tempDir, args[3])); <\/code><\/pre>\n<p>  <\/p>\n<h6>\u0428\u0430\u0433 5. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0438 \u0432\u0441\u044f<\/h6>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e: \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f <i>Wix<\/i>, \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c \u043f\u0430\u0442\u0447\u0430, \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0430. \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u0440\u043d\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b <b>CompileAll.bat<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0435\u0440\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432\u043c\u0435\u0441\u0442\u0435 (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f <i>framework 4.0<\/i>) \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 <i>Releases<\/i>. \u041c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445.<\/p>\n<h4>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432<\/h4>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 <b>CompileAll.bat<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/9ff\/562\/9d6\/9ff5629d6863e177d8097ba4bb1fb05c.png\"\/><\/p>\n<h5>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0442\u0447\u0430\u043c\u0438<\/h5>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e 1 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e <b>DblClick<\/b>. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/0dc\/734\/ced\/0dc734cedc27b5a70fe968a8d07fb75a.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0442\u0447 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e <b>DblClick<\/b>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d81\/099\/0aa\/d810990aad2354db63fcb51ece2d1744.png\"\/> <\/p>\n<p>  \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u044d\u0442\u043e:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5d4\/e22\/459\/5d4e22459958af7cdbb78e19bf67e210.png\"\/><\/p>\n<h5>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c<\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0441 1.0.0 \u0434\u043e 1.0.1 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 <i>msi<\/i>, \u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<pre><code class=\"bash\">msiexec \/i YasenSetup1.0.1.msi REINSTALL=ALL REINSTALLMODE=vomus <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c:<br \/>  <b>REINSTALL <\/b>\u2013 \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0444\u0438\u0447\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 (\u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0435). \u0415\u0441\u043b\u0438 \u043c\u044b \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0435 \u0443\u043a\u0430\u0436\u0435\u043c, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 (\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439) \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u00ab\u0414\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430\u00bb. (<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa371175(v=vs.85).aspx\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438<\/a>)<br \/>  <b>REINSTALLMODE <\/b>\u2013 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435) \u0444\u0430\u0439\u043b\u043e\u0432. (<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa371182(v=vs.85).aspx\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438<\/a>). \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e:<br \/>  <b>v<\/b> \u2013 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (<i>ProductCode<\/i>) <i>Windows <\/i>\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>Package.Id<\/i>, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u044b\u043b \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u0440\u043e\u0434\u0443\u043a\u0442. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e \u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u043a\u0435\u0442, \u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u0438\u043c <i>Package.Id<\/i> (\u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f), \u0442\u043e \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>Package.Id<\/i> \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u0442 \u0441 <i>Package.Id<\/i> \u043d\u043e\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f. \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u00ab<b>v<\/b>\u00bb <i>Package.Id<\/i> \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.<br \/>  <b>o<\/b> \u2013 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u043e\u0432\u043e\u0439, \u043b\u0438\u0431\u043e \u0444\u0430\u0439\u043b \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.<br \/>  <b>m<\/b> \u2013 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 (<i>HKEY_LOCAL_MACHINE <\/i>\u0438 <i>HKEY_CLASSES_ROOT<\/i>)<br \/>  <b>u<\/b> \u2013 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 (<i>HKEY_CURRENT_USER <\/i>\u0438 <i>HKEY_USERS<\/i>)<br \/>  <b>s<\/b> \u2013 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u044f\u0440\u043b\u044b\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u044d\u0448 \u0438\u043a\u043e\u043d\u043e\u043a.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043a\u0430\u043a \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e <b>DblClick<\/b>, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/p>\n<h4>\u041f\u043e\u0434\u044b\u0442\u043e\u0436\u0438\u043c<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<br \/>  1) \u0412\u044b\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f <i>Wix <\/i>\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0439 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f:<br \/>  a. \u0412\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u043e\u0431\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, <i>merge modules<\/i> \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 <i>include<\/i>.<br \/>  b. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c <i>Product.ProductCode<\/i> \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<br \/>  2) \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0442\u0447\u0435\u0439.<br \/>  3) \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0442\u0447\u0438.<\/p>\n<h4>\u041e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u0442\u043e\u0433<\/h4>\n<p>  <i>Wix <\/i>\u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0433\u043e\u043b\u043e\u0432\u043d\u0443\u044e \u0431\u043e\u043b\u044c, \u0437\u0430 \u0447\u0442\u043e \u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e.<br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432 \u0442\u0435\u043d\u0438, \u043d\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e \u0438 \u0446\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e.<\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0438:<br \/>  \u0412\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/neisbut\/WixInstallersAndPatches\">GitHub<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/190654\/\"> http:\/\/habrahabr.ru\/post\/190654\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f29\/494\/dcf\/f29494dcf6d3477fc05513891744f0ff.png\" alt=\"image\" align=\"right\"\/><br \/>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c \u0432\u0441\u0435\u043c! \u0412 \u0441\u0432\u043e\u0435\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/190546\/\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u0442\u0447\u0435\u0439 \u0438 \u043d\u0430\u0447\u0430\u043b \u043e\u0431\u0437\u043e\u0440 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430 Wix (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <i>PatchWiz<\/i>). \u0422\u0430\u043c \u0436\u0435 \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0443\u0436\u043d\u043e \u00ab\u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435\u00bb. \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u0447\u0430\u0441\u0442\u044c 2, \u0433\u0434\u0435 \u044f \u043e\u043f\u0438\u0448\u0443 \u043d\u0430\u0448\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-190654","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190654"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190654\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}