I would like to make my installer compatible under both x86/x64 windows, this means portable.
I did the innosetup installer only to
Answered in parts like your question:
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.
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.
DestDir
(Required)I think you can specify System32 always using {win}\System32
. Since both x86 and x64 version of Windows contain the System32 directory.
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.