Skip to content

Commit

Permalink
Fix looking up Visual Studio MSMs. Again. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Oct 30, 2019
1 parent 6eee9e4 commit 025e11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msi/createmsi.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def __init__(self):
redist_glob = 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Redist\\MSVC\\*\\MergeModules\\Microsoft_VC142_CRT_x64.msm'
else:
self.progfile_dir = 'ProgramFilesFolder'
redist_glob = 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Redist\\MSVC\\*\\MergeModules\\Microsoft_VC142_CRT_x86.msm'
redist_glob = 'C:\\Program Files*\\Microsoft Visual Studio\\2019\\Community\\VC\\Redist\\MSVC\\*\\MergeModules\\Microsoft_VC142_CRT_x86.msm'
trials = glob(redist_glob)
if len(trials) != 1:
sys.exit('Could not find unique MSM setup.')
sys.exit('Could not find unique MSM setup:' + '\n'.join(trials))
self.redist_path = trials[0]
self.component_num = 0
self.feature_properties = {
Expand Down

0 comments on commit 025e11c

Please sign in to comment.