本文介绍了如何检查客户端计算机上是否安装了程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我设计的网站依赖于Windows应用程序(由vb.net设计)来执行某些任务。我想知道是否可以通过我的网页上的链接或按钮检查客户端的计算机,看看是否安装了这个应用程序。



我知道这适用于javascript,可能是一个activex组件。但是,我不知道从哪里开始和做什么。



在这方面的任何帮助都非常感谢。



谢谢,

Hi,

I have designed a website which relies on a windows application (which has been designed by vb.net) to perform some tasks. I want to know if it is possible to check the client's computer through a link or button on my web page to see if this application is installed or not.

I know that this pertains to javascript and probably an activex component. However, I have no clue as to where to start and what to do.

Any help in this regard is highly appreciated.

Thanks,

推荐答案


If System.IO.File.Exists("C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\vsdiag_regwcf.exe") = True then
     Msgbox "bingo"
end if





PS Win7安装路径与WinXP不同。所以你可以测试两者。



P.S. Win7 install path is not the same as WinXP. So you can test both.


Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) 'for 32bit 




Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) 'for 64bit

after that you dig deeper into the filetree with concatenated slashes as neccessary
cheers 


这篇关于如何检查客户端计算机上是否安装了程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 10:23