Jump to content

x86 or x64 Installs


Recommended Posts

A lot of people seem to still have a large mix of x86 and x64 software and are confused on how to install the correct one. I think I have an idea on how to ease the process:

In Config Wizard I am going to add {x86} and {x64} to the drop-down menu. Use these to specify each installer, make 2 entries, but then no need for Cond statements. Then when starty installing it will check what system you are on and either skip or install the program.

{x86} D:\MyProgram_x86.exe /s

{x64} D:\MyProgram_x64.exe /s

Do everything 32/64 bit specific twice.

Then when start installing, as WPI goes down the list of commands, if find {x86} but on a 64bit system it will skip it. Then if find {x64} it will install it.

WPI will not look ahead and check if they exist. Simple check, skip or install.

You can still do 32/64 checks in Conds to hide the items altogether still. This will help make it a bit easier.

Sound like a simple/good enough approach?

Link to comment
Share on other sites


It is done. Here is the ChangeLog.txt instructions:

People still have a mix of x86 and x64 software and are running into

issues with installing the proper architecture version. Now in Config

Wizard -> menu -> Other there is a new Architecture item.

Instead of creating two entries for each program with conditions to hide

it depending on x86 or x64, do it this way as a shortcut:

When adding items in the Config Wizard, if needed, double the entries

for the install program:

{x86} D:\MyProgram_x86.exe /s

{x64} D:\MyProgram_x64.exe /s

When start the installer and it comes to these entries, WPI will check

the architecture bits (32 or 64) and either skip the entry or install

it like normal.

It will say Skipped when not on the right architecture.

This is only needed if the install package doesn't have both versions in

it and checks itself for which to use.

This method will reduce the number of entries and not require any

condition statements.

If you have any other ideas for it, please post them.

Link to comment
Share on other sites

Nice

Hey m I use the following "grayed condition" so that it will work on both x86/64 and it will be gray if the file exists in %ProgramFiles% or %ProgramFiles(x86)% with a equal or greater file version...does it look good to you?

getFileVersion("%ProgramFiles%\Java\jre6\bin\java.exe")>="6.0.230.5"||getFileVersion("%ProgramFiles(x86)%\Java\jre6\bin\java.exe")>="6.0.230.5"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...