Jump to content

Question Reg, BigDaddys library to Winword


autosc
 Share

Recommended Posts

Is there a function which checks if Winword is instaleld on user computer before executing

other word manipulating functions in a script ?

you could try FileExists

might require you to do a regread 1st to see where you need to check for the file.

also there should be errors set if you try create one.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Moderators

Something like this should work for MS Word 2003.

$sPath = RegRead("HKLM\SOFTWARE\Microsoft\Office\11.0\Word\InstallRoot", "Path")
If @error Then
    MsgBox(48, "Error", "MS Office 2003 is not installed.")
    Exit
EndIf
If FileExists($sPath & "WINWORD.EXE") Then
    MsgBox(64, "Success", "MS Office 2003 is installed.")
Else
    MsgBox(48, "Error", "MS Office 2003 is not installed.")
EndIf
Edited by big_daddy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...