IO-227 Succesful export of PPG information.
This commit is contained in:
@@ -5,6 +5,9 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Squirrel;
|
||||
using Microsoft.Win32.TaskScheduler;
|
||||
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
{
|
||||
public static class SquirrelAwareHelper
|
||||
@@ -66,13 +69,30 @@ namespace BodyshopPartner.Utils
|
||||
Utils.UpdateHandler.ToggleStartWithWindows(true);
|
||||
mgr.CreateShortcutForThisExe();
|
||||
},
|
||||
onAppUpdate: v => {
|
||||
onAppUpdate: v =>
|
||||
{
|
||||
mgr.CreateShortcutForThisExe();
|
||||
Utils.UpdateHandler.RestoreSettings();
|
||||
Utils.UpdateHandler.ToggleStartWithWindows(Properties.Settings.Default.StartWithWindows);
|
||||
Utils.PaintScaleConfig.RegisterScheduledTask();
|
||||
},
|
||||
onAppUninstall: v => mgr.RemoveShortcutForThisExe(),
|
||||
|
||||
onAppUninstall: v =>
|
||||
{
|
||||
mgr.RemoveShortcutForThisExe();
|
||||
try
|
||||
{
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - Paint Scale Connection");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - Paint Scale Connection");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error(ex, "Error removing task while uninstalling.");
|
||||
}
|
||||
},
|
||||
|
||||
onFirstRun: () =>
|
||||
{
|
||||
logger.Info("We've run for the first time.");
|
||||
|
||||
Reference in New Issue
Block a user