autosc Posted October 27, 2006 Posted October 27, 2006 Is there a function which checks if Winword is instaleld on user computer before executing other word manipulating functions in a script ?
GaryFrost Posted October 27, 2006 Posted October 27, 2006 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 FileExistsmight 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.
Moderators big_daddy Posted October 28, 2006 Moderators Posted October 28, 2006 (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 October 28, 2006 by big_daddy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now