home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 May / CMCD0504.ISO / Software / Shareware / Programare / ephoxedit / editlivesdk.exe / install.js next >
Encoding:
Text File  |  2003-07-09  |  694 b   |  28 lines

  1. var version="2.0.1.0";        //version of plugin dll
  2. var plugin="npaxctrl.dll";    //name of plugin dll
  3. var regname="/AsgardSoftware/ActiveXContainerPlugin";
  4.  
  5. var err = initInstall("Asgard Software Plugin", regname, version, 1);
  6.  
  7. if (!err)
  8. {
  9.    var pluginsFolder = getFolder("Plugins");
  10.    setPackageFolder(pluginsFolder);
  11.    err = addFile(plugin);
  12.    if (!err)
  13.         err = performInstall();
  14. }
  15.  
  16. if(err)
  17. {
  18.     if(err == 999)
  19.     {
  20.            alert("The Asgard ActiveX Container Plugin has been copied onto your system. In order to complete the installation you must reboot your machine.");
  21.     }
  22.     else
  23.     {
  24.            alert("Installation failed (error = " + err + ")");
  25.            cancelInstall(err);   
  26.     }
  27. }
  28.