Inno Setup:x64 vs x86

Inno Setup:x64 vs x86BydefaultInnoSetupalwaysinstallsyourapplicationin32-bitmode.Butifyourapplicationiscompiledto64-bitbinaries(atleast,partly)youwill,probably,wanttouse64-bitmode.Firstthin

大家好,又见面了,我是你们的朋友全栈君。By default Inno Setup always installs your application in 32-bit mode. But if your application is compiled to 64-bit binaries (at least, partly) you will, probably, want to use 64-bit mode. First thing you need to do is to specify ArchitecturesInstallIn64BitMode in [Setup] section:

[Setup]

ArchitecturesInstallIn64BitMode=x64

This means that under 64-bit processor architecture 64-bit mode will be used. You can specify Itanium architecture (ArchitecturesInstallIn64BitMode=ia64) if necessary.

Now imagine you need to use one file for 32-bit mode and another file for 64-bit mode. You can do it in the following way:

[Files]

Source: “OurProgram\Release\shellextension.dll”; DestDir: “{app}”; Flags: regserver ignoreversion; Check: not Is64BitInstallMode;

Source: ” OurProgram \x64\Release\shellextension.dll”; DestDir: “{app}”; Flags: regserver ignoreversion; Check: Is64BitInstallMode;

In the script above we specified to use 32-bit version of shell extension dll in 32-bit mode and 64-bit version of shell extension in 64-bit mode. Other files can be the same for 32-bit and 64-bit modes or different.

Also you can create completely different installers for different architectures. For example, to create installer specially for 64-bit architecture you need to specify:

[Setup]

ArchitecturesAllowed = x64

Other possible values are x86 or ia64. You can specify several values separated by spaces

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/133896.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • VCL控件透明_textbox控件咋设置背景透明

    VCL控件透明_textbox控件咋设置背景透明代码TestPanel=class(Tpanel)publicprocedurePaint;override;end;procedureTestPanel.Paint;varR:TRect;begininherited;R:=ClientRect;DrawParentBackground(Self,Canvas.Hand…

    2022年9月24日
  • [LeetCode] First Bad Version

    [LeetCode] First Bad Version

    2021年9月8日
  • 面试题总结 —— JAVA高级工程师[通俗易懂]

    面试题总结 —— JAVA高级工程师[通俗易懂]面试题总结——JAVA高级工程师近期考虑换工作的问题,于是投简历面试,面试5家公司的高级Java工程师,有4家给了我offer,想着总结一下面试经验,方便最近正在寻求机会的你们一、无笔试题不知道是不是职位原因还是没遇到,面试时,都不需要做笔试题,而是填张个人信息表格,或者直接面试二、三大框架方面问题1、Spring事务的隔离性,并说说每个隔离性的…

    2022年6月14日
  • 职称计算机考试选什么模块,职称计算机考试如何选择模块?

    职称计算机考试选什么模块,职称计算机考试如何选择模块?原标题:职称计算机考试如何选择模块?众所周知,自从2013年开始,已有所增加,模块数理由原来的22个模块增加到26个考试科目。所以,考生可根据自身基础、平时接触多的或兴趣选择报考科目,按规定参加职称计算机考试的人员必须通过规定的模块数量,因各地区政策不同考生具体可登陆当地人事咨询网次查看,为了让考生更好选择职称计算机考试模块。职称计算机考试中心为考生提供如下参考:一、选择模块的原则:首先,根据考生…

    2022年6月2日
  • mvnw的作用_尼康D200色影无忌

    mvnw的作用_尼康D200色影无忌mvnw

    2022年11月3日
  • 警告:为了安全请不要随意将ASP.Net的validateRequest=”false” .

    警告:为了安全请不要随意将ASP.Net的validateRequest=”false” .ASP.Net1.1后引入了对提交表单自动检查是否存在XSS(跨站脚本攻击)的能力。当用户试图用之类的输入影响页面返回结果的时候,ASP.Net的引擎会引发一个HttpRequestValidationExceptioin。默认情况下会返回如下文字的页面:ServerErrorin’/YourApplicationPath’ApplicationApot

    2022年6月5日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号