Commits

Jan Borsodi committed cbd421e

Removed NSIS installer command.

Comments (0)

Files changed (1)

             return [asciidoc]
 
 # TODO: The build directory should be configurable
-# TODO: See if this command can be built differently, like NSIS
+# TODO: See if this command can be built differently, like ISS command
 class CuteHgPy2Exe(build):
     description = "create a windows executable that can run mercurial and cutehg"
 
     sub_commands = [("build", None)]
 
 class CuteHgBdistIntaller(Command):
-    description = "create an executable installer for MS Windows using NSIS"
-
     user_options = [('dist-dir=', 'd',
                      "directory to put final built installer in"),
                     ('skip-build', None,
         if not exists(self.dist_dir):
             os.makedirs(self.dist_dir)
 
-class CuteHgBdistNSIS(CuteHgBdistIntaller):
-    description = "create an executable installer for MS Windows using NSIS"
-
-    def run(self):
-        from os.path import join, exists, expandvars
-        nsis = sys.path + [
-                '%ProgramFiles%/NSIS',
-                '%SystemDrive%/Program Files/NSIS/',
-                ]
-        nsis = [join(expandvars(p), 'makensis.exe') for p in nsis]
-        nsis = [p for p in nsis if exists(p)]
-    
-        if len(nsis) == 0:
-            raise distutils.errors.DistutilsExecError('Could not find NSIS executable makensis.exe')
-
-        CuteHgBdistIntaller.run(self)
-
-        # TODO: Fix location of built installer, should be in dist_dir
-        #log.info("creating the installer in %s", self.dist_dir)
-        log.info("creating the installer")
-        call([nsis[0], '/V4', '/NOCD', 'installer/cutehg.nsi'])
-
 class CuteHgBdistISS(CuteHgBdistIntaller):
     description = "create an executable installer for MS Windows using Inno Setup"
 
     CuteHgWinMsi = MakeWinBdist(bdist_msi)
     cmds['bdist_wininst'] = CuteHgWinInst
     cmds['bdist_msi'] = CuteHgWinMsi
-    cmds['bdist_nsis'] = CuteHgBdistNSIS
     cmds['bdist_iss'] = CuteHgBdistISS