Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Help with conditions

- - - - - condition getOSver

  • Please log in to reply
8 replies to this topic

#1
aaronpriest

aaronpriest
  • Member
  • 6 posts
  • Joined 04-November 11
  • OS:Windows 7 x64
  • Country: Country Flag

Can someone help me with this condition line? I'm trying to install Flash for IE on every operating system but Windows 8 or 8.1, and I just can't get it to work now that I have to exclude both 8 and 8.1:

cond[pn]=['getBits()==64 && (getOSver()!="Win8" || getOSver()!="Win8.1") && getFileVersion("%WinDir%\\System32\\Macromed\\Flash\\FlashUtil64_13_0_0_214_ActiveX.exe")!="13.0.0.214"'];

Thanks!




How to remove advertisement from MSFN

#2
Flasche

Flasche

    A bottled message!!

  • Member
  • PipPipPipPip
  • 594 posts
  • Joined 20-January 14
  • OS:ME
  • Country: Country Flag

Can someone help me with this condition line? I'm trying to install Flash for IE on every operating system but Windows 8 or 8.1, and I just can't get it to work now that I have to exclude both 8 and 8.1:

cond[pn]=['getBits()==64 && (getOSver()!="Win8" || getOSver()!="Win8.1") && getFileVersion("%WinDir%\\System32\\Macromed\\Flash\\FlashUtil64_13_0_0_214_ActiveX.exe")!="13.0.0.214"'];

Thanks!

 

Windows 8 and 8.1 have flash built into them https://forums.adobe...message/4814662 so I dont see why you are trying to avoid installation on them.


Seeker Of Truth by E. E. Cummings                                                                                           Quote (Me)

  • seeker of truth                                                 "If you want to reach and discover the true meaning of order; You must go through chaos first."            344d0f9.jpg
  • follow no path                                 
  • all paths lead where
  • truth is here
 

#3
aaronpriest

aaronpriest
  • Member
  • 6 posts
  • Joined 04-November 11
  • OS:Windows 7 x64
  • Country: Country Flag

Because it is unnecessary to update, and I want it excluded from the list of things to update on those two operating systems rather than showing a checkbox that it has to be updated. When I only had to exclude Win8 it worked fine, but I'm unsure how to exclude both. I tried putting an or condition in parenthesis, but it didn't work.


Edited by aaronpriest, 18 May 2014 - 09:25 AM.


#4
aaronpriest

aaronpriest
  • Member
  • 6 posts
  • Joined 04-November 11
  • OS:Windows 7 x64
  • Country: Country Flag

*bump*



#5
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,821 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
Two command lines?

#6
aaronpriest

aaronpriest
  • Member
  • 6 posts
  • Joined 04-November 11
  • OS:Windows 7 x64
  • Country: Country Flag

Two command lines?

 

I'm trying to follow... wouldn't that mean one would always show up in the other OS since I'm trying to exclude just two? I might just set it to look for Win8.1 and remove the Win8 detection since I only have 1 computer I have to keep at Win8 for USB driver support for one device (8.1 changed something funky with USB drivers for some devices).



#7
gilles_gros

gilles_gros

    Newbie

  • Member
  • 13 posts
  • Joined 25-August 06

Hi,

 

If I get it correctly,when OSver = Win8, then 

             getOSver()!="Win8" || getOSver()!="Win8.1"

is true, because False or True ==> True

 

I think you need to write

            getOSver()!="Win8" && getOSver()!="Win8.1"

 

 

Regards.

 

Gilles



#8
aaronpriest

aaronpriest
  • Member
  • 6 posts
  • Joined 04-November 11
  • OS:Windows 7 x64
  • Country: Country Flag

Well, DUH! Of course that worked fine, thanks!!! These multiple ands, ors, and nots, get me so tripped up. :-P



#9
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,309 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
I use this condition to install on anything equal or under 6.1 in my Flash ActiveX in WPI
 
getOSvernum()<="6.1"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users