We have now got an Instagram account. If you want to visit SamLogic Software’s Instagram account, click on the link below:
How to run a program with correct bitness (from Visual Installer)
Assume that you have 64 bit version of a program that you want to be run in 64 bit Windows and a 32 bit version of a the same program that you want to be run in 32 bit Windows only. How do you do that from Visual Installer?
That is easy. Use conditional script.
Below we show how the script lines may look like:
// Run only in 32 bit Windows
IF OSBIT=32
RUN %DESTDIR\App32.exe
END IF
// Run only in 64 bit Windows
IF OSBIT=64
RUN %DESTDIR\App64.exe
END IF
IF OSBIT=32
RUN %DESTDIR\App32.exe
END IF
// Run only in 64 bit Windows
IF OSBIT=64
RUN %DESTDIR\App64.exe
END IF
You can use the same method to run an external installation package with a specific bitness. For example a 32 bit installation package in 32 bit Windows only and a 64 bit installation package in 64 bit Windows only.
See also:
> Visual Installer’s Scripting Language
> How to check bitness for an .EXE, .DLL or .OCX file
> How to install a 64 bit program