Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Posts
    355

    Detect all version of Windows Vista?

    please one example for detect all version of the windows vista whit autoplay media studio 6.0.5.0?



    if (sOSName == "Windows Vista") then
    Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");
    end

    but detect if is:

    Ultimate version
    Home Basic
    Home Premium
    Business
    or Enterprise

    please one example thx!!!!!!!!!!!!!!!!!!!!!!!!!!

  2. #2
    Join Date
    Aug 2006
    Posts
    355

    Thumbs down

    Please help!!!!!!!!!!!!!!!!!!!!!!!!! one exampleeeeeeeee!!!!!!!!!!!!

    Code:
    sOSName = System.GetOSName();
    tOSVersionInfo = System.GetOSVersionInfo();
    sOSServicePack = tOSVersionInfo.CSDVersion;
    
    if (sOSName == "Windows Vista") then
    Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");
    
       if tOSVersionInfo.¿¿¿???? then
        Label.SetText("Label24", "S.O: "..sOSName.."  Ultimate "..sOSServicePack.."");
    
    elseif tOSVersionInfo.¿¿¿???? then
    Label.SetText("Label24", "S.O: "..sOSName.."  Home Basic "..sOSServicePack.."");
    
    elseif tOSVersionInfo.¿¿¿???? then
    Label.SetText("Label24", "S.O: "..sOSName.."  Home Premium "..sOSServicePack.."");
    
    elseif tOSVersionInfo.¿¿¿???? then
    Label.SetText("Label24", "S.O: "..sOSName.."  Business "..sOSServicePack.."");
    
    elseif tOSVersionInfo.¿¿¿???? then
    Label.SetText("Label24", "S.O: "..sOSName.."  Enterprise "..sOSServicePack.."");
    
    end
    
    end

    but detect if is:

    Ultimate
    Home Basic
    Home Premium
    Business
    Enterprise

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    Why do you yell so much?

    It's obvious there is no such command as of yet. If I were you, I would
    google for registry entries or some other logs on the system which could
    be used to retrieve this information.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  4. #4
    Join Date
    Mar 2005
    Posts
    187
    Yeah I agree with Bule. Yelling and/or demanding isn't going to help you get the information you need.

    To answer your question, there isn't an AMS native command to get that info, but you can easily get the build info from other ways.

    Run from the cmd line: wmic os get name

    I'm sure there's plenty of other ways to get the info (registry, etc)...

  5. #5
    Join Date
    May 2005
    Posts
    1,115
    Quote Originally Posted by Buffman View Post
    Run from the cmd line: wmic os get name...
    There you go...
    Never know what life is gonna throw at you.
    (Based on a true story.)

  6. #6
    Join Date
    Aug 2006
    Posts
    355
    one example

    Code:
    sOSName = System.GetOSName();
    tOSVersionInfo = System.GetOSVersionInfo();
    sOSServicePack = tOSVersionInfo.CSDVersion;
    
    if (sOSName == "Windows Vista") then
    Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");
    
    
    elseif tOSVersionInfo.Personal then
    Label.SetText("Label24", "S.O: "..sOSName.."  Home Basic "..sOSServicePack.."");
    
    or??????????????????
    
    elseif tOSVersionInfo.Personal then
    Label.SetText("Label24", "S.O: "..sOSName.."  Home Premium "..sOSServicePack.."");
    I please need an example with others version Vista Windows...!

  7. #7
    Join Date
    Aug 2006
    Posts
    355
    Heelllllllllllllllllllllllllllllpppp Please!!!!!!!!!!!!

  8. #8
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Have you tried Buffmans help above?
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  9. #9
    Join Date
    Sep 2002
    Posts
    9
    Check out HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID

Similar Threads

  1. Can SF 6 Detect the Windows version?
    By Screeny in forum Setup Factory 6.0
    Replies: 3
    Last Post: 08-29-2005, 01:12 PM
  2. detect Acrobat Reader version dynamically
    By andrewr in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 05-20-2005, 08:24 AM
  3. Dependency Module: DCOM95 for Windows 95, version 1.3
    By Darryl in forum Setup Factory 8.0 Examples
    Replies: 0
    Last Post: 08-31-2004, 11:01 AM
  4. INFO: JET and MDAC (Complete) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:35 AM
  5. HOWTO: Detect Acrobat Version
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-22-2002, 04:01 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