mritter Posted November 23, 2010 Share Posted November 23, 2010 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 /sDo 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 More sharing options...
mritter Posted November 23, 2010 Author Share Posted November 23, 2010 It is done. Here is the ChangeLog.txt instructions:People still have a mix of x86 and x64 software and are running intoissues with installing the proper architecture version. Now in ConfigWizard -> menu -> Other there is a new Architecture item.Instead of creating two entries for each program with conditions to hideit depending on x86 or x64, do it this way as a shortcut:When adding items in the Config Wizard, if needed, double the entriesfor the install program:{x86} D:\MyProgram_x86.exe /s{x64} D:\MyProgram_x64.exe /sWhen start the installer and it comes to these entries, WPI will checkthe architecture bits (32 or 64) and either skip the entry or installit 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 init and checks itself for which to use.This method will reduce the number of entries and not require anycondition statements.If you have any other ideas for it, please post them. Link to comment Share on other sites More sharing options...
ricktendo Posted November 24, 2010 Share Posted November 24, 2010 NiceHey 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 More sharing options...
mritter Posted November 24, 2010 Author Share Posted November 24, 2010 Looks good to me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now