簡體   English   中英

如何從asp.net Web應用程序檢查PC中是否安裝了應用程序

[英]How to check if an application installed or not in pc from asp.net web application

我需要從Web應用程序中打開Windows應用程序,並且我知道該怎么做。 問題是我無法確定是否已安裝該應用程序。目前,我正在使用以下代碼進行檢查,

    var win= window.open(url, 'send', 'width=100,height=100,top=1,left=1,resizable=yes', '1');
     if(win==null || win.closed==true)
       {
        alert("Application not installed.");
       }

和它的工作正常,但問題是,如果彈出窗口被阻止,那么我得到空值,那么即使安裝了應用程序,也會出現警報。 那么有什么方法可以從Web應用程序檢查PC中是否安裝了應用程序

嘗試這個:

var win= window.open(url, 'send', 'width=100,height=100,top=1,left=1,resizable=yes', '1');           

if(!win|| win.closed || typeof win.closed=='undefined') 
{ 
 //POPUP BLOCKED
 return;
}
if(win==null || win.closed==true)
{
    alert("Application not installed.");
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM