Can I create a 64-bit install using pure InstallScript?

Can I create 64-bit setup.exe file using InstallScript project in InstallShield 2009? The documentation only deals with msi projects. Or tell me an alternative way to use 64-bit registry keys, please.

+2


source to share


2 answers


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

.

+3


source


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;

      

+1


source







All Articles