void CheckForUpdates() { if (!UseLocalPath) { SettingsManager.APP_PATH = m_installer.GetInstallationPath(); SettingsManager.RegeneratePaths(); OverrideSettings(false); } bool isToInstall = m_installer.IsToInstall(); InstallationState installStatus; //InstallationState installPatcherStatus; //InstallationState createShortcutStatus; if (ActivateInstaller) { if (isToInstall) { installStatus = m_installer.Install(); /*if (InstallPatcher && installStatus == InstallationState.SUCCESS && !InstallInLocalPath) * installPatcherStatus = m_installer.InstallPatcher(); * else * installPatcherStatus = InstallationState.SUCCESS;*/ if (CreateDesktopShortcut && installStatus == InstallationState.SUCCESS /* && installPatcherStatus == InstallationState.SUCCESS && InstallPatcher == true*/) { //Debugger.Log ("Shortcut creation linked to launcher"); //m_installer.CreateShortcut(); CreateShortcut(); } else //if (CreateDesktopShortcut && (installPatcherStatus == InstallationState.FAILED || InstallPatcher == false)) { if (CreateDesktopShortcut) { CreateShortcut(); } } } } if (ActivateRepairer) { if (!isToInstall) { m_installer.Repair(); } } if (ActivatePatcher) { CheckForPatches(); } if (!UseLocalPath) { SettingsManager.APP_PATH = Directory.GetParent(Application.dataPath).FullName; SettingsManager.RegeneratePaths(); } }