{"id":28856,"date":"2024-07-01T15:40:36","date_gmt":"2024-07-01T07:40:36","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=28856"},"modified":"2024-07-01T15:40:36","modified_gmt":"2024-07-01T07:40:36","slug":"%e4%b8%a4%e4%b8%aaexe%e6%89%93%e5%8c%85%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%e5%91%a2","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2024\/07\/01\/%e4%b8%a4%e4%b8%aaexe%e6%89%93%e5%8c%85%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%e5%91%a2\/","title":{"rendered":"\u4e24\u4e2aexe\u6253\u5305\u6709\u54ea\u4e9b\u65b9\u6cd5\u5462?"},"content":{"rendered":"

\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u540c\u65f6\u4f7f\u7528\u4e24\u4e2a\u7a0b\u5e8f\uff0c\u4e5f\u53ef\u4ee5\u51cf\u5c11\u7528\u6237\u7684\u4e0b\u8f7d\u548c\u5b89\u88c5\u65f6\u95f4\u3002\u4e0b\u9762\u5c06\u4ecb\u7ecd\u4e24\u79cd\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u65b9\u6cd5\u3002<\/p>\n

\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528\u6253\u5305\u5de5\u5177<\/p>\n

\u4e00\u79cd\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6253\u5305\u5de5\u5177\u3002\u8fd9\u79cd\u65b9\u6cd5\u9700\u8981\u4f7f\u7528\u4e00\u4e2a\u6253\u5305\u5de5\u5177\uff0c\u4f8b\u5982Inno Setup\u3002Inno Setup\u662f\u4e00\u6b3e\u514d\u8d39\u7684\u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n

\u4f7f\u7528Inno Setup\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1. \u6253\u5f00Inno Setup\uff0c\u5e76\u9009\u62e9\u201c\u65b0\u5efa\u201d\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n

gif\u8f6cexe<\/a><\/p>\n

2. \u5728\u5b89\u88c5\u7a0b\u5e8f\u5411\u5bfc\u4e2d\uff0c\u9009\u62e9\u201c\u9009\u62e9\u6587\u4ef6\u201d\uff0c\u5e76\u9009chm\u8f6cexe<\/a>\u62e9\u9700\u8981\u6253\u5305\u7684\u4e24\u4e2aexe\u6587\u4ef6\u3002<\/p>\n

3. \u5728\u5b89\u88c5\u7a0b\u5e8f\u5411\u5bfc\u4e2d\uff0c\u9009\u62e9\u201c\u9009\u62e9\u76ee\u5f55\u201d\uff0c\u5e76\u9009\u62e9\u5b89\u88c5\u7a0b\u5e8f\u5c06\u8981\u5b89\u88c5\u5230\u7684\u76ee\u5f55\u3002<\/p>\n

4. \u5728\u5b89\u88c5\u7a0b\u5e8f\u5411\u5bfc\u4e2d\uff0c\u9009\u62e9\u201c\u5b8c\u6210\u201d\uff0c\u5e76\u751f\u6210\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n

\u8fd9\u6837\u5c31\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5305\u542b\u4e24\u4e2aexe\u6587\u4ef6\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u8fd9\u4e2a\u5b89\u88c5\u7a0b\u5e8f\u6765\u540c\u65f6\u5b89\u88c5\u8fd9\u4e24\u4e2a\u7a0b\u5e8f\u3002<\/p>\n

\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6<\/p>\n

\u53e6\u4e00\u79cd\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u3002\u8fd9\u79cd\u65b9\u6cd5\u9700\u8981\u7528\u6237\u624b\u52a8\u7f16\u5199\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\uff0c\u5e76\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u548c\u6279\u5904\u7406\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u3002<\/p>\n

\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1. \u6253\u5f00\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f8b\u5982\u8bb0\u4e8b\u672c\u3002<\/p>\n

2. \u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n

@echo off<\/p>\n

\n

<\/figure>\n<\/p>\n

start \/wait program1.exe<\/p>\n

start \/wait program2.exe<\/p>\n

\u5176\u4e2d\uff0cprogram1.exe\u548cprogram2.exe\u5206\u522b\u4ee3\u8868\u9700\u8981\u6253\u5305\u7684\u4e24\u4e2aexe\u6587\u4ef6\u3002<\/p>\n

3. \u5c06\u4e0a\u8ff0\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\uff0c\u4f8b\u5982pack.bat\u3002<\/p>\n

4. \u5c06pack.bat\u548c\u9700\u8981\u6253\u5305\u7684\u4e24\u4e2aexe\u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n

5. \u4f7f\u7528\u538b\u7f29\u8f6f\u4ef6\uff0c\u4f8b\u5982WinRAR\uff0c\u5c06\u8fd9\u4e2a\u6587\u4ef6\u5939\u538b\u7f29\u6210\u4e00\u4e2azip\u6587\u4ef6\u3002<\/p>\n

\u8fd9\u6837\u5c31\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5305\u542b\u4e24\u4e2aexe\u6587\u4ef6\u548c\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\u7684zip\u6587\u4ef6\uff0c\u7528\u6237\u53ef\u4ee5\u89e3\u538b\u7f29\u8fd9\u4e2azip\u6587\u4ef6\uff0c\u5e76\u8fd0\u884c\u6279\u5904\u7406\u6587\u4ef6\u6765\u540c\u65f6\u8fd0\u884c\u8fd9\u4e24\u4e2a\u7a0b\u5e8f\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u6709\u4e24\u79cd\u65b9\u6cd5\uff0c\u4e00\u79cd\u662f\u4f7f\u7528\u6253\u5305\u5de5\u5177\uff0c\u4f8b\u5982Inno Setup\uff0c\u53e6\u4e00\u79cd\u662f\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u3002\u4f7f\u7528\u6253\u5305\u5de5\u5177\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5b89\u88c5\u7a0b\u5e8f\uff0c\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\u53ef\u4ee5\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u5e76\u538b\u7f29\u6210\u4e00\u4e2azip\u6587\u4ef6\u3002\u65e0\u8bba\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u65b9\u4fbf\u7528\u6237\u540c\u65f6\u4f7f\u7528\u8fd9\u4e24\u4e2a\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u540c\u65f6\u4f7f\u7528\u4e24\u4e2a\u7a0b\u5e8f\uff0c\u4e5f\u53ef\u4ee5\u51cf\u5c11\u7528\u6237\u7684\u4e0b\u8f7d\u548c\u5b89\u88c5\u65f6\u95f4\u3002\u4e0b\u9762\u5c06\u4ecb\u7ecd\u4e24\u79cd\u5c06\u4e24\u4e2aexe\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u7684\u65b9\u6cd5\u3002\u65b9\u6cd5\u4e00\uff1a\u4f7f\u7528\u6253\u5305\u5de5\u5177\u4e00\u79cd\u5c06\u4e24\u4e2aex<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[12474,3428,4286,4110,12],"topic":[],"class_list":["post-28856","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-exeurl","tag-3428","tag-4286","tag-exe","tag-12"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/28856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=28856"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/28856\/revisions"}],"predecessor-version":[{"id":28942,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/28856\/revisions\/28942"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=28856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=28856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=28856"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=28856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}