Can I create a 64-bit install using pure InstallScript?
Technically, no, you cannot create the 64-bit InstallSciprt Setup.EXE. Setup.EXE is a 32 bit application, but I don't think that's exactly what you asked for.
I think you were asking if you can create an InstallScript package that can run native 64-bit registry / filesystem commands, and the answer to that is yes.
In the registry you specifically asked about, see: REGDB_OPTIONS
Add an option REGDB_OPTION_WOW64_64KEY
and then you can call the registry functions as usual, but they will work in a 64-bit section of the registry. To revert to 32-bit, remove the option REGDB_OPTION_WOW64_64KEY
.
source to share
When using REGDB_OPTION_WOW64_64KEY, be sure to remove the parameter before leaving your function, as this may result in setup.exe not generating an uninstall log in some versions of InstallShield; so while your setup.exe can run uninstall it will leave all files on the system because it doesn't create Setup.ilg file
start:
if (SYSINFO.bIsWow64) then
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;
endif;
end:
if (SYSINFO.bIsWow64) then
REGDB_OPTIONS = REGDB_OPTION_USE_DEFAULT_OPTIONS;
endif;
source to share