OSDN Git Service

Installer: Use Inno Setup 6 to build WinMerge x64 installer
[winmerge-jp/winmerge-jp.git] / BuildInstaller.cmd
1 if "%1" == "" (
2   call :BuildInstaller
3   call :BuildInstaller x64
4 ) else (
5   call :BuildInstaller %1 
6 )
7 goto :eof
8
9 :BuildInstaller
10 set PLATFORM=%1
11
12 if "%PLATFORM%" == "x64" (
13   for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
14     if exist "%%~i\Inno Setup 6\iscc.exe" (
15       "%%~i\Inno Setup 6\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.is6.iss" || pause
16     ) else (
17       if exist "%%~i\Inno Setup 5\iscc.exe" (
18         "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
19       )
20     )
21   )
22 ) else (
23   for %%i in ("%ProgramFiles(x86)%" "%ProgramFiles%") do (
24     if exist "%%~i\Inno Setup 5\iscc.exe" (
25       "%%~i\Inno Setup 5\iscc.exe" "Installer\innosetup\WinMerge%PLATFORM%.iss" || pause
26     )
27   )
28 )
29
30 goto :eof