开发者

Check if a Windows application is installed on local machine from Asp.net?

We have a certain application installed on a single machine. I would like to enable/disable a button based on the exis开发者_StackOverflowtence of this application. Is there a way to check for its existence from asp.net?

the app is currently on an XP machine, but want to code for Win7 as well. VS2008 3.51. Asp.net


Have your client side application manually create a cookie so when someone open's the web browser and goes to the target page/site you can detect if said cookie exists.

EXAMPLE OF COOKIE & CONTENTS

FILENAME: name@domain.txt
FILE CONTENTS:
__utma
10677928.1548890762.1196874704.1196874704.11968747 04.1
sub.domain.com/
1600
3656200576
30045444
3904425472
29898593
*


Yes - Only If the application which you want to detect is a plugin or can send its presence using the browser's User Agent header.


The only way to achieve this is through the use of ActiveX controls to check if there is a program already installed. The downside of this is that the user also needs to install the ActiveX control and that it only works in Internet Explorer.

ASP .net isn't able to detect this because it runs on the server, detecting if the user has a program installed needs to be executed from the client.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜