root/middleware-offline/trunk/_src/eidmw/misc/Wix_MW35/MW35Wix/multi-lang-pro.cmd @ 5

Revision 5, 2.4 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1echo %0
2set CONFIGURATION=%1
3
4call "%~dp0..\..\..\SetPathPSdk2008.bat"
5if NOT %ERRORLEVEL%==0 exit 1
6
7set OUT_PATH=%~dp0bin\%CONFIGURATION%
8echo [INFO] OUT_PATH=%OUT_PATH%
9
10set MSI_FILE_IN=PteidMW35-Pro
11set MSI_FILE_OUT=PteidMW35-Pro
12set MST_DIR=%OUT_PATH%\mst-pro
13
14mkdir "%MST_DIR%"
15
16::------------------------------------
17:: check if all the MSI files were built
18::------------------------------------
19set LANG=en-us
20IF NOT EXIST "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-en.msi" goto NOT_%LANG%
21
22set LANG=nl-nl
23IF NOT EXIST "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-nl.msi" goto NOT_%LANG%
24
25set LANG=fr-fr
26IF NOT EXIST "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-fr.msi" goto NOT_%LANG%
27
28set LANG=de-de
29IF NOT EXIST "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-de.msi" goto NOT_%LANG%
30
31::------------------------------------
32:: take all the MSI files and process
33::------------------------------------
34
35set LANG=en-us
36copy /Y "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-en.msi" "%OUT_PATH%\%MSI_FILE_OUT%.msi"
37set LANG=nl-nl
38"%PTEID_DIR_PLATFORMSDK_2008%\msitran.exe" -g "%OUT_PATH%\%MSI_FILE_OUT%.msi" "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-nl.msi" "%MST_DIR%\nl.mst"
39echo ...
40set LANG=fr-fr
41"%PTEID_DIR_PLATFORMSDK_2008%\msitran.exe" -g "%OUT_PATH%\%MSI_FILE_OUT%.msi" "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-fr.msi" "%MST_DIR%\fr.mst"
42echo ...
43set LANG=de-de
44"%PTEID_DIR_PLATFORMSDK_2008%\msitran.exe" -g "%OUT_PATH%\%MSI_FILE_OUT%.msi" "%OUT_PATH%\%LANG%\%MSI_FILE_IN%-de.msi" "%MST_DIR%\de.mst"
45echo ...
46
47"%PTEID_DIR_PLATFORMSDK_2008%\msidb.exe" -d "%OUT_PATH%\%MSI_FILE_OUT%.msi" -r "%MST_DIR%\nl-Pro.mst"
48"%PTEID_DIR_PLATFORMSDK_2008%\msidb.exe" -d "%OUT_PATH%\%MSI_FILE_OUT%.msi" -r "%MST_DIR%\fr-Pro.mst"
49"%PTEID_DIR_PLATFORMSDK_2008%\msidb.exe" -d "%OUT_PATH%\%MSI_FILE_OUT%.msi" -r "%MST_DIR%\de-Pro.mst"
50
51::------------------------------------
52:: generate the correct file name and upload file to network
53::------------------------------------
54set /p SVN_REVISION= < "%~dp0..\..\..\svn_revision"
55"%~dp0..\..\..\upload-win.bat" msi35-pro %SVN_REVISION%
56
57
58goto END
59
60:NOT_en-us
61echo [ERR ] Missing file '%OUT_PATH%\%LANG%\%MSI_FILE_IN%-en.msi'
62exit 1
63goto END
64:NOT_nl-nl
65echo [ERR ] Missing file '%OUT_PATH%\%LANG%\%MSI_FILE_IN%-nl.msi'
66exit 1
67goto END
68:NOT_fr-fr
69echo [ERR ] Missing file '%OUT_PATH%\%LANG%\%MSI_FILE_IN%-fr.msi'
70exit 1
71goto END
72:NOT_de-de
73echo [ERR ] Missing file '%OUT_PATH%\%LANG%\%MSI_FILE_IN%-de.msi'
74exit 1
75goto END
76
77:END
Note: See TracBrowser for help on using the browser.