[{"data":1,"prerenderedAt":107},["ShallowReactive",2],{"navigation":3,"post-\u002Fposts\u002F2015\u002Fvs2015-installer-not-work-in-windows-xp":20,"surroundPosts-\u002Fposts\u002F2015\u002Fvs2015-installer-not-work-in-windows-xp":95},[4,8,12,16],{"title":5,"path":6,"stem":7},"首页","\u002F","00.index",{"title":9,"path":10,"stem":11},"文章","\u002Fposts","01.posts",{"title":13,"path":14,"stem":15},"动态","\u002Fmoments","02.moments",{"title":17,"path":18,"stem":19},"关于","\u002Fabout","09.about",{"id":21,"title":22,"body":23,"class":77,"cover":77,"coverSize":77,"date":78,"description":74,"draft":79,"extension":80,"hideComments":79,"location":77,"meta":81,"navigation":82,"path":83,"readingTime":84,"seo":89,"sitemap":90,"stem":91,"tags":92,"time":77,"weather":77,"__hash__":94},"posts\u002Fposts\u002F2015\u002F20150730.vs2015-installer-not-work-in-windows-xp.md","VS2015 打包程序无法在 XP 下安装的问题",{"type":24,"value":25,"toc":73},"minimark",[26,30,42,45,61,64],[27,28,29],"h4",{"id":29},"问题描述",[31,32,33,34,41],"p",{},"最近有个需求，需要做一个 WinForm 程序，目标机器基本都是比较旧的 XP 机器。需要安装.net Framework 环境以及添加快捷方式等，所以决定做一个安装程序。VS 默认的是推荐使用 InstallShield Limited Edition，经过尝试，发现实在不好用，而且 Limited 版还有不少限制。于是想用以前 VS 版本中的 Installer Project。寻找了一下，发现有 2015 版的插件（",[35,36,40],"a",{"href":37,"rel":38,"title":40},"https:\u002F\u002Fvisualstudiogallery.msdn.microsoft.com\u002F003f3135-bbca-4eb2-951d-88820065a124",[39],"nofollow","Microsoft Visual Studio 2015 Installer Projects","）。其他都很顺利，在 Win7、Win8.1、Win10 中安装都没有问题。唯独当我不远万里来到目标机器的时候，发现在 XP 系统上安装失败！安装程序莫名退出。纠结了几天，最终在网上搜到了解决方案。原因是这样，在 VS2010 之后的 VS 中，dpca.dll 这个文件中最低的 Windows 版本已经不支持 XP 了，导致在用 2010 以上的 VS 版本打包的安装包在 XP 上总是失败的。",[27,43,44],{"id":44},"解决方法",[46,47,48,52,55,58],"ol",{},[49,50,51],"li",{},"关闭 Visual Studio",[49,53,54],{},"从 C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\Deployment 中复制 dpca.dll 文件到 C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\VSI\\bin 中替换。（需要找仍在使用 VS2010 的小伙伴）",[49,56,57],{},"打开项目",[49,59,60],{},"重新编译",[27,62,63],{"id":63},"相关文章",[65,66,67],"ul",{},[49,68,69],{},[35,70,71],{"href":71,"rel":72},"http:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F23978677\u002Fdirca-checkfx-return-value-3-vs-2013-deployment-project\u002F26039835#26039835",[39],{"title":74,"searchDepth":75,"depth":75,"links":76},"",2,[],null,"2015-07-30",false,"md",{},true,"\u002Fposts\u002F2015\u002Fvs2015-installer-not-work-in-windows-xp",{"text":85,"minutes":86,"time":87,"words":88},"2 min read",1.535,92100,307,{"title":22,"description":74},{"loc":83},"posts\u002F2015\u002F20150730.vs2015-installer-not-work-in-windows-xp",[93],"技术","Ob4Rr7jHjaNgJr3C-lx-SBaU2vyctrv4qRoVaWyKZf4",[96,101],{"title":97,"path":98,"stem":99,"date":100,"description":74,"children":-1},"微信公众号中更换域名","\u002Fposts\u002F2015\u002Fchange-domain-in-weixin","posts\u002F2015\u002F20150820.change-domain-in-weixin","2015-08-20",{"title":102,"path":103,"stem":104,"date":105,"description":106,"children":-1},"再见，新蛋","\u002Fposts\u002F2015\u002Fgood-bye-newegg","posts\u002F2015\u002F20150520.good-bye-newegg","2015-05-20","最近开始变得敏感起来。上班路上，我开始变得格外注意窗外的风景。因为我知道，以后我将不会每天再走在这条熟悉的路上了。",1777580285927]