summaryrefslogtreecommitdiffstats
path: root/tools/installer/batch
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:18:55 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:18:55 (GMT)
commite5fcad302d86d316390c6b0f62759a067313e8a9 (patch)
treec2afbf6f1066b6ce261f14341cf6d310e5595bc1 /tools/installer/batch
downloadQt-e5fcad302d86d316390c6b0f62759a067313e8a9.zip
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.gz
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.bz2
Long live Qt 4.5!
Diffstat (limited to 'tools/installer/batch')
-rwxr-xr-xtools/installer/batch/build.bat160
-rwxr-xr-xtools/installer/batch/copy.bat124
-rwxr-xr-xtools/installer/batch/delete.bat76
-rwxr-xr-xtools/installer/batch/env.bat144
-rwxr-xr-xtools/installer/batch/extract.bat86
-rwxr-xr-xtools/installer/batch/installer.bat250
-rwxr-xr-xtools/installer/batch/log.bat61
-rwxr-xr-xtools/installer/batch/toupper.bat72
8 files changed, 973 insertions, 0 deletions
diff --git a/tools/installer/batch/build.bat b/tools/installer/batch/build.bat
new file mode 100755
index 0000000..ee90f92
--- /dev/null
+++ b/tools/installer/batch/build.bat
@@ -0,0 +1,160 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:begin
+for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_COMPILER=%%~m& set IWMAKE_TMP=%%~n
+
+if "%IWMAKE_TMP%"=="" set IWMAKE_TMP=build_%IWMAKE_COMPILER%
+set IWMAKE_BUILD=%IWMAKE_ROOT%\%IWMAKE_TMP%
+if not exist %IWMAKE_BUILD% mkdir %IWMAKE_BUILD%
+
+if not "%PATH%"=="" set IWMAKE_OLD_PATH=%PATH%
+if not "%QMAKESPEC%"=="" set IWMAKE_OLD_QMAKESPEC=%QMAKESPEC%
+if not "%QTDIR%"=="" set IWMAKE_OLD_QTDIR=%QTDIR%
+if not "%INCLUDE%"=="" set IWMAKE_OLD_INCLUDE=%INCLUDE%
+if not "%LIB%"=="" set IWMAKE_OLD_LIB=%LIB%
+
+set PATH=%IWMAKE_BUILD%\bin;%PATH%
+set QTDIR=%IWMAKE_BUILD%
+
+if "%IWMAKE_COMPILER%"=="vs2003" goto VS2003Env
+if "%IWMAKE_COMPILER%"=="vs2002" goto VS2002Env
+if "%IWMAKE_COMPILER%"=="vs2005" goto VS2005Env
+if "%IWMAKE_COMPILER%"=="vc60" goto VC60Env
+if "%IWMAKE_COMPILER%"=="mingw" goto MinGWEnv
+goto :eof
+
+:VS2003Env
+set QMAKESPEC=win32-msvc.net
+if not exist "%VS71COMNTOOLS%vsvars32.bat" echo VS2003 not found >> %IWMAKE_LOGFILE% & exit /b 1
+call "%VS71COMNTOOLS%vsvars32.bat" >> %IWMAKE_LOGFILE%
+set IWMAKE_MAKE=nmake
+goto :eof
+
+:VS2002Env
+set QMAKESPEC=win32-msvc.net
+if not exist "%VSCOMNTOOLS%vsvars32.bat" echo VS2002 not found >> %IWMAKE_LOGFILE% & exit /b 1
+call "%VSCOMNTOOLS%vsvars32.bat" >> %IWMAKE_LOGFILE%
+set IWMAKE_MAKE=nmake
+goto :eof
+
+:VS2005Env
+set QMAKESPEC=win32-msvc2005
+if not exist "%VS80COMNTOOLS%vsvars32.bat" echo VS2005 not found >> %IWMAKE_LOGFILE% & exit /b 1
+call "%VS80COMNTOOLS%vsvars32.bat" >> %IWMAKE_LOGFILE%
+set IWMAKE_MAKE=nmake
+goto :eof
+
+:VC60Env
+set QMAKESPEC=win32-msvc
+if not exist "%ProgramFiles%\Microsoft Visual Studio\VC98\Bin\vcvars32.bat" echo VC60 not found >> %IWMAKE_LOGFILE% & exit /b 1
+call "%ProgramFiles%\Microsoft Visual Studio\VC98\Bin\vcvars32.bat" >> %IWMAKE_LOGFILE%
+set IWMAKE_MAKE=nmake
+goto :eof
+
+:MinGWEnv
+set QMAKESPEC=win32-g++
+if not exist %IWMAKE_MINGWPATH%\bin\gcc.exe echo MinGW not found in %IWMAKE_MINGWPATH% >> %IWMAKE_LOGFILE% & exit /b 1
+set PATH=%IWMAKE_MINGWPATH%\bin;%PATH%
+set IWMAKE_MAKE=mingw32-make
+goto :eof
+
+:finish
+ if not "%IWMAKE_OLD_PATH%"=="" set PATH=%IWMAKE_OLD_PATH%& set IWMAKE_OLD_PATH=
+ if not "%IWMAKE_OLD_QMAKESPEC%"=="" set QMAKESPEC=%IWMAKE_OLD_QMAKESPEC%& set IWMAKE_OLD_QMAKESPEC=
+ if not "%IWMAKE_OLD_QTDIR%"=="" set QTDIR=%IWMAKE_OLD_QTDIR%& set IWMAKE_OLD_QTDIR=
+ if not "%IWMAKE_OLD_INCLUDE%"=="" set INCLUDE=%IWMAKE_OLD_INCLUDE%& set IWMAKE_OLD_INCLUDE=
+ if not "%IWMAKE_OLD_LIB%"=="" set LIB=%IWMAKE_OLD_LIB%& set IWMAKE_OLD_LIB=
+goto :eof
+
+:configure
+ pushd %IWMAKE_BUILD%
+ configure %~1 >> %IWMAKE_LOGFILE% 2>&1
+ popd
+goto :eof
+
+:bin
+ pushd %IWMAKE_BUILD%
+ %IWMAKE_MAKE% %~1 >>%IWMAKE_LOGFILE% 2>&1
+ popd
+goto :eof
+
+:binInDir
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ pushd %IWMAKE_BUILD%\%IWMAKE_TMP%
+ %IWMAKE_MAKE% %IWMAKE_TMP2% >> %IWMAKE_LOGFILE% 2>&1
+ popd
+goto :eof
+
+:DBPlugins
+ call "%IWMAKE_SCRIPTDIR%\batch\copy.bat" extsync sql
+ set IWMAKE_SQL_OLD_LIB=%LIB%
+ pushd %IWMAKE_BUILD%\src\plugins\sqldrivers\mysql
+ set LIB=%IWMAKE_ROOT%\sql\mysql\lib\debug;%IWMAKE_SQL_OLD_LIB%
+ qmake "INCLUDEPATH+=%IWMAKE_ROOT%\sql\mysql\include" "LIBS+=libmysql.lib ws2_32.lib advapi32.lib user32.lib" >> %IWMAKE_LOGFILE% 2>&1
+ %IWMAKE_MAKE% debug >> %IWMAKE_LOGFILE% 2>&1
+ set LIB=%IWMAKE_ROOT%\sql\mysql\lib\opt;%IWMAKE_SQL_OLD_LIB%
+ qmake "INCLUDEPATH+=%IWMAKE_ROOT%\sql\mysql\include" "LIBS+=libmysql.lib ws2_32.lib advapi32.lib" >> %IWMAKE_LOGFILE% 2>&1
+ %IWMAKE_MAKE% release >> %IWMAKE_LOGFILE% 2>&1
+ popd
+
+ set LIB=%IWMAKE_ROOT%\sql\%IWMAKE_COMPILER%;%IWMAKE_SQL_OLD_LIB%
+ pushd %IWMAKE_BUILD%\src\plugins\sqldrivers\psql
+ qmake "INCLUDEPATH+=%IWMAKE_ROOT%\sql\include\psql" "LIBS+=libpqd.lib ws2_32.lib advapi32.lib shfolder.lib shell32.lib" >> %IWMAKE_LOGFILE% 2>&1
+ %IWMAKE_MAKE% debug >> %IWMAKE_LOGFILE% 2>&1
+ qmake "INCLUDEPATH+=%IWMAKE_ROOT%\sql\include\psql" "LIBS+=libpq.lib ws2_32.lib advapi32.lib shfolder.lib shell32.lib" >> %IWMAKE_LOGFILE% 2>&1
+ %IWMAKE_MAKE% release >> %IWMAKE_LOGFILE% 2>&1
+ popd
+ set LIB=%IWMAKE_SQL_OLD_LIB%
+ set IWMAKE_SQL_OLD_LIB=
+goto :eof
+
+:root
+ set IWMAKE_BUILD=%~1
+ if not exist %IWMAKE_BUILD% mkdir %IWMAKE_BUILD%
+goto :eof
+
+:END
diff --git a/tools/installer/batch/copy.bat b/tools/installer/batch/copy.bat
new file mode 100755
index 0000000..0fcb5a6
--- /dev/null
+++ b/tools/installer/batch/copy.bat
@@ -0,0 +1,124 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:dest
+ set IWMAKE_OUTDIR=%IWMAKE_ROOT%\%~1
+ if not exist %IWMAKE_OUTDIR% mkdir %IWMAKE_OUTDIR%
+goto :eof
+
+:src
+ set IWMAKE_SRCDIR=%IWMAKE_ROOT%\%~1
+ if not exist %IWMAKE_SRCDIR% mkdir %IWMAKE_SRCDIR%
+goto :eof
+
+:destAbs
+ set IWMAKE_OUTDIR=%1
+ if not exist %IWMAKE_OUTDIR% mkdir %IWMAKE_OUTDIR%
+goto :eof
+
+:srcAbs
+ set IWMAKE_SRCDIR=%1
+ if not exist %IWMAKE_SRCDIR% mkdir %IWMAKE_SRCDIR%
+goto :eof
+
+:extsync
+ if exist %IWMAKE_ROOT%\%~1 rd /S /Q %IWMAKE_ROOT%\%~1 >> %IWMAKE_LOGFILE%
+ xcopy /H /Y /Q /I /R /E %IWMAKE_EXTERNAL%\%~1 %IWMAKE_ROOT%\%~1 >> %IWMAKE_LOGFILE%
+goto :eof
+
+:all
+ xcopy /H /Y /Q /I /R /S %IWMAKE_SRCDIR%\%~1 %IWMAKE_OUTDIR%\ >> %IWMAKE_LOGFILE%
+goto :eof
+
+:filesEx
+ for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n& set IWMAKE_TMP3=%%~o
+ echo %IWMAKE_TMP3% > %IWMAKE_ROOT%\iwmake_exclude
+ xcopy /H /Y /Q /I /R /S /EXCLUDE:%IWMAKE_ROOT%\iwmake_exclude %IWMAKE_SRCDIR%\%IWMAKE_TMP% %IWMAKE_OUTDIR%\%IWMAKE_TMP2% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:file
+ set IWMAKE_TMP=%~1
+ set IWMAKE_TMP2=%~nx1
+ echo set IWMAKE_TMP3=%%IWMAKE_TMP:%IWMAKE_TMP2%=%%>"%IWMAKE_ROOT%\iwmake_tmp.bat"
+ call %IWMAKE_ROOT%\iwmake_tmp.bat
+ if not exist "%IWMAKE_OUTDIR%\%IWMAKE_TMP3%" mkdir "%IWMAKE_OUTDIR%\%IWMAKE_TMP3%"
+ xcopy /H /Y /Q /I /R %IWMAKE_SRCDIR%\%IWMAKE_TMP% %IWMAKE_OUTDIR%\%IWMAKE_TMP3% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:fileAndRename
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n& set IWMAKE_TMP4=%%~nxn
+ echo set IWMAKE_TMP3=%%IWMAKE_TMP2:%IWMAKE_TMP4%=%%>"%IWMAKE_ROOT%\iwmake_tmp.bat"
+ call %IWMAKE_ROOT%\iwmake_tmp.bat
+ if not exist "%IWMAKE_OUTDIR%\%IWMAKE_TMP3%" mkdir "%IWMAKE_OUTDIR%\%IWMAKE_TMP3%"
+ echo > %IWMAKE_OUTDIR%\%IWMAKE_TMP2%
+ xcopy /H /Y /Q /R %IWMAKE_SRCDIR%\%IWMAKE_TMP% %IWMAKE_OUTDIR%\%IWMAKE_TMP2% >> %IWMAKE_LOGFILE%
+ set IWMAKE_TMP4=
+goto :eof
+
+:files
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ if not exist "%IWMAKE_OUTDIR%\%IWMAKE_TMP2%" mkdir "%IWMAKE_OUTDIR%\%IWMAKE_TMP2%"
+ xcopy /H /Y /Q /I /R /S %IWMAKE_SRCDIR%\%IWMAKE_TMP% %IWMAKE_OUTDIR%\%IWMAKE_TMP2% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:runtime
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ if "%IWMAKE_TMP2%" == "" set IWMAKE_TMP2=bin
+ xcopy /H /Y /Q /I /R %SystemRoot%\system32\msvcr%IWMAKE_TMP%.dll %IWMAKE_OUTDIR%\%IWMAKE_TMP2%\ >> %IWMAKE_LOGFILE%
+ xcopy /H /Y /Q /I /R %SystemRoot%\system32\msvcp%IWMAKE_TMP%.dll %IWMAKE_OUTDIR%\%IWMAKE_TMP2%\ >> %IWMAKE_LOGFILE%
+goto :eof
+
+:syncqt
+ pushd %IWMAKE_OUTDIR%
+ if exist "include" rd /S /Q include
+ if not "%QTDIR%"=="" set IWMAKE_OLD_QTDIR=%QTDIR%
+ set QTDIR=%IWMAKE_OUTDIR%
+ "%IWMAKE_PERLPATH%\perl" %QTDIR%\bin\syncqt -copy >> %IWMAKE_LOGFILE% 2>&1
+ if not "%IWMAKE_OLD_QTDIR%"=="" set QTDIR=%IWMAKE_OLD_QTDIR%
+ popd
+goto :eof
+
+:END
diff --git a/tools/installer/batch/delete.bat b/tools/installer/batch/delete.bat
new file mode 100755
index 0000000..1174cde
--- /dev/null
+++ b/tools/installer/batch/delete.bat
@@ -0,0 +1,76 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:destDir
+ if exist "%IWMAKE_OUTDIR%\%~1" rd /S /Q %IWMAKE_OUTDIR%\%~1
+goto :eof
+
+:dir
+ if exist "%IWMAKE_ROOT%\%~1" rd /S /Q %IWMAKE_ROOT%\%~1
+goto :eof
+
+:dirAbs
+ if exist "%~1" rd /S /Q %~1
+goto :eof
+
+:file
+ del /Q /F %IWMAKE_OUTDIR%\%~1 >> %IWMAKE_LOGFILE% 2>&1
+ exit /b 0
+goto :eof
+
+:files
+ del /S /Q /F %IWMAKE_OUTDIR%\%~1 >> %IWMAKE_LOGFILE% 2>&1
+ exit /b 0
+goto :eof
+
+:line
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ if exist "%IWMAKE_ROOT%\tmp_line.txt" del /Q /F "%IWMAKE_ROOT%\tmp_line.txt" >> %IWMAKE_LOGFILE%
+ type "%IWMAKE_ROOT%\%IWMAKE_TMP%" | find /V "%IWMAKE_TMP2%" >> "%IWMAKE_ROOT%\tmp_line.txt"
+ xcopy /Y /Q /R %IWMAKE_ROOT%\tmp_line.txt %IWMAKE_ROOT%\%IWMAKE_TMP% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:END
diff --git a/tools/installer/batch/env.bat b/tools/installer/batch/env.bat
new file mode 100755
index 0000000..cbea4f5
--- /dev/null
+++ b/tools/installer/batch/env.bat
@@ -0,0 +1,144 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:setglobals
+set IWMAKE_PARSESECTION=1
+set IWMAKE_MINGWPATH=c:\MinGW\bin
+set IWMAKE_STARTDIR=%CD%
+set IWMAKE_NSISCONF=%IWMAKE_SCRIPTDIR%\nsis\config.nsh
+set IWMAKE_ROOT=c:\package
+set IWMAKE_OUTDIR=%IWMAKE_ROOT%
+set IWMAKE_SRCDIR=%IWMAKE_ROOT%
+set IWMAKE_EXTRACTDEST=%IWMAKE_ROOT%
+set IWMAKE_NSISPATH=%PROGRAMFILES%\NSIS
+call %IWMAKE_SCRIPTDIR%\batch\log.bat fileAbs "%IWMAKE_STARTDIR%\log.txt"
+goto :eof
+
+:signPath
+ set IWMAKE_SIGNPATH=%~1
+goto :eof
+
+:wgetPath
+ set IWMAKE_WGET=%~1
+goto :eof
+
+:wgetDir
+ set IWMAKE_WGET=%IWMAKE_ROOT%\%~1
+goto :eof
+
+:NSISPath
+ set IWMAKE_NSISPATH=%~1
+goto :eof
+
+:PerlPath
+ set IWMAKE_PERLPATH=%~1
+goto :eof
+
+:MinGWPath
+ set IWMAKE_MINGWPATH=%~1
+goto :eof
+
+:unzipApp
+ set IWMAKE_UNZIPAPP=%~1
+goto :eof
+
+:releaseLocation
+ set IWMAKE_WGETUSER=
+ set IWMAKE_WGETPASS=
+ for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& if not "%%~n"=="" set IWMAKE_TMP2=%%~n& if not "%%~o"=="" set IWMAKE_TMP3=%%~o
+ if not "%IWMAKE_TMP2%"=="" set IWMAKE_WGETUSER=--http-user=%IWMAKE_TMP2%
+ if not "%IWMAKE_TMP3%"=="" set IWMAKE_WGETPASS=--http-passwd=%IWMAKE_TMP3%
+ set IWMAKE_RELEASELOCATION=%IWMAKE_TMP%
+goto :eof
+
+:removeglobals
+if not "%IWMAKE_OLD_PATH%"=="" call %IWMAKE_SCRIPTDIR%\batch\build.bat finish
+set IWMAKE_RELEASELOCATION=
+set IWMAKE_NSISPATH=
+set IWMAKE_SECTION=
+set IWMAKE_WGET=
+set IWMAKE_WGETUSER=
+set IWMAKE_WGETPASS=
+set IWMAKE_UNZIPAPP=
+set IWMAKE_MINGWPATH=
+set IWMAKE_MAKE=
+set IWMAKE_PERLPATH=
+set IWMAKE_STARTDIR=
+set IWMAKE_SCRIPTDIR=
+set IWMAKE_NSISCONF=
+set IWMAKE_RESULT=
+set IWMAKE_TMP=
+set IWMAKE_TMP2=
+set IWMAKE_TMP3=
+set IWMAKE_STATUS=
+set IWMAKE_LOGFILE=
+set IWMAKE_BUILD=
+set IWMAKE_ROOT=
+set IWMAKE_OUTDIR=
+set IWMAKE_EXTERNAL=
+set IWMAKE_OLD_PATH=
+set IWMAKE_OLD_QMAKESPEC=
+set IWMAKE_OLD_QTDIR=
+set IWMAKE_OLD_INCLUDE=
+set IWMAKE_OLD_LIB=
+set IWMAKE_COMPILER=
+set IWMAKE_SRCDIR=
+set IWMAKE_EXTRACTSRC=
+set IWMAKE_EXTRACTDEST=
+set IWMAKE_PARSESECTION=
+set IWMAKE_OUTPUT_FILE=
+set IWMAKE_SIGNPATH=
+goto :eof
+
+:root
+set IWMAKE_ROOT=%~1
+goto :eof
+
+:extroot
+set IWMAKE_EXTERNAL=%~1
+goto :eof
+
+:END
diff --git a/tools/installer/batch/extract.bat b/tools/installer/batch/extract.bat
new file mode 100755
index 0000000..59554bc
--- /dev/null
+++ b/tools/installer/batch/extract.bat
@@ -0,0 +1,86 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:dest
+ set IWMAKE_EXTRACTDEST=%IWMAKE_ROOT%\%~1
+goto :eof
+
+:extUnpack
+ set IWMAKE_EXTRACTSRC=%~n1
+ pushd %IWMAKE_ROOT%
+ if exist "%IWMAKE_EXTRACTSRC%.zip" del /Q /F "%IWMAKE_EXTRACTSRC%.zip"
+ %IWMAKE_WGET%\wget %IWMAKE_WGETUSER% %IWMAKE_WGETPASS% %IWMAKE_RELEASELOCATION%/%IWMAKE_EXTRACTSRC%.zip >> %IWMAKE_LOGFILE% 2>&1
+ popd
+ call :unpack "%~1"
+goto :eof
+
+:unpack
+ set IWMAKE_EXTRACTSRC=%~n1
+ pushd %IWMAKE_ROOT%
+ if exist "%IWMAKE_EXTRACTDEST%" rd /S /Q %IWMAKE_EXTRACTDEST% >> %IWMAKE_LOGFILE% 2>&1
+ if exist "%IWMAKE_EXTRACTSRC%" rd /S /Q %IWMAKE_EXTRACTSRC% >> %IWMAKE_LOGFILE% 2>&1
+ %IWMAKE_UNZIPAPP% %IWMAKE_EXTRACTSRC%.zip >> %IWMAKE_LOGFILE%
+ popd
+ move %IWMAKE_ROOT%\%IWMAKE_EXTRACTSRC% %IWMAKE_EXTRACTDEST% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:extPatch
+ pushd %IWMAKE_ROOT%
+ if exist "%~1" del /Q /F "%~1"
+ %IWMAKE_WGET%\wget %IWMAKE_WGETUSER% %IWMAKE_WGETPASS% %IWMAKE_RELEASELOCATION%/%~1 >> %IWMAKE_LOGFILE% 2>&1
+ popd
+ call :patch "%~1"
+goto :eof
+
+:patch
+ pushd %IWMAKE_ROOT%
+ %IWMAKE_UNZIPAPP% %~1 >> %IWMAKE_LOGFILE%
+ popd
+ xcopy /R /I /S /Q /Y %IWMAKE_ROOT%\%IWMAKE_EXTRACTSRC%\*.* %IWMAKE_EXTRACTDEST%\ >> %IWMAKE_LOGFILE%
+ rd /S /Q %IWMAKE_ROOT%\%IWMAKE_EXTRACTSRC% >> %IWMAKE_LOGFILE%
+goto :eof
+
+:END
diff --git a/tools/installer/batch/installer.bat b/tools/installer/batch/installer.bat
new file mode 100755
index 0000000..c5c51de
--- /dev/null
+++ b/tools/installer/batch/installer.bat
@@ -0,0 +1,250 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:begin
+ call :reset
+ echo !define PRODUCT_NAME "%~1" >> %IWMAKE_NSISCONF%
+ echo !define INSTALL_ROOT "%IWMAKE_ROOT%" >> %IWMAKE_NSISCONF%
+goto :eof
+
+:output
+ set IWMAKE_OUTPUT_FILE=%~1
+ echo !define OUTPUT_FILE "%~1" >> %IWMAKE_NSISCONF%
+goto :eof
+
+:module
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %~1
+ echo !define MODULE_%IWMAKE_RESULT% >> %IWMAKE_NSISCONF%
+goto :eof
+
+:enable
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %~1
+ echo !define USE_%IWMAKE_RESULT:"=% >> %IWMAKE_NSISCONF%
+goto :eof
+
+:disable
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %~1
+ echo !undef USE_%IWMAKE_RESULT:"=% >> %IWMAKE_NSISCONF%
+goto :eof
+
+:startmenu
+ echo !define DEFAULT_STARTMENU_STRING "%~1" >> %IWMAKE_NSISCONF%
+goto :eof
+
+:reset
+ if exist "%IWMAKE_NSISCONF%" del /Q /F "%IWMAKE_NSISCONF%"
+goto :eof
+
+:instdir
+ for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n& set IWMAKE_TMP3="%%~o"
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ echo !define INSTDIR_%IWMAKE_TMP2% %IWMAKE_RESULT:"=% >> "%IWMAKE_NSISCONF%"
+ echo !define INSTDIR_%IWMAKE_TMP2%_TEXT %IWMAKE_TMP3% >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:version
+ echo !define PRODUCT_VERSION "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:readme
+ echo !define README_FILE "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:licenseFile
+ echo !define LICENSE_FILE "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:runfunction
+ echo !define RUN_FUNCTION "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:readmefunction
+ echo !define README_FUNCTION "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:welcomenote
+ echo !define WELCOME_NOTE "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:updateplugins
+ call "%IWMAKE_SCRIPTDIR%\batch\copy.bat" extsync INetLoad
+ xcopy /Q /Y /R "%IWMAKE_ROOT%\INetLoad\INetLoad.dll" "%IWMAKE_NSISPATH%\Plugins\" >> %IWMAKE_LOGFILE%
+:: xcopy /Q /Y /R "%IWMAKE_SCRIPTDIR%\nsis\qtnsisext\qtnsisext.dll" "%IWMAKE_NSISPATH%\Plugins\" >> %IWMAKE_LOGFILE%
+goto :eof
+
+:defineDir
+ for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n& set IWMAKE_TMP3=%%~o
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ set IWMAKE_TMP=%IWMAKE_RESULT%
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP2%
+ set IWMAKE_TMP2=%IWMAKE_RESULT%
+ echo !define MODULE_%IWMAKE_TMP%_%IWMAKE_TMP2% "%IWMAKE_ROOT%\%IWMAKE_TMP3%" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:define
+ for /F "tokens=1,2*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n& set IWMAKE_TMP3="%%~o"
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ set IWMAKE_TMP=%IWMAKE_RESULT%
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP2%
+ set IWMAKE_TMP2=%IWMAKE_RESULT%
+ if %IWMAKE_TMP3%=="" set IWMAKE_TMP3=
+ echo !define MODULE_%IWMAKE_TMP%_%IWMAKE_TMP2% %IWMAKE_TMP3% >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:src
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ set IWMAKE_TMP=%IWMAKE_RESULT%
+ set IWMAKE_TMP3="%IWMAKE_ROOT%\%IWMAKE_TMP2%"
+ echo !define MODULE_%IWMAKE_TMP%_ROOT %IWMAKE_TMP3% >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:buildDir
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ set IWMAKE_TMP=%IWMAKE_RESULT%
+ set IWMAKE_TMP3="%IWMAKE_ROOT%\%IWMAKE_TMP2%"
+ echo !define MODULE_%IWMAKE_TMP%_BUILDDIR %IWMAKE_TMP3% >> "%IWMAKE_NSISCONF%"
+ for /F "eol=- tokens=1,2,3" %%m in ('%SystemRoot%\system32\find "QT_PACKAGEDATE_STR" %IWMAKE_ROOT%\%IWMAKE_TMP2%\src\corelib\global\qglobal.h') do echo !define MODULE_LICENSECHECK_PACKAGEDATE %%o >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:compile
+ call :required
+ pushd %IWMAKE_SCRIPTDIR%\nsis
+ "%IWMAKE_NSISPATH%\makensis.exe" installer.nsi >> %IWMAKE_LOGFILE%
+ popd
+goto :eof
+
+:required
+ call :setrequired PRODUCT_NAME
+ call :setrequired INSTALL_ROOT
+ call :setrequired PRODUCT_VERSION
+ call :setrequired OUTPUT_FILE
+ call :setrequired INSTDIR_0
+ call :setrequired DEFAULT_STARTMENU_STRING
+goto :eof
+
+:setrequired
+ echo !ifndef %1 >> "%IWMAKE_NSISCONF%"
+ echo !error "%1 must be in the .conf file..." >> "%IWMAKE_NSISCONF%"
+ echo !endif >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:makeFileList
+ for /F "tokens=1*" %%m in ("%~1") do set IWMAKE_TMP=%%~m& set IWMAKE_TMP2=%%~n
+ call "%IWMAKE_SCRIPTDIR%\batch\toupper.bat" %IWMAKE_TMP%
+ set IWMAKE_TMP=%IWMAKE_RESULT%
+ set IWMAKE_TMP3="%IWMAKE_ROOT%\%IWMAKE_TMP2%"
+
+
+ echo !macro MODULE_%IWMAKE_TMP%_INSTALLFILES >> "%IWMAKE_NSISCONF%"
+
+ pushd %IWMAKE_TMP3%
+
+ echo set IWMAKE_TMP2=%%IWMAKE_TMP2:%CD%\=%% > "%IWMAKE_ROOT%\iwmake_tmp.bat"
+
+ dir /AD /B /S | %SystemRoot%\system32\sort /R > "%IWMAKE_ROOT%\iwmake_tmp.txt"
+ for /F "tokens=1" %%m in (%IWMAKE_ROOT%\iwmake_tmp.txt) do call :addInstallDirectory "%%m"
+
+
+ dir /A-D /B /S > "%IWMAKE_ROOT%\iwmake_tmp.txt"
+ for /F "tokens=1" %%m in (%IWMAKE_ROOT%\iwmake_tmp.txt) do call :addInstallFile "%%m"
+
+ popd
+ echo !macroend >> "%IWMAKE_NSISCONF%"
+
+
+ echo !macro MODULE_%IWMAKE_TMP%_REMOVE removepath >> "%IWMAKE_NSISCONF%"
+ echo strcmp ${removepath} "" MODULE_%IWMAKE_TMP%_REMOVE_SAFETYLABEL >> "%IWMAKE_NSISCONF%"
+ pushd %IWMAKE_TMP3%
+
+ echo set IWMAKE_TMP2=%%IWMAKE_TMP2:%CD%\=%% > "%IWMAKE_ROOT%\iwmake_tmp.bat"
+
+ dir /A-D /B /S > "%IWMAKE_ROOT%\iwmake_tmp.txt"
+ for /F "tokens=1" %%m in (%IWMAKE_ROOT%\iwmake_tmp.txt) do call :addRemoveFiles "%%m"
+
+ dir /AD /B /S | %SystemRoot%\system32\sort /R > "%IWMAKE_ROOT%\iwmake_tmp.txt"
+ for /F "tokens=1" %%m in (%IWMAKE_ROOT%\iwmake_tmp.txt) do call :addRemoveDirectory "%%m"
+
+ popd
+ echo MODULE_%IWMAKE_TMP%_REMOVE_SAFETYLABEL: >> "%IWMAKE_NSISCONF%"
+ echo !macroend >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:addInstallFile
+ set IWMAKE_TMP2=%~1
+ call "%IWMAKE_ROOT%\iwmake_tmp.bat"
+ echo File "/oname=%IWMAKE_TMP2%" "%~1" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:addInstallDirectory
+ set IWMAKE_TMP2=%~1
+ call "%IWMAKE_ROOT%\iwmake_tmp.bat"
+ echo CreateDirectory "$OUTDIR\%IWMAKE_TMP2%" >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:addRemoveDirectory
+ set IWMAKE_TMP2=%~1
+ call "%IWMAKE_ROOT%\iwmake_tmp.bat"
+ echo RMDir ${removepath}\%IWMAKE_TMP2% >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:addRemoveFiles
+ set IWMAKE_TMP2=%~1
+ call "%IWMAKE_ROOT%\iwmake_tmp.bat"
+ echo Delete ${removepath}\%IWMAKE_TMP2% >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:sign
+ echo Signing Installer ...
+ %IWMAKE_SIGNPATH%\signtool.exe sign /v /t http://timestamp.verisign.com/scripts/timestamp.dll /f "%IWMAKE_SIGNPATH%\keys.pfx" "%IWMAKE_OUTPUT_FILE%" >> %IWMAKE_LOGFILE%
+goto :eof
+
+:openpackage
+ echo !define OPENSOURCE_BUILD >> "%IWMAKE_NSISCONF%"
+goto :eof
+
+:END
diff --git a/tools/installer/batch/log.bat b/tools/installer/batch/log.bat
new file mode 100755
index 0000000..094df8f
--- /dev/null
+++ b/tools/installer/batch/log.bat
@@ -0,0 +1,61 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+call :%1 %2
+goto END
+
+:file
+set IWMAKE_LOGFILE=%IWMAKE_ROOT%\%~1
+call :reset
+goto :eof
+
+:fileAbs
+set IWMAKE_LOGFILE=%1
+call :reset
+goto :eof
+
+:reset
+date /T > %IWMAKE_LOGFILE%
+goto :eof
+
+:END
diff --git a/tools/installer/batch/toupper.bat b/tools/installer/batch/toupper.bat
new file mode 100755
index 0000000..5e19f0f
--- /dev/null
+++ b/tools/installer/batch/toupper.bat
@@ -0,0 +1,72 @@
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: Contact: Qt Software Information (qt-info@nokia.com)
+::
+:: This file is part of the tools applications of the Qt Toolkit.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the either Technology Preview License Agreement or the
+:: Beta Release License Agreement.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain
+:: additional rights. These rights are described in the Nokia Qt LGPL
+:: Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+:: package.
+::
+:: GNU General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU
+:: General Public License version 3.0 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.GPL included in the
+:: packaging of this file. Please review the following information to
+:: ensure the GNU General Public License version 3.0 requirements will be
+:: met: http://www.gnu.org/copyleft/gpl.html.
+::
+:: If you are unsure which license is appropriate for your use, please
+:: contact the sales department at qt-sales@nokia.com.
+:: $QT_END_LICENSE$
+::
+:: This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+:: WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+set IWMAKE_RESULT=%1
+if [%IWMAKE_RESULT%]==[] goto :eof
+set IWMAKE_RESULT=%IWMAKE_RESULT:a=A%
+set IWMAKE_RESULT=%IWMAKE_RESULT:b=B%
+set IWMAKE_RESULT=%IWMAKE_RESULT:c=C%
+set IWMAKE_RESULT=%IWMAKE_RESULT:d=D%
+set IWMAKE_RESULT=%IWMAKE_RESULT:e=E%
+set IWMAKE_RESULT=%IWMAKE_RESULT:f=F%
+set IWMAKE_RESULT=%IWMAKE_RESULT:g=G%
+set IWMAKE_RESULT=%IWMAKE_RESULT:h=H%
+set IWMAKE_RESULT=%IWMAKE_RESULT:i=I%
+set IWMAKE_RESULT=%IWMAKE_RESULT:j=J%
+set IWMAKE_RESULT=%IWMAKE_RESULT:k=K%
+set IWMAKE_RESULT=%IWMAKE_RESULT:l=L%
+set IWMAKE_RESULT=%IWMAKE_RESULT:m=M%
+set IWMAKE_RESULT=%IWMAKE_RESULT:n=N%
+set IWMAKE_RESULT=%IWMAKE_RESULT:o=O%
+set IWMAKE_RESULT=%IWMAKE_RESULT:p=P%
+set IWMAKE_RESULT=%IWMAKE_RESULT:q=Q%
+set IWMAKE_RESULT=%IWMAKE_RESULT:r=R%
+set IWMAKE_RESULT=%IWMAKE_RESULT:s=S%
+set IWMAKE_RESULT=%IWMAKE_RESULT:t=T%
+set IWMAKE_RESULT=%IWMAKE_RESULT:u=U%
+set IWMAKE_RESULT=%IWMAKE_RESULT:v=V%
+set IWMAKE_RESULT=%IWMAKE_RESULT:w=W%
+set IWMAKE_RESULT=%IWMAKE_RESULT:x=X%
+set IWMAKE_RESULT=%IWMAKE_RESULT:y=Y%
+set IWMAKE_RESULT=%IWMAKE_RESULT:z=Z%
+