self updating assembly(dll) in client machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dim505
    New Member
    • Mar 2008
    • 3

    self updating assembly(dll) in client machine

    hi friends,

    I was trying to fetch the macid of the client machine by creating a dll and registering the dll in the client registry by packing the dll in a setup(.msi) file.

    For this I used the following javascript in web application,if the dll is already registered the script will create an object of it else it will invoke the setup wizard to install the dll.

    <script type="text/javascript">
    function doit()
    {
    try
    {
    var x = new ActiveXObject(" SystemInfo.Syst emInfo");
    alert( x.macID);
    }
    catch(e)
    {
    var d=e;
    if(d!="")
    {
    alert(d);
    window.open("ht tp://webserver/dll/setup.msi#versi on=1,0,0,0");
    }
    }
    }

    after placing the published copy of web application in the web server and accessed the appln using url

    all the stuff worked well.

    but now I want the client to install an updated version of my dll in the client machine though .msi by overwriting the previous version.Can u pls tell me how can I achieve this?

    do I need to edit the javascript given above......?or do I follow any other method?

    pls help me...
Working...