InstallAddIns() public static method

Installs the AddIns from AddInInstallTemp to the UserAddInPath. In case of installation errors, a error message is displayed to the user and the affected AddIn is added to the disabled list.
public static InstallAddIns ( List disabled ) : void
disabled List
return void
Esempio n. 1
0
 public void ConfigureUserAddIns(string addInInstallTemp, string userAddInPath)
 {
     AddInManager.AddInInstallTemp = addInInstallTemp;
     AddInManager.UserAddInPath    = userAddInPath;
     if (Directory.Exists(addInInstallTemp))
     {
         AddInManager.InstallAddIns(disabledAddIns);
     }
     if (Directory.Exists(userAddInPath))
     {
         AddAddInsFromDirectory(userAddInPath);
     }
 }
Esempio n. 2
0
 public void ConfigureUserAddIns(string addInInstallTemp, string userAddInPath)
 {
     if (!this.externalAddInsConfigured)
     {
         throw new System.InvalidOperationException("ConfigureExternalAddIns must be called before ConfigureUserAddIns");
     }
     AddInManager.AddInInstallTemp = addInInstallTemp;
     AddInManager.UserAddInPath    = userAddInPath;
     if (System.IO.Directory.Exists(addInInstallTemp))
     {
         AddInManager.InstallAddIns(this.disabledAddIns);
     }
     if (System.IO.Directory.Exists(userAddInPath))
     {
         this.AddAddInsFromDirectory(userAddInPath);
     }
 }