From f92ae15dc05be4eb1bba115d2081c448ed6e3a8e Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 1 Mar 2013 21:03:30 +0100 Subject: [PATCH] Inno setup stuff. --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b9fea32..c8bdf95 100644 --- a/setup.py +++ b/setup.py @@ -142,6 +142,7 @@ class InnoScript: if not self.dist_dir[-1] in "\\/": self.dist_dir += "\\" self.name = AppName + self.lname = AppName.lower() self.version = AppVersion self.windows_exe_files = [self.chop(p) for p in windows_exe_files] self.console_exe_files = [self.chop(p) for p in console_exe_files] @@ -201,7 +202,9 @@ class InnoScript: print(file=fd) # Uninstall optional log files print('[UninstallDelete]', file=fd) - print(r'Type: files; Name: "{pf}\%s\patool*.exe.log"' % self.name, file=fd) + for path in (self.windows_exe_files + self.console_exe_files): + exename = os.path.basename(path) + print(r'Type: files; Name: "{pf}\%s\%s.log"' % (self.name, exename), file=fd) print(file=fd) # Add app dir to PATH print("[Code]", file=fd) @@ -229,7 +232,7 @@ end; def sign (self): """Sign InnoSetup installer with local self-signed certificate.""" print("*** signing the inno setup installer ***") - pfxfile = r'C:\patool.pfx' + pfxfile = r'C:\%s.pfx' % self.lname if os.path.isfile(pfxfile): path = get_windows_sdk_path() signtool = os.path.join(path, "bin", "signtool.exe")