{"id":397,"date":"2014-06-10T10:34:29","date_gmt":"2014-06-10T02:34:29","guid":{"rendered":"http:\/\/www.withonly.com\/?p=397"},"modified":"2014-06-10T10:34:29","modified_gmt":"2014-06-10T02:34:29","slug":"inno-setup%e5%88%9d%e6%8e%a2","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=397","title":{"rendered":"inno setup\u521d\u63a2"},"content":{"rendered":"<p>\u7531\u4e8e\u5de5\u4f5c\u7684\u539f\u56e0\uff0c\u9700\u8981\u5bf9\u5e94\u7528\u7a0b\u5e8f\u5236\u4f5c\u5b89\u88c5\u5305\u3002\u5728\u4ee5\u524d\u7684\u9879\u76ee\u4e2d\uff0c\u90fd\u662f\u4f7f\u7528\u7684 InstallShield \u00a0\u6765\u505a\u7684\u5b89\u88c5\u5305\uff0c\u6700\u8fd1\u7684\u4e00\u4e2a\u9879\u76ee\u662f\u4ece\u4e00\u4e2a\u65e5\u672c\u5f00\u53d1\u56e2\u961f\u7684\u9879\u76ee\u4e2d\u65b0\u5efa\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u4ed6\u4eec\u539f\u672c\u7684\u5b89\u88c5\u5305\u90fd\u662f\u4f7f\u7528 Inno Setup \u6765\u521b\u5efa\u7684\uff0c\u7ed3\u5408\u9879\u76ee\u80cc\u666f\u548c\u5b89\u88c5\u5305\u7684\u590d\u6742\u5ea6\uff0c\u6211\u4eec\u5c31\u8e0f\u4e0a\u4e86inno setup\u7684\u8def\u3002<\/p>\n<p>inno setup \u76f8\u5bf9\u4e8e InstallShield \u8f7b\u91cf\u4e86\u5f88\u591a\uff0c\u4e5f\u662f\u4f7f\u7528\u4e86 iss \u4f5c\u4e3a\u5b89\u88c5\u811a\u672c\u6587\u4ef6\u7684\u540e\u7f00\u3002\u5e38\u91cf\u7684\u5b9a\u4e49\u4e5f\u5927\u5927\u65b9\u4fbf\u4e86\u5f00\u53d1\u4eba\u5458\u3002<\/p>\n<p>\u4e0b\u9762\u63cf\u8ff0\u4e0b\u5e38\u89c1\u7684\u5e38\u91cf<\/p>\n<p>AppId \u5e94\u7528\u7a0b\u5e8f\u552f\u4e00ID<br \/>\nAppName \u5e94\u7528\u7a0b\u5e8f\u540d\u79f0<br \/>\nAppVersion \u5e94\u7528\u7a0b\u5e8f\u7248\u672c\u53f7<br \/>\nAppPublisher \u5e94\u7528\u7a0b\u5e8f\u5236\u9020\u5546<br \/>\nAppSupportURL \u5e94\u7528\u7a0b\u5e8f\u5382\u5546\u7684URL<\/p>\n<p>DefaultDirName \u9ed8\u8ba4\u7684\u5b89\u88c5\u8def\u5f84<br \/>\nOutputDir exe\u5b89\u88c5\u5305\u7684\u8f93\u51fa\u8def\u5f84<br \/>\nUninstallDisplayIcon \u5378\u8f7d\u7a0b\u5e8f\u7684\u56fe\u6807<\/p>\n<p>\u4e0a\u9762\u7684\u51e0\u4e2a\u53d8\u91cf\u4e2d\uff0c\u7b2c\u4e00\u90e8\u5206\u7684\u4fe1\u606f\u4f1a\u663e\u793a\u5728\u6dfb\u52a0\u5220\u9664\u7a0b\u5e8f\u4e2d\uff0c\u5c24\u5176\u4ee5AppId\u6700\u4e3a\u91cd\u8981\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u6b64\u6765\u533a\u5206\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5982\u679c\u662f\u540c\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e0d\u540c\u7684\u7248\u672c\uff0c\u8bf7\u4fdd\u8bc1\u8be5\u53d8\u91cf\u59cb\u7ec8\u662f\u76f8\u540c\u7684\u3002inno setup\u53ef\u4ee5\u5e2e\u52a9\u751f\u6210GUID\u683c\u5f0f\u7684AppId\u3002<\/p>\n<p>\u800c[Files]\u6bb5\u662f\u63cf\u8ff0\u4e86\u62f7\u8d1d\u6587\u4ef6\u7684\u8def\u5f84\u548c\u65b9\u5f0f\uff0c\u4f8b\u5982\u4e0b\u9762\u7684<\/p>\n<p>Source : &#8220;{#SourcePath}\\WinGather.exe&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<\/p>\n<p>\u610f\u601d\u5c31\u662f\u628a SourcePath \u5b9a\u4e49\u7684\u76ee\u5f55\u4e0b\u7684 WinGather.exe \u7a0b\u5e8f\u62f7\u8d1d\u5230\u7a0b\u5e8f\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u3002{app} \u662f\u4e00\u4e2a\u7cfb\u7edf\u53d8\u91cf\uff0c\u8868\u793a\u7a0b\u5e8f\u5728\u7528\u6237\u673a\u5668\u4e0a\u7684\u5b89\u88c5\u76ee\u5f55\u3002ignoreversion \u662f\u5728\u62f7\u8d1d\u7684\u8fc7\u7a0b\u4e2d\u5ffd\u7565\u7248\u672c\u7684\u4e0d\u540c\u3002<\/p>\n<p>\u5982\u679c\u4e00\u4e2a\u5e94\u7528\u4e2d\u6709\u5f88\u591a\u4e2a\u6587\u4ef6\u9700\u8981\u62f7\u8d1d\uff0c\u6709\u7684\u8fd8\u5305\u62ec\u5b50\u76ee\u5f55\uff0c\u90fd\u8fd9\u6837\u5199\u5c31\u4f1a\u5f88\u7410\u788e\u3002\u4e8e\u662f\u5c31\u6709\u8fd9\u6837\u7684\u7248\u672c\uff1a<\/p>\n<p>Source: &#8220;{#SourcePath}\\ccprompt\\*&#8221;; DestDir: &#8220;{app}\\ccprompt&#8221;; Flags:ignoreversion recursesubdirs<\/p>\n<p>\u4ece\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u901a\u914d\u7b26*\u7684\u4f7f\u7528\uff0c\u8fd9\u6837\u5c31\u4f1a\u65b9\u4fbf\u5f88\u591a\u54df\u3002\u6b64\u5916\uff0crecursesubdirs \u53c2\u6570\u8868\u793a\u5982\u679c\u5305\u542b\u5b50\u76ee\u5f55\u7684\u8bdd\uff0c\u90a3\u4e48\u8fde\u540c\u5b50\u76ee\u5f55\u4e5f\u4e00\u8d77\u62f7\u8d1d\u3002\u8fd9\u6837 [Files] \u5c31\u4f1a\u5c11\u5f88\u591a\uff0c\u5c3d\u7ba1\u6709\u901a\u914d\u7b26\u7684\u652f\u6301\uff0c\u4f46\u662f\u5b9e\u9645\u5e94\u7528\u4e2d\u8981\u770b\u60c5\u51b5\u800c\u5b9a\uff0c\u76ee\u7684\u662f\u4e3a\u4e86\u907f\u514d\u5b89\u88c5\u5305\u62f7\u8d1d\u65f6\u7684\u51c6\u786e\u6027\uff0c\u5982\u679c\u5b89\u88c5\u4e0d\u5bf9\u52b2\uff0c\u4e5f\u65b9\u4fbf\u67e5\u627e\u5b9a\u4f4d\u539f\u56e0\u3002<\/p>\n<p>[run]\u6bb5\u7684\u4f5c\u7528\u662f\u63cf\u8ff0\u5728\u5b89\u88c5\u7684\u6700\u540e\u4e00\u6b65\u6240\u8981\u505a\u7684\u64cd\u4f5c\uff0c\u591a\u7528\u4e8e\u542f\u52a8\u670d\u52a1\u6216\u8005\u6e05\u7406\u7b49\u64cd\u4f5c\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\uff1a<\/p>\n<p>Filename:&#8221;net.exe&#8221;; Parameters:&#8221;stop ccsdk&#8221;; Flags:waituntilterminated runhidden runascurrentuser;<\/p>\n<p>\u8fd9\u4e2a\u4f8b\u5b50\u5c31\u662f\u8c03\u7528 net \u6765\u505c\u6b62\u4e00\u4e2a\u53eb\u505a ccsdk \u7684\u670d\u52a1\uff0c\u540c\u65f6\u67093\u4e2a\u989d\u5916\u7684\u9009\u9879\uff0c\u5206\u522b\u8868\u793a\u7b49\u8fd9\u4e2a\u64cd\u4f5c\u5b8c\u6210\u540e\u518d\u8fdb\u884c\u540e\u7eed\u7684\u5b89\u88c5\uff0c\u4e0d\u663e\u793a\u754c\u9762\uff0c\u4ee5\u5f53\u524d\u7528\u6237\u5373\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\u3002\u5982\u679c\u8fd0\u884c\u4e00\u4e2a\u547d\u4ee4\u884c\u6216\u8005\u6279\u5904\u7406\uff0c\u5982\u679c\u4e0d\u4f7f\u7528 runhidden\uff0c\u90a3\u4e48\u5728\u754c\u9762\u4e0a\u5c31\u4f1a\u770b\u5230\u6709\u4e00\u4e2a\u7a97\u53e3\u4e00\u95ea\u800c\u8fc7\uff0c\u4f53\u9a8c\u4e0d\u662f\u5f88\u597d\u3002<\/p>\n<p>[uninstallDelete]\u6bb5\u7684\u4f5c\u7528\u662f\u63cf\u8ff0\u5728\u5378\u8f7d\u7684\u65f6\u5019\uff0c\u8981\u5220\u9664\u7684\u6587\u4ef6\uff0c\u591a\u7528\u4e8e\u7a0b\u5e8f\u5728\u8fd0\u884c\u671f\u95f4\u4ea7\u751f\u7684\u6587\u4ef6\u4f8b\u5982\u65e5\u5fd7\u3001\u4e34\u65f6\u6587\u4ef6\u7b49\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>Type:filesanddirs; Name:&#8221;{app}\\log.txt&#8221;<\/p>\n<p>\u4e0a\u9762\u5c31\u662f\u7b80\u5355\u7684\u63cf\u8ff0\u4e86\u4e00\u4e0b\uff0cinno setup\u5176\u5b9e\u975e\u5e38\u7b80\u5355\uff0c\u73af\u5883\u672c\u8eab\u4e5f\u63d0\u4f9b\u4e86\u5b89\u88c5\u60f3\u5230\u548c\u5e2e\u52a9\u6587\u6863\uff0c\u6587\u6863\u91cc\u5199\u7684\u662f\u975e\u5e38\u7684\u8be6\u7ec6\u3002\u6240\u4ee5\u6211\u8fd9\u91cc\u51e0\u4e4e\u6ca1\u6709\u4ec0\u4e48\u5185\u5bb9\u53ef\u5199\u3002\u5bf9\u4e8eE\u6587\u4e0d\u61c2\u7684\u540c\u5b66\uff0c\u53ef\u4ee5\u5728\u7f51\u4e0a\u4e0b\u4e00\u4e2a\u4e2d\u6587\u7248\u7684\u5e2e\u52a9\u624b\u518c\u3002\u6700\u540e\u8bf4\u4e00\u4e0b\uff0cinno setup\u7684\u5b89\u88c5\u811a\u672c\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u5de5\u4f5c\u7684\u539f\u56e0\uff0c\u9700\u8981\u5bf9\u5e94\u7528\u7a0b\u5e8f\u5236\u4f5c\u5b89\u88c5\u5305\u3002\u5728\u4ee5\u524d\u7684\u9879\u76ee\u4e2d\uff0c\u90fd\u662f\u4f7f\u7528\u7684 InstallShield \u00a0\u6765\u505a\u7684\u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[170,37,171],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-daily","tag-170","tag-37","tag-171"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}