Click here to Skip to main content
14,494,314 members
Rate this:
Please Sign up or sign in to vote.

I have designed a website which relies on a windows application (which has been designed by 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.

Updated 18-Mar-20 6:00am
Rahul Rajat Singh 29-May-12 0:17am
My first question would be "Do you wan the client computers to have this application installed before using your website?" If the answer to the question is yes then i seriously doubt that the answers posted so far can be of any use because all the solutions are totally correct but actually not considering the fact that you need to do this from the browser.

Please elaborate so that I could suggest something.
Rate this:
Please Sign up or sign in to vote.

Solution 1

Volynsky Alex 26-May-12 4:56am
P.S. it also may will be help:
Rate this:
Please Sign up or sign in to vote.

Solution 2

Hi Rezann,

I am not a pro, just a newbie. I just wrote some code doing what you want to do. This may not be the best way to go, but it's very easy. All you have to do is to check if a file/folder exist in a directory that you know it should when the software is installed

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

P.S. Win7 install path is not the same as WinXP. So you can test both.
Rate this:
Please Sign up or sign in to vote.

Solution 3

You can try use of environment variables

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
[no name] 14-Sep-14 10:02am
You should probably read the questions before you blindly answer. These are not "environment variables" these are .NET constants. This code also has nothing at all to do with the question asked, over 2 years ago. The question was to find out on the client side if a program was installed, .NET code would only be able to check the server side.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100