Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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

   
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



This post first appeared on SamLogic Software Blog | A Blog With Information A, please read the originial post: here

Share the post

How to run a program with correct bitness (from Visual Installer)

×

Subscribe to Samlogic Software Blog | A Blog With Information A

Get updates delivered right to your inbox!

Thank you for your subscription

×