MSFN Forum: 32/64bit installer - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

32/64bit installer Rate Topic: -----

#1 User is offline   richy759 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 09-July 04

Posted 11 January 2009 - 11:59 AM

I have done some searching but not found the answer I am looking for, I am a bit of a noob so bear with me

Is there a way to have a different installer run for a 32 or 64 bit operating system.

for example

IF /i %PROCESSOR_ARCHITECTURE%==AMD64
cmds[pn]=['%CDROM%\\Apps\\\setup64.exe /qn'];
ELSE
cmds[pn]=['%CDROM%\\Apps\\setup.exe /qn'];

is it even possible to put expressions round the installer parameters? or am I barking up the wrong tree?

or are you supposed to split the config file into 2 parts, 1 for 32 bit and 1 for 64bit.

I haven't found many examples of the use of the above expression.

Cheers,
Rich


#2 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 11 January 2009 - 12:35 PM

There is a way to check if on a 64bit system, but you need to do some checking.

getmshtaBits()==64 WPI started on a 64bit computer AND using the 64bit MSHTA.exe

getBits()==64 Computer is 32/64bits. Not necessarily need to check MSHTA.exe

There is no if/else way to do it. Have to use Conditions and may have to make 2 entries, 1 for 32 and 1 for 64 bit, do check and exclude the other.

#3 User is offline   richy759 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 09-July 04

Posted 11 January 2009 - 04:49 PM

ok thanks. Are there any plans to expand on this?

Rich

#4 User is offline   richy759 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 09-July 04

Posted 12 January 2009 - 07:17 AM

Ignore me, I didn't realise that the app wouldn't be shown on the main page if the conditions weren't met.

lovely stuff,
Rich

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy