Skip to content

Commit

Permalink
Update Edit UUIDs for install on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
th3coop committed Jan 27, 2020
1 parent 2e3b04b commit 6e38234
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/install/wix/bin/chguids.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
import shutil

def new_guid():
import pythoncom
guid = str(pythoncom.CreateGuid())
guid = guid[1:-1] # strip of the {}'s
import uuid
guid = str(uuid.uuid4())
# guid = guid[1:-1] # strip of the {}'s
return guid


Expand All @@ -63,7 +63,7 @@ def main():
original = content = fin.read()
fin.close()
# E.g.: Guid="32A46AA4-051B-4574-A6B2-E7B3C7666CB6"
pattern = re.compile('Guid="([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12})"')
pattern = re.compile('"([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12})"')
for match in pattern.finditer(content):
start, end = match.start(1), match.end(1)
guid = new_guid()
Expand Down
8 changes: 4 additions & 4 deletions src/install/wix/guids.p.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<Include>
<!-- #if PRODUCT_TYPE == "edit" -->
<!-- #if PP_UPDATE_CHANNEL == "nightly" -->
<?define ProductCode = "17080ACC-3CAD-4DEB-A65B-9C5CB68AC036" ?>
<?define UpgradeCode = "DE8DB321-ADC1-4D54-8582-373E1F3C9CDE" ?>
<?define ProductCode = "5209fe84-37e2-4a61-b9d2-dd7c660a38e2" ?>
<?define UpgradeCode = "a3d2766a-e7f0-4450-bd61-10b481d83f09" ?>
<!-- #else -->
<?define ProductCode = "C0C305D4-1D83-46A3-9DEE-EF836E8C7C30" ?>
<?define UpgradeCode = "C527BEAD-8722-4618-A23F-B880B1B874D6" ?>
<?define ProductCode = "1eea9a57-9ea5-47b2-93d9-29f6e0b49ebd" ?>
<?define UpgradeCode = "33f3bfed-a1b1-4551-b30c-2ba8ccc7aa3f" ?>
<!-- #endif -->
<!-- #else -->
<!-- #error "Invalid product type." -->
Expand Down

0 comments on commit 6e38234

Please sign in to comment.