Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: installer/msibuild.cmd

Issue 5394579117309952: Installer localization and new build system (Closed)
Patch Set: Created Dec. 10, 2013, 4:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « installer/installer.gyp ('k') | installer/src/documentation/build_process.dox » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 @echo off
2 setlocal
3 set FLAG=%1
4 shift
5 set LOCALE_ID=%1
6 shift
7 set LOCALE_FILE=%1
8 shift
9 set MSI_LOCALE=%1
10 shift
11 set MST=%1
12 shift
13 set MSI_BASE=%1
14 shift
15 set MSI_INTERIM=%1
16 shift
17 set WIXOBJ=%1
18 shift
19 set WIXOBJ=%WIXOBJ% %1
20 shift
21 set WIXOBJ=%WIXOBJ% %1
22 shift
23 set WIXOBJ=%WIXOBJ% %1
24 if "%WIXOBJ%"=="" goto Help
25 if "%FLAG%"=="initial" goto Light
26 if "%FLAG%"=="additional" goto Light
27 echo First argument must be either 'initial' or 'additional'
28 exit /b 1
29 goto End
30 :Light
31 echo on
32 light -notidy -nologo -ext WixUIExtension -sval -loc %LOCALE_FILE% -out %MSI_LOC ALE% %WIXOBJ%
33 if errorlevel 1 GOTO :Error
34 @echo off
35 if "%FLAG%"=="additional" goto Additional
36 :Initial
37 echo on
38 copy %MSI_LOCALE% %MSI_INTERIM%
39 copy %MSI_LOCALE% %MSI_BASE%
40 @echo off
41 goto End
42 :Additional
43 echo on
44 msitran -g %MSI_BASE% %MSI_LOCALE% %MST%
45 if errorlevel 1 GOTO :Error
46 cscript ..\..\emb.vbs %LOCALE_ID% %MSI_INTERIM% %MST%
47 if errorlevel 1 GOTO :Error
48 @echo off
49 goto End
50
51 :Help
52 echo msibuild - A single-language step to create a multi-language MSI
53 echo Must be run from an architecture-specific build directory, such as instal ler/build/ia32
54 echo.
55 echo usage: msibuild ^<flag^> ^<locale_id^> ^<locale_file^> ^<msi_locale^> ^<mst ^> ^<msi_base^> ^<msi_interim^> ^<wix_objects^>
56 echo flag - either 'initial' or 'additional'
57 echo locale_id - a Microsoft LCID (e.g. 1033)
58 echo locale_file - a WiX localization file (e.g. en-us.wxl)
59 echo msi_locale - an MSI file as compiled with the given locale_file
60 echo mst - an MST file generated by comparing msi_locale against msi_base
61 echo msi_base - an MSI file against which to generate a transform
62 echo msi_interim - an MSI file into which to embed the MST
63 echo wix_objects - a list of WiX object files from which to build the MSI
64 echo.
65 echo Initial build
66 echo - Create ^<msi_locale^>
67 echo - Copy it to ^<msi_base^>
68 echo - Copy it to ^<msi_interim^>
69 echo - Ignores arguments ^<locale_id^> (only needed for embedding) and ^<mst^> (since no transform is needed),
70 echo but they must be present on the command line nonetheless
71 echo.
72 echo Additional build
73 echo - Create ^<msi_locale^>
74 echo - Generate ^<mst^> by comparing ^<msi_locale^> against ^<msi_base^>
75 echo - Embed ^<mst^> into ^<msi_interim^> with storage identifier ^<locale_id^ >
76 echo.
77
78 :Error
79 exit /b 1
80
81 :End
OLDNEW
« no previous file with comments | « installer/installer.gyp ('k') | installer/src/documentation/build_process.dox » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld