Twinkle Sahoo

Twinkle Sahoo

  • NA
  • 55
  • 3.2k

How do we built a set up file using Java script for EDGE Browser

Jul 20 2022 11:41 AM

I tried this below code but it does not work in MS Edge ,it works fine in IE 

<script type="text/javascript">
    function LaunchFinSol()
    {
        alert("-1");
        try
        {
            var ws = new ActiveXObject("WScript.Shell");
            var servername = "<%=Server.MachineName%>";
            var exename = "\\\\Uszz1\\interoffice\\Training\\Coll Model - Datastore\\PROD\\setup.exe";
            ws.Exec(exename.replace("Server", servername));
            return true;
        }
        catch (ex)
        {
            alert(ex);
        }
    }
</script>

This code does not work for EDGE browser Any suggestion please


Answers (1)