diff --git a/setup/installer/linux/freeze.py b/setup/installer/linux/freeze.py index 067862e4ba..ef9c9d9a8e 100644 --- a/setup/installer/linux/freeze.py +++ b/setup/installer/linux/freeze.py @@ -20,7 +20,6 @@ class LinuxFreeze(Command): from cx_Freeze import Executable, setup from calibre.linux import entry_points from calibre import walk - from calibre.web.feeds.recipes import recipe_modules is64bit = platform.architecture()[0] == '64bit' arch = 'x86_64' if is64bit else 'i686' @@ -110,7 +109,6 @@ class LinuxFreeze(Command): packages = ['calibre', 'encodings', 'cherrypy', 'cssutils', 'xdg', 'dateutil', 'dns', 'email'] - includes += ['calibre.web.feeds.recipes.'+r for r in recipe_modules] includes += ['calibre.gui2.convert.'+x.split('/')[-1].rpartition('.')[0] for x in \ glob.glob('src/calibre/gui2/convert/*.py')] diff --git a/setup/installer/windows/freeze.py b/setup/installer/windows/freeze.py index 4960337c1c..55e49d1f9b 100644 --- a/setup/installer/windows/freeze.py +++ b/setup/installer/windows/freeze.py @@ -141,7 +141,9 @@ class Win32Freeze(Command, WixMixIn): shutil.copytree(x, self.j(sp_dir, self.b(x))) for x in (r'calibre\manual', r'calibre\trac', 'pythonwin'): - shutil.rmtree(self.j(sp_dir, x)) + deld = self.j(sp_dir, x) + if os.path.exists(deld): + shutil.rmtree(deld) for x in os.walk(self.j(sp_dir, 'calibre')): for f in x[-1]: diff --git a/setup/installer/windows/wix-template.xml b/setup/installer/windows/wix-template.xml index 8ef2de1f83..0c07ccc07a 100644 --- a/setup/installer/windows/wix-template.xml +++ b/setup/installer/windows/wix-template.xml @@ -2,14 +2,29 @@ - + + + + + + + @@ -102,7 +117,14 @@ = 501)]]> - + + + NEWPRODUCTFOUND + + + + NEWPRODUCTFOUND + diff --git a/setup/installer/windows/wix.py b/setup/installer/windows/wix.py index fe560f43a3..857a667a9e 100644 --- a/setup/installer/windows/wix.py +++ b/setup/installer/windows/wix.py @@ -6,12 +6,10 @@ __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal ' __docformat__ = 'restructuredtext en' -import os, uuid, shutil, subprocess +import os, shutil, subprocess from setup import __appname__, __version__, basenames -guid = uuid.uuid4 # Random GUID - WIXP = r'C:\Program Files\Windows Installer XML v3.5' CANDLE = WIXP+r'\bin\candle.exe' LIGHT = WIXP+r'\bin\light.exe' @@ -31,8 +29,7 @@ class WixMixIn: wxs = template.format( app = __appname__, version = __version__, - product_guid = guid(), - upgrade_code = guid(), + upgrade_code = 'BEB2A80D-E902-4DAD-ADF9-8BD2DA42CFE1', compression = self.opts.msi_compression, app_components = components, exe_map = self.smap,