Announcement

Collapse
No announcement yet.

Determining if the user is running windows 98SE and NOT windows 98?

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

  • Determining if the user is running windows 98SE and NOT windows 98?

    Howdy,

    In order to install the correct windows media player. I need to determine if the user is running windows 98SE or greater.

    The isWin98 function, I assume, returns back true if the user is running windows 98. What is returned if the user is running windows 98SE?

    How do I go about determining if the user is running windows 98SE?

    thanks,

    rise4peace

  • #2
    Re: Determining if the user is running windows 98SE and NOT windows 98?

    you could do this,
    on Initialize>>file.execute>>%WinDir%\command.com>>ar guments>>/c ver >%WinDir%\version.txt(wait)
    Then
    Text File.Read %WinDir%\version.txt >> result to variable %WinVer%
    To test , put a text object somewhere, and assign it %WinVer%, should display the current Windows version, either "Windows 98 version4.10.1998" or "Windows 98 version4.10.2222" for Second Edition.
    I don't know if it is possible to have the Command.com pass the Info back to AMS instead of the text file first??

    Comment


    • #3
      Re: Determining if the user is running windows 98SE and NOT windows 98?

      What is it you intend to do which is supported on Win98SE but not on Win98?

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: Determining if the user is running windows 98SE and NOT windows 98?

        The latest version Windows Media Player, version 9, supports Windows 98SE and above. Windows 98 only supports Windows Media Player 7.1 and earlier.

        I need to determine if the user is running windows 98se so I don't have them install something that could possibly damage their system.

        Comment


        • #5
          Re: Determining if the user is running windows 98SE and NOT windows 98?

          That's great but I still want to be able to launch the correct Media Player installer for the correct version of the windows 98 platform.

          How can this be accomplished without a %IsWin98SE% function?

          Comment


          • #6
            Re: Determining if the user is running windows 98SE and NOT windows 98?

            Well I'm not sure how to detect that other than asking the user or checking for the presence of some file or other which is exclusive to either system, but you don't have to worry about harming their system, the MS installer won't install on an unsupported OS.

            If 98SE has some capabilities which 98 doesn't then there must be certain system files which are unique to 98SE, no? Check for the presence of one of those files if %isWin98% is true and then you'll know if it's 98SE...

            Besides why not just use the lower installer for both, if it's all you need, then why bother with WMP 9 at all?

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Determining if the user is running windows 98SE and NOT windows 98?

              I'm with you on the installing of the earlier WMP version. In fact that's what I am going to do. Time is running out on this project.

              The only problem I may run into is having a client get all up in arms because we're not offering the latest version of WMP 9.

              What are the chances of future releases of AutoPlay having a %IsWin98SE% function added to it?

              Comment


              • #8
                Re: Determining if the user is running windows 98SE and NOT windows 98?

                OK here I whipped up a file for you, tests for and displays either 98 or 98SE:

                http://www.indigorose.com/temp_web/OStest.zip

                Might be a more elegant way to do it but at least this way is quick and reliable and you don't have to create any extra files, although I thought Option Explicit's way was cool too.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Determining if the user is running windows 98SE and NOT windows 98?

                  Thanks Corey. I appreciate your help.

                  Comment


                  • #10
                    Re: Determining if the user is running windows 98SE and NOT windows 98?

                    Moo.




                    Corey Milner
                    Creative Director, Indigo Rose Software

                    Comment


                    • #11
                      Re: Determining if the user is running windows 98SE and NOT windows 98?

                      Corey
                      I noticed you use %IsWin98% = "TRUE"
                      is it neccessary to include "TRUE" after the %IsWin98% as a condition?
                      I've been always using it as a stand alone ex:
                      IF %IsWin98% OR %IsWinMe%
                      Do this
                      END IF
                      Am I missing something?

                      Comment


                      • #12
                        Re: Determining if the user is running windows 98SE and NOT windows 98?

                        Nope, you're 100% correct. I just try to make things as explicitly obvious as possible when I post examples. Easier to learn from. As *an educator* I'm starting to zero in on little things like that which make it easier for everyone to learn fast, which is my goal. The faster the better. I've noticed better results when I do things like that or for example using 2 IFs instead of an IF and an ELSE, etc. I think it's because it makes it easier to see what's going on at a glance for most folks...

                        I figure the experts such as yourself will realize there's a more elegant way to write the code anyhow... [img]/ubbthreads/images/icons/smile.gif[/img]

                        Corey Milner
                        Creative Director, Indigo Rose Software

                        Comment

                        Working...
                        X