Office auslesen

  • Hallo Leute
    Ich habe eine kleine frage.

    Folgende Situation:
    Ich hab auf meinem Rechner
    Office 2003 (Word,Excel,Powerpoint,Outlook)
    Office 2007 (Access)

    installiert.
    Wie kann ich mittels AutoIT auslesen welche Pakete beim Office installiert sind?
    Es steht bei beiden nur Office Standart dabei.

    Gibt es eine Möglichkeit sie anzuzeigen ob Word,Excel,Powerpoint,... installiert ist?

    Vielen lieben dank für eure bemühungen

  • du kanst ein regread auf "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Word\InstallRoot" machen
    hier steht der wert Path ="C:\Program Files\Microsoft Office\Office12\"
    in diesen Verzeichnis stehn die Office Prog drin. einfach if fileexist($Path & "\EXCEL.EXE") then "Excel ist dabei.

  • Hallo danke für die antwort hab es aber jetzt über OLE gemacht

    [autoit]


    Local $objWord = ObjCreate("Word.Application")
    If Not IsObj($objWord) Then
    $word = 'Word nicht installiert!' & @CRLF
    Else
    $word = 'Word ' & $objWord.Version & @CRLF
    EndIf

    Local $objExcel = ObjCreate("Excel.Application")
    If Not IsObj($objExcel) Then
    $excel = 'Excel nicht installiert!' & @CRLF
    Else
    $excel = 'Excel ' & $objExcel.Version & @CRLF
    EndIf

    Local $objPowerpoint = ObjCreate("Powerpoint.Application")
    If Not IsObj($objPowerpoint) Then
    $powerpoint = 'Powerpoint nicht installiert!' & @CRLF
    Else
    $powerpoint = 'Powerpoint ' & $objPowerpoint.Version & @CRLF
    EndIf

    Local $objOutlook = ObjCreate("Outlook.Application")
    If Not IsObj($objOutlook) Then
    $outlook = 'Outlook nicht installiert!' & @CRLF
    Else
    $outlook = 'Outlook ' & $objOutlook.Version & @CRLF
    EndIf

    Local $objAccess = ObjCreate("Access.Application")
    If Not IsObj($objAccess) Then
    $Access = 'Access nicht installiert!' & @CRLF
    Else
    $Access = 'Access ' & $objAccess.Version & @CRLF
    EndIf

    MsgBox(0,"Office",$word & $excel & $powerpoint & $outlook & $Access)

    [/autoit][autoit][/autoit][autoit][/autoit]
  • hätte jetzt aber noch eine frage:

    ich lese über die software über

    [autoit]

    Local Const $UnInstKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"

    [/autoit]

    aus und möchte jetzt überprüfen: ober der name ungefähr vorkommt:

    also die variablen sindt:
    Microsoft Office Standard Edition 2003
    Microsoft Office Standard Edition 2007

    jetzt möchte ich überprüfen ob das wort :

    "Microsoft Office" in etwa vorkommen und bei den obrigen 2 beispielen soll true zrug kommen.

    vielen dank für eure bemühungen

  • Hi,
    das passt ja, genau das gleiche brauche ich auch.
    Wie bekomme ich raus welches SP für das Office installiert ist :?: