Expand an x86 .exe to 'C:\Windows\System32' under both Windows x86 and x64?

前端 未结 1 1189
挽巷
挽巷 2021-01-17 06:11

I would like to make my installer compatible under both x86/x64 windows, this means portable.

I did the innosetup installer only to

相关标签:
1条回答
  • 2021-01-17 06:36

    Answered in parts like your question:

    1. ArchitecturesInstallIn64BitMode

      Valid values: One or more of the following, separated by spaces:

      • x64
      • ia64

    Default value: (blank)

    Description: Specifies the 64-bit processor architecture(s) on which Setup should install in 64-bit mode. If this directive is not specified or is blank, Setup will always install in 32-bit mode. Normally, you should not change this directive from its default value unless your application contains native 64-bit binaries.

    You have a x86 exe binary so leave the field blank.

    1. Source (Required)

    Description: The name of the source file. The compiler will prepend the path of your installation's source directory if you do not specify a fully qualified pathname.

    Example:

    Source: "My_x86_application.EXE"
    

    Leaving it without any path like the entry above might be optimal (for small projects, because it messes the files to be deployed with the setup script). Also, beware that Constants may only be used when the external flag is specified, because the compiler does not do any constant translating itself. So, the following entry:

    Source: {sys}\My_x86_application.exe; DestDir: {sys}
    

    actually expects to have the binary stored in the {sys} subfolder of a directory with the setup script. If that would not be so, the compilation fails.

    1. DestDir (Required)

    I think you can specify System32 always using {win}\System32. Since both x86 and x64 version of Windows contain the System32 directory.

    1. For the Flags and further doubt clarification visit this page.

    EDIT: Save the iss file in the same folder where your x86 exe binary exists. Then Run it.

    0 讨论(0)
提交回复
热议问题