{"id":3077,"date":"2020-04-17T16:58:42","date_gmt":"2020-04-17T08:58:42","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=3077"},"modified":"2020-04-17T16:58:42","modified_gmt":"2020-04-17T08:58:42","slug":"tont-36053-%e7%a8%8b%e5%ba%8f%e5%90%91%e4%bd%a0%e8%b7%91%e5%87%ba%e4%ba%86%e4%b8%80%e4%b8%aa%e9%97%ae%e9%a2%98%ef%bc%8c%e4%bd%86%e5%a6%82%e6%9e%9c%e4%bd%9c%e7%ad%94%e7%9a%84%e8%af%9d%e5%b0%b1%e4%bc%9a","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/3077","title":{"rendered":"TONT 36053 \u7a0b\u5e8f\u5411\u4f60\u629b\u51fa\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u4f46\u5982\u679c\u4f5c\u7b54\u7684\u8bdd\u5c31\u4f1a\u7206\u70b8"},"content":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20050328-00\/?p=36053\" target=\"_blank\" rel=\"noopener\">https:\/\/devblogs.microsoft.com\/oldnewthing\/20050328-00\/?p=36053<\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/jeffdav\/archive\/2004\/10\/04\/237816.aspx\" target=\"_blank\" rel=\"noopener\">JeffDav\u2019s story of a program that didn\u2019t like it when he told it where to install<\/a> reminded me of another program that we dealt with during Windows 95 development.<\/p>\n<p>JeffDav \u4e0a\u90a3\u7bc7\u5173\u4e8e\u67d0\u4e2a\u4e0d\u559c\u6b22\u88ab\u7528\u6237\u6307\u5b9a\u5b89\u88c5\u4f4d\u7f6e\u7684\u7a0b\u5e8f\u7684\u6545\u4e8b\uff0c\u8ba9\u6211\u60f3\u8d77\u6211\u4eec\u5728 Windows 95 \u5f00\u53d1\u8fc7\u7a0b\u4e2d\u66fe\u7ecf\u9762\u5bf9\u7684\u53e6\u4e00\u4e2a\u7a0b\u5e8f\u3002<\/p>\n<p>This was a big-name program developed by one of the biggest-of-the-big name software companies. Let\u2019s give this program the imaginary name \u201cLitWare\u201d. Its setup program asked you where you wanted the program to be installed, and it suggested \u201cC:\\LITWARE\u201d. If you accepted the default, then everything proceeded normally.<\/p>\n<p>\u90a3\u4e2a\u7a0b\u5e8f\u662f\u67d0\u4e2a\u9876\u5c16\u6709\u540d\u7684\u5927\u516c\u53f8\u5f00\u53d1\u7684\u67d0\u4e2a\u5927\u54c1\u724c\uff0c\u8fd9\u91cc\u6211\u4eec\u5148\u7ed9\u5b83\u8d77\u4e2a\u865a\u6784\u7684\u540d\u5b57\uff0c\u53eb LitWare\u3002\u8fd9\u4e2a\u5e94\u7528\u7684\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u8be2\u95ee\u4f60\u8981\u5c06\u5176\u5b89\u88c5\u5230\u54ea\u4e2a\u4f4d\u7f6e\uff0c\u5e76\u987a\u5e26\u5efa\u8bae\u5b89\u88c5\u5230\u300eC:\\LITWARE\u300f\u3002\u5982\u679c\u4f60\u76f4\u63a5\u91c7\u7eb3\u8fd9\u4e2a\u9ed8\u8ba4\u503c\uff0c\u90a3\u4e48\u4e00\u5207\u90fd\u4f1a\u5f88\u987a\u5229\u3002<\/p>\n<p>However, if you changed the default to anything else, the setup program ran to completion, but the program itself wouldn\u2019t run.<\/p>\n<p>\u7136\u800c\uff0c\u5982\u679c\u4f60\u628a\u8fd9\u4e2a\u9ed8\u8ba4\u503c\u6539\u6210\u5176\u5b83\u7684\u8def\u5f84\uff0c\u90a3\u4e48\u867d\u7136\u53ef\u4ee5\u5b8c\u6210\u5b89\u88c5\uff0c\u4f46\u7a0b\u5e8f\u672c\u8eab\u5219\u65e0\u6cd5\u542f\u52a8\u3002<\/p>\n<p>Because the program contained the hard-coded path \u201cC:\\LITWARE\u201d and insisted that it find its support files in that directory.<\/p>\n<p>\u56e0\u4e3a\u7a0b\u5e8f\u91cc\u5c06\u8def\u5f84\u300eC:\\LITWARE\u300f\u8fdb\u884c\u4e86\u786c\u7f16\u7801\uff0c\u5e76\u575a\u6301\u5728\u90a3\u4e2a\u8def\u5f84\u4e0b\u9762\u5bfb\u627e\u7a0b\u5e8f\u7684\u652f\u6301\u6587\u4ef6\u3002<\/p>\n<p>At least Jeff\u2019s program realized that it was about to be installed into a directory where it would fail to work!<\/p>\n<p>\u81f3\u5c11 Jeff \u63d0\u5230\u7684\u90a3\u4e2a\u7a0b\u5e8f\u8fd8\u6653\u5f97\u81ea\u5df1\u8981\u88ab\u5b89\u88c5\u5230\u4f1a\u9020\u6210\u5b83\u6ca1\u6cd5\u5de5\u4f5c\u7684\u76ee\u5f55\u91cc\u53bb\u5462\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u9644\uff1a\u6587\u7ae0\u5f00\u5934\u63d0\u5230\u7684 JeffDav \u4e0a\u7684\u6587\u7ae0\uff1a\u300a\u5b89\u88c5\u7684\u9ebb\u70e6\u300b\uff08Installation woes\uff09<\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/docs.microsoft.com\/en-us\/archive\/blogs\/jeffdav\/installation-woes\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.microsoft.com\/en-us\/archive\/blogs\/jeffdav\/installation-woes<\/a><\/p>\n<p>After successfully getting Windows XP SP2 installed on my laptop, I started installing other software.<\/p>\n<p>\u5728\u6210\u529f\u628a Windows XP SP2 \u5b89\u88c5\u5230\u6211\u7b14\u8bb0\u672c\u4e0a\u4e4b\u540e\uff0c\u6211\u5f00\u59cb\u5b89\u88c5\u5176\u5b83\u7684\u7a0b\u5e8f\u3002<\/p>\n<p>This post has nothing to do with IE, but I need to vent.<\/p>\n<p>\u8fd9\u7bc7\u535a\u6587\u8ddf IE \u6ca1\u4ec0\u4e48\u5173\u7cfb\uff0c\u4f46\u6211\u8fd8\u662f\u5f97\u53d1\u6cc4\u4e00\u4e0b\u3002<\/p>\n<p>Nameless 3rd Party App: Where do you want to install me? How about c:\\nameless?<\/p>\n<p>\u67d0\u7b2c\u4e09\u65b9\u5e94\u7528\uff1a\u4f60\u8981\u628a\u6211\u5b89\u88c5\u5230\u4ec0\u4e48\u5730\u65b9\uff1fC:\\nameless \u8fd9\u4e2a\u8def\u5f84\u600e\u4e48\u6837\uff1f<\/p>\n<p>Jeffdav: How about c:\\program files\\nameless?<\/p>\n<p>Jeffdav\uff1aC:\\Program Files\\nameless \u600e\u4e48\u6837\uff1f<\/p>\n<p>Nameless 3rd Party App: It is a bad idea to install me somewhere with spaces in the path. Continue anyway?<\/p>\n<p>\u67d0\u7b2c\u4e09\u65b9\u5e94\u7528\uff1a\u628a\u6211\u88c5\u5230\u8def\u5f84\u91cc\u6709\u7a7a\u683c\u7684\u4f4d\u7f6e\u53ef\u4e0d\u662f\u4e2a\u597d\u4e3b\u610f\uff0c\u8fd8\u662f\u8981\u7ee7\u7eed\u5417\uff1f<\/p>\n<p>Jeffdav: No. Lame. At least it knows it is lame and told me while I still have a chance to do something about it.<\/p>\n<p>Jeffdav\uff1a\u4e0d\uff0c\u7b97\u4e86\u5427\u3002\u81f3\u5c11\u5b83\u8fd8\u77e5\u9053\u8fd9\u6837\u4f1a\u51fa\u4e8b\uff0c\u628a\u8fd9\u4ef6\u4e8b\u544a\u8bc9\u4e86\u6211\uff0c\u8ba9\u6211\u8fd8\u6709\u673a\u4f1a\u505a\u70b9\u6539\u53d8\u3002<\/p>\n<p>Jeffdav: Okay, fine, c:\\nameless.<\/p>\n<p>Jeffdav\uff1a\u884c\u5427\uff0c\u90a3\u5c31\u8fd9\u6837\uff0cC:\\nameless\u3002<\/p>\n<p>\uff08\u8bd1\u6ce8\uff1a\u4e0b\u9762\u662f\u53e6\u4e00\u4e2a\u6545\u4e8b\uff09<\/p>\n<p>Nameless Microsoft App: Installing&#8230;<\/p>\n<p>\u67d0\u5fae\u8f6f\u5e94\u7528\uff1a\u6b63\u5728\u5b89\u88c5\u2026\u2026<\/p>\n<p>Nameless Microsoft App: Installing&#8230; &lt;30 minutes later&gt;<\/p>\n<p>\u67d0\u5fae\u8f6f\u5e94\u7528\uff1a\u6b63\u5728\u5b89\u88c5\u2026\u2026\uff0830\u5206\u949f\u4e4b\u540e\uff09<\/p>\n<p>Microsoft Windows: You have lost your connection to the wireless LAN! (I was walking to a meeting.)<\/p>\n<p>Windows\uff1a\u65e0\u7ebf\u7f51\u7edc\u8fde\u63a5\u4e0d\u53ef\u7528\uff01\uff08\u6211\u6b63\u5728\u7aef\u7740\u7b14\u8bb0\u672c\u53bb\u5f00\u4f1a\u7684\u8def\u4e0a\uff09<\/p>\n<p>Nameless Microsoft App: Internal Error 3452. [OK]<\/p>\n<p>\u67d0\u5fae\u8f6f\u5e94\u7528\uff1a\u5185\u90e8\u9519\u8bef3452\u3002\uff08\u70b9OK\uff09<\/p>\n<p>Microsoft Windows: You have reconnected to the wireless LAN!<\/p>\n<p>Windows\uff1a\u65e0\u7ebf\u7f51\u7edc\u5df2\u8fde\u63a5\uff01<\/p>\n<p>Jeffdav: &lt;clicks OK&gt;<\/p>\n<p>Jeffdav\uff1a\uff08\u70b9OK\uff09<\/p>\n<p>Nameless Microsoft App: Uninstalling&#8230;<\/p>\n<p>\u67d0\u5fae\u8f6f\u5e94\u7528\uff1a\u6b63\u5728\u5378\u8f7d\u2026\u2026<\/p>\n<p>Nameless Microsoft App: Thanks for playing. Please start from the beginning again.<\/p>\n<p>\u67d0\u5fae\u8f6f\u5e94\u7528\uff1a\u80dc\u8d25\u4e43\u5175\u5bb6\u5e38\u4e8b\uff0c\u5927\u4fa0\u8bf7\u91cd\u65b0\u6765\u8fc7\u3002<\/p>\n<p>Of course I did have success stories. Windows was easy to install off the slipstream CD. Putty, as always, was easy to install since setup for putty is simply xcopy.<\/p>\n<p>\u5f53\u7136\u6211\u4e5f\u6210\u529f\u5b89\u88c5\u8fc7\u5176\u5b83\u7684\u7a0b\u5e8f\u3002Windows \u4ece\u6574\u5408\u597d\u7684\u5149\u76d8\u4e0a\u5b89\u88c5\u5f88\u7b80\u5355\u3002Putty \u5219\u662f\u4e00\u5982\u65e2\u5f80\u7684\u7b80\u5355\uff0c\u6bd5\u7adf\u53ea\u662f\u4e00\u884c xcopy \u7684\u4e8b\u3002<\/p>\n<p>The moral of this story, I guess, is that Setup is Hard.<\/p>\n<p>\u6211\u60f3\uff0c\u8fd9\u4e2a\u6545\u4e8b\u7684\u5bd3\u610f\u5927\u6982\u662f\uff0c\u5b89\u88c5\u8fd9\u4ef6\u4e8b\u771f\u96be\u554a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/devblogs.microsoft.com\/oldnewthing\/2005032 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3077","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/3077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/comments?post=3077"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/3077\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=3077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=3077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}