Results 1 to 4 of 4

Thread: Conditional Installation

  1. #1
    Senior Member
    Join Date
    Feb 2009
    Location
    Castle Gresley
    Posts
    628
    Thanks
    28
    Thanked
    18 times in 18 posts
    • marshalex's system
      • Motherboard:
      • Asus P6T bios 1303
      • CPU:
      • Intel Core i7 920 @ 3.8Ghz
      • Memory:
      • 12GB Kingston Hyper X DDR3 1600MHz
      • Storage:
      • Samsung 840, WD Caviar Black 640Gb, WD Caviar Blue 1TB
      • Graphics card(s):
      • XFX Radeon HD 6950 XXX @915 MHz
      • PSU:
      • Antec TruePower New 650W
      • Case:
      • Coolermaster CM690
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • Dell ST2210
      • Internet:
      • Sky Fibre 38MB

    Conditional Installation

    Hi All

    Was wondering if anyone knew of a way of scripting an installation so that if for example a machine is 32 bit it will call a script to install the 32 bit software and if it isn't will run the installer for the 64 bit software? I'm trying to make a script to deploy lync at work and have got a bit stuck with this part. I thought about trying to do it using wmic an the OSArchitecture option in the os get query, however this doesn't exist in windows xp pro sp3. Any suggestions/resources welcome!

    thanks

  2. #2
    jim
    jim is offline
    HEXUS.clueless jim's Avatar
    Join Date
    Sep 2008
    Location
    Location: Location:
    Posts
    11,457
    Thanks
    613
    Thanked
    1,645 times in 1,307 posts
    • jim's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • i5 2500K @ 4.5GHz
      • Memory:
      • 8GB Corsair Vengeance LP
      • Storage:
      • 1TB Sandisk SSD
      • Graphics card(s):
      • ASUS GTX 970
      • PSU:
      • Corsair AX650
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • 8.1 Pro
      • Monitor(s):
      • Dell S2716DG
      • Internet:
      • 10 Mbps ADSL

    Re: Conditional Installation

    I believe the easiest way is to check for a C:\Program Files (x86)\ directory - if one is present, it's an x64 system.

  3. #3
    Senior Member
    Join Date
    Feb 2009
    Location
    Castle Gresley
    Posts
    628
    Thanks
    28
    Thanked
    18 times in 18 posts
    • marshalex's system
      • Motherboard:
      • Asus P6T bios 1303
      • CPU:
      • Intel Core i7 920 @ 3.8Ghz
      • Memory:
      • 12GB Kingston Hyper X DDR3 1600MHz
      • Storage:
      • Samsung 840, WD Caviar Black 640Gb, WD Caviar Blue 1TB
      • Graphics card(s):
      • XFX Radeon HD 6950 XXX @915 MHz
      • PSU:
      • Antec TruePower New 650W
      • Case:
      • Coolermaster CM690
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • Dell ST2210
      • Internet:
      • Sky Fibre 38MB

    Re: Conditional Installation

    Quote Originally Posted by snootyjim View Post
    I believe the easiest way is to check for a C:\Program Files (x86)\ directory - if one is present, it's an x64 system.
    Thats what i've done but using the syswow64 folder. thought there might be a 'cleverer' way of doing it using wmi but that seems to have done the job!

  4. #4
    Registered+
    Join Date
    May 2007
    Posts
    19
    Thanks
    0
    Thanked
    2 times in 2 posts

    Re: Conditional Installation

    You can also pull the OS caption string from WMI and deduce it from that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hard drive installation
    By unclecrash in forum Help! Quick Relief From Tech Headaches
    Replies: 3
    Last Post: 08-02-2008, 05:37 PM
  2. Replies: 14
    Last Post: 16-12-2007, 12:22 PM
  3. IP-35 Pro - JMicron Installation Disk
    By Taz in forum abit.care@HEXUS
    Replies: 8
    Last Post: 19-11-2007, 02:23 AM
  4. Windows Installation Fatal Error
    By Weng in forum Software
    Replies: 23
    Last Post: 16-10-2004, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •