From 28e3b87707bb59f28312472fbf75161b1793192f Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Thu, 25 Feb 2016 19:44:30 +0000 Subject: [PATCH] Relaunch app after upgrade on Windows. Fixes #93 on Windows. --- EDMarketConnector.wxs | 22 +++++++++++++++++++--- setup.py | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/EDMarketConnector.wxs b/EDMarketConnector.wxs index 9391a289..0ae399d5 100644 --- a/EDMarketConnector.wxs +++ b/EDMarketConnector.wxs @@ -2,7 +2,7 @@ - + @@ -10,7 +10,7 @@ Name="$(var.PRODUCTLONGNAME)" Version="$(var.PRODUCTVERSION)" UpgradeCode="$(var.UPGRADECODE)" - Language="!(bind.fileLanguage.MainExecutable.exe)" + Language="!(bind.fileLanguage.EDMarketConnector.exe)" Manufacturer="Marginal"> + + + + + + + NOT Installed AND LAUNCH ~= "yes" + + + @@ -56,7 +72,7 @@ - + diff --git a/setup.py b/setup.py index 1a80fc02..a153d7b1 100755 --- a/setup.py +++ b/setup.py @@ -197,7 +197,7 @@ appcast.write(''' '''.format(float(SHORTVERSION)/100, SHORTVERSION, PKG, - sys.platform=='win32' and 'windows"\n\t\t\t\tsparkle:installerArguments="/passive' or 'osx', + sys.platform=='win32' and 'windows"\n\t\t\t\tsparkle:installerArguments="/passive LAUNCH=yes' or 'osx', VERSION, os.stat(PKG).st_size, sys.platform=='win32' and 'body { font-family:"Segoe UI","Tahoma"; font-size: 75%; } h2 { font-family:"Segoe UI","Tahoma"; font-size: 105%; }' or 'h2 { font-size: 105%; }'))