'在不启动Word的情况下读取Word版本和安装路径
Word_Ver = ""
Word_Path = ""
If Reg.Reg_KeyExists("HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Word\InstallRoot") = True Then
Word_Ver = "9.0"
Reg.Reg_GetValue "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Word\InstallRoot", "Path", Word_Path
End If
If Word_Ver = "" Then
If Reg.Reg_KeyExists("HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Word\InstallRoot") = True Then
Word_Ver = "8.0"
Reg.Reg_GetValue "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Word\InstallRoot", "Path", Word_Path
End If
End If