Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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();
        }