Lenard Lindstrom  committed 642e892

Add hg identifier to MSI installer filename

  • Participants
  • Parent commits ea8244e
  • Branches default

Comments (0)

Files changed (1)

 if "bdist_msi" in sys.argv:
     # if you are making an msi, we want it to overwrite files
+    # we also want to include the repository revision in the file name
     from distutils.command import bdist_msi
     import msilib
             msilib.add_data(self.db, "Property", [("REINSTALLMODE", "amus")])
+        def get_installer_filename(self, fullname):
+            if revision:
+                fullname += '-hg_' + revision
+            return bdist_msi.bdist_msi.get_installer_filename(self, fullname)
     cmdclass['bdist_msi'] = bdist_msi_overwrite_on_install