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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Qt浅谈之七:抽奖软件(可显示图片和姓名)

    Qt浅谈之七:抽奖软件(可显示图片和姓名)使用Qt设计的一个抽奖软件,可以显示抽奖人员姓名和图片(无图片时只显示姓名),在Windows下和Linux下都能打包运行。可以设置图片滚动的频率。

    2022年10月21日
    0
  • PIN码计算锦集

    PIN码计算锦集

    2021年12月8日
    82
  • Android Service 服务(一)—— Service

    Android Service 服务(一)—— Service

    2021年12月14日
    45
  • oracle number数据类型的精度

    oracle number数据类型的精度1、number(p,s)  p:1—38  s:-84—127  a、s>0(精确到小数点右边s位,并四舍五入。然后检验有效数位是否     例如:number(5,2)有效数字最多是5位,保留小数点后2位;     123.45 — 123.45     123    — 123.00     1.2356 

    2022年7月24日
    68
  • 混沌皇帝系统_时滞系统ppt

    混沌皇帝系统_时滞系统ppt时滞混沌系统时滞混沌系统即具有混沌运动的时滞系统。时滞系统是系统中一处或几处的信号传递有时间延迟的系统。所谓混沌是指具有以下特点的一类现象:由确定性产生;具有有界性;具有非周期性;初始条件具有极端敏感性。时滞系统在工程中.许多动力系统可由状态变量随时间演化的微分方程来描述。随着混沌研究的不断深入,研究人员发现相当一部分动力系统的状态变量之间存在时间滞后现象,即系统的演化趋势不仅与系统当前的状态相关,而且还与过去某一时刻或若干时刻的状态有关。于是将这类动力学系统通称为时滞动力学系统。时滞动力学系统已

    2022年10月1日
    0
  • 十折交叉验证 matlab,Matlab 十折交叉验证

    十折交叉验证 matlab,Matlab 十折交叉验证十折交叉验证(1)英文名叫做10-foldcross-validation,用来测试算法准确性,是常用的测试方法。(2)将数据集分成十份,轮流将其中9份作为训练数据,1份作为测试数据,进行试验。每次试验都会得出相应的正确率(或差错率)。(3)10次的结果的正确率(或差错率)的平均值作为对算法精度的估计,一般还需要进行多次10折交叉验证(例如10次10折交叉验证),再求其均值,作为对算法准确性的估…

    2022年10月23日
    0

发表回复

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

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