Announcement

Collapse
No announcement yet.

Detecting a user's OS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Detecting a user's OS

    Before I start, I would just like to say that I'm not very bright !!!

    Can someone please give me the correct code for the following...

    IF user OS = Win95, 98 or ME

    Do 'something'

    ELSE

    Do 'something different'

    End IF

  • #2
    Re: Detecting a user's OS

    You got it right there. Use:

    <font color=blue> IF %IsWin95% OR %IsWin98% OR %IsWinME%</font color=blue>

    Paste this in if you want:<font color=green>
    <IR_ACTIONS_LIST>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%IsWin95% OR %IsWin98% OR %IsWinME%</Condition>
    </Action>
    </IR_ACTIONS_LIST></font color=green>



    the rest is good
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Detecting a user's OS

      Thanks Derek !!!

      To be honest, I thought that I had to use 'OR', but I wasn't entirely sure ( I didn't think that I could use it more than once in the same line ).

      Comment

      Working...
      X