List <string> runPostInstallOnDirectory(string newAppDirectoryRoot, bool isFirstInstall, Version newCurrentVersion, IEnumerable <ShortcutCreationRequest> shortcutRequestsToIgnore) { var postInstallInfo = new PostInstallInfo { NewAppDirectoryRoot = newAppDirectoryRoot, IsFirstInstall = isFirstInstall, NewCurrentVersion = newCurrentVersion, ShortcutRequestsToIgnore = shortcutRequestsToIgnore.ToArray() }; var installerHooks = new InstallerHookOperations(fileSystem, applicationName); return(AppDomainHelper.ExecuteInNewAppDomain(postInstallInfo, installerHooks.RunAppSetupInstallers).ToList()); }
IEnumerable <ShortcutCreationRequest> runAppUninstall(string path) { var installerHooks = new InstallerHookOperations(fileSystem, applicationName); var ret = AppDomainHelper.ExecuteInNewAppDomain(path, installerHooks.RunAppUninstall); try { Utility.DeleteDirectoryAtNextReboot(path); } catch (Exception ex) { var message = String.Format("Couldn't delete old app directory on next reboot {0}", path); log.WarnException(message, ex); } return(ret); }
IEnumerable<ShortcutCreationRequest> runAppUninstall(string path) { var installerHooks = new InstallerHookOperations(fileSystem, applicationName); var ret = AppDomainHelper.ExecuteInNewAppDomain(path, installerHooks.RunAppUninstall); try { Utility.DeleteDirectoryAtNextReboot(path); } catch (Exception ex) { var message = String.Format("Couldn't delete old app directory on next reboot {0}", path); log.WarnException(message, ex); } return ret; }
List<string> runPostInstallOnDirectory(string newAppDirectoryRoot, bool isFirstInstall, Version newCurrentVersion, IEnumerable<ShortcutCreationRequest> shortcutRequestsToIgnore) { var postInstallInfo = new PostInstallInfo { NewAppDirectoryRoot = newAppDirectoryRoot, IsFirstInstall = isFirstInstall, NewCurrentVersion = newCurrentVersion, ShortcutRequestsToIgnore = shortcutRequestsToIgnore.ToArray() }; var installerHooks = new InstallerHookOperations(fileSystem, applicationName); return AppDomainHelper.ExecuteInNewAppDomain(postInstallInfo, installerHooks.RunAppSetupInstallers).ToList(); }