Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: tools/win/split_link/install_split_link.py

Issue 14850021: Generate, merge, and embed manifest when doing split_link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/split_link_partition.py ('k') | tools/win/split_link/split_link.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/win/split_link/install_split_link.py
diff --git a/tools/win/split_link/install_split_link.py b/tools/win/split_link/install_split_link.py
index 084125187bb657d8ed46fd2e883b39ab5c44c724..8b9acb8a1e1622e81eaa9e804d84e347f6c33081 100644
--- a/tools/win/split_link/install_split_link.py
+++ b/tools/win/split_link/install_split_link.py
@@ -44,9 +44,10 @@ def main():
os.chdir(BASE_DIR)
link = FindInPath('link.exe')
- if not link:
- print("Couldn't find link.exe in PATH. Must run from Administrator "
- "Visual Studio Command Prompt.")
+ mt = FindInPath('mt.exe')
+ if not link or not mt:
+ print("Couldn't find link.exe or mt.exe in PATH. "
+ "Must run from Administrator Visual Studio Command Prompt.")
return 1
link_backup = os.path.join(os.path.split(link)[0], 'link.exe.split_link.exe')
@@ -83,6 +84,10 @@ def main():
'Software\\Chromium\\split_link_installed',
_winreg.REG_SZ,
link_backup)
+ _winreg.SetValue(_winreg.HKEY_CURRENT_USER,
+ 'Software\\Chromium\\split_link_mt_path',
+ _winreg.REG_SZ,
+ mt)
except IOError:
print("Wasn't able to copy split_link.exe over %s. "
"Not running with Administrator privileges?" % link)
« no previous file with comments | « build/split_link_partition.py ('k') | tools/win/split_link/split_link.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698