New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Detecting 64-bit OSExpand / Collapse
Author
Message
Posted 11/24/2009 3:04:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/5/2010 10:09:26 AM
Posts: 9, Visits: 28
I'd like to distinguish not only Windows 7 installations from Windows XP, but also 64-bit installs from 32-bit installs. I tried the following, but it's not working:

IF OSVersion = OS.Version.WinXP
/IP \\server\share\package1.pwc /AllUsers
ELSEIF OSVersion = OS.Version.Win7
IF OSBits = 64-Bit
/IP \\server\share\package2.pwc /AllUsers
ELSEIF OSBits = 32-Bit
/IP \\server\share\package3.pwc /AllUsers
ENDIF
ENDIF

I tried preceding it with /scriptver 5 and putting quotes around the '64-bit' but nothing has worked. There doesn't seem to be an option when editing the package to choose Windows 7 64-bit so it could be limited there (there is for XP but not Vista or Win7).
Post #1824
Posted 11/25/2009 9:23:23 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2/12/2011 11:11:06 PM
Posts: 742, Visits: 1,211
There shouldn't be a hyphen for the 32 and 64 bit area and they are structured a little differently.  Try something like this.


IF OSVersion = OS.Version.WinXP
    /IP \\server\share\package1.pwc /AllUsers
ELSEIF OSVersion = OS.Version.Win7
    IF OSBits = OS.Bits.64Bit
        /IP \\server\share\package2.pwc /AllUsers
    ELSEIF OSBits = OS.Bits.32Bit
        /IP \\server\share\package3.pwc /AllUsers
    ENDIF
ENDIF

Hope this helps resolve your issue.



New Boundary Technologies Support
support@newboundary.com

Post #1825
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:15am

Powered By InstantForum.NET v4.1.3 © 2012
Execution: 0.172. 11 queries. Compression Enabled.