Sign in to follow this  
Followers 0
autosc

Question Reg, BigDaddys library to Winword

3 posts in this topic

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

other word manipulating functions in a script ?

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0