1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3 ;; Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ;; All rights reserved.
5 ;; Contact: Nokia Corporation (qt-info@nokia.com)
7 ;; This file is part of the tools applications of the Qt Toolkit.
9 ;; $QT_BEGIN_LICENSE:LGPL$
10 ;; No Commercial Usage
11 ;; This file contains pre-release code and may not be distributed.
12 ;; You may use this file in accordance with the terms and conditions
13 ;; contained in the Technology Preview License Agreement accompanying
16 ;; GNU Lesser General Public License Usage
17 ;; Alternatively, this file may be used under the terms of the GNU Lesser
18 ;; General Public License version 2.1 as published by the Free Software
19 ;; Foundation and appearing in the file LICENSE.LGPL included in the
20 ;; packaging of this file. Please review the following information to
21 ;; ensure the GNU Lesser General Public License version 2.1 requirements
22 ;; will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 ;; In addition, as a special exception, Nokia gives you certain additional
25 ;; rights. These rights are described in the Nokia Qt LGPL Exception
26 ;; version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 ;; If you have questions regarding the use of this file, please contact
29 ;; Nokia at qt-info@nokia.com.
40 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
42 !macro MINGW_INITIALIZE
43 !include "includes\qtcommon.nsh"
44 !ifndef MODULE_MINGW_NAME
45 !define MODULE_MINGW_NAME "Qt"
47 !ifndef MODULE_MINGW_VERSION
48 !define MODULE_MINGW_VERSION "${PRODUCT_VERSION}"
50 !ifndef MODULE_MINGW_BUILDDIR
51 !error "MODULE_MINGW_BUILDDIR not defined!"
53 !ifndef MODULE_MINGW_ROOT
54 !error "MODULE_MINGW_ROOT not defined!"
56 !ifndef MODULE_MINGW_URL
57 !define MODULE_MINGW_URL "ftp://ftp.qt.nokia.com/misc"
59 !ifndef MODULE_MINGW_COMPILERVERSION
60 !define MODULE_MINGW_COMPILERVERSION "3.4.2"
62 !ifndef MODULE_MINGW_LICENSE
63 !define MODULE_MINGW_LICENSE "C:\MinGW\COPYING"
66 !define MODULE_MINGW_DOWNLOADPAGE "gwdownload.ini"
67 !define MODULE_MINGW_MIRRORPAGE "gwmirror.ini"
68 !define MODULE_MINGW_RUNTIME_LIB "mingw*.dll"
69 !define MODULE_MINGW_DOWNLOADFILE "MinGW-${MODULE_MINGW_COMPILERVERSION}"
71 var MODULE_MINGW_DOWNLOAD
72 var MODULE_MINGW_SOURCEDOWNLOAD
73 var MODULE_MINGW_MIRRORS
74 var MODULE_MINGW_INSTOK
75 var MODULE_MINGW_COMPILERINSTDIR
77 LangString ModuleMinGWTitle ${LANG_ENGLISH} "MinGW Installation"
78 LangString ModuleMinGWDescription ${LANG_ENGLISH} "You need MinGW to be able to compile Qt applications."
79 LangString ModuleMinGWMirrorTitle ${LANG_ENGLISH} "MinGW Download Mirror"
80 LangString ModuleMinGWMirrorDescription ${LANG_ENGLISH} "Select a download mirror."
82 Page custom ModuleMinGWDownloadPageEnter ModuleMinGWDownloadPageExit
83 !define MUI_PAGE_CUSTOMFUNCTION_PRE ModuleMinGWLicensePageEnter
84 !define MUI_PAGE_HEADER_TEXT "MinGW License Agreement"
85 !define MUI_PAGE_HEADER_SUBTEXT "Please review the license terms before installing MinGW."
86 !define MUI_LICENSEPAGE_TEXT_TOP "MinGW License Information"
87 !insertmacro MUI_PAGE_LICENSE "${MODULE_MINGW_LICENSE}"
88 Page custom ModuleMinGWMirrorPageEnter ModuleMinGWMirrorPageExit
90 !include "includes\qtenv.nsh"
94 Section "${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION}" MINGW_SEC01
95 strcmp "$MINGW_INSTDIR" "" 0 +5
96 StrCpy $MINGW_INSTDIR "$INSTDIR\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION}"
101 WriteRegDWORD SHCTX "$PRODUCT_UNIQUE_KEY" "MINGWInstalled" 1
103 SetOutPath "$MINGW_INSTDIR"
105 !insertmacro MODULE_MINGW_INSTALLFILES
107 push "$MINGW_INSTDIR\bin"
108 call AddStartmenuApplication
110 push ${MODULE_MINGW_BUILDDIR}
111 push "$MINGW_INSTDIR"
114 IfFileExists "$MINGW_INSTDIR\.qmake.cache" 0 +5
115 push "$MINGW_INSTDIR\.qmake.cache"
116 push ${MODULE_MINGW_BUILDDIR}
120 IfFileExists "$MINGW_INSTDIR\mkspecs\default\qmake.conf" 0 +5
121 push "$MINGW_INSTDIR\mkspecs\default\qmake.conf"
122 push ${MODULE_MINGW_BUILDDIR}
127 call PatchCommonBinaryFiles
130 call PatchLicenseInformation
132 WriteRegStr SHCTX "SOFTWARE\Trolltech\Common\${MODULE_MINGW_VERSION}\$LICENSE_PRODUCT" "Key" "$LICENSE_KEY"
135 call ModuleMinGWMakeEnvFile
136 CreateShortCut "$SMPROGRAMS\$STARTMENU_STRING\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION} Command Prompt.lnk" "%COMSPEC%" '/k "$MINGW_INSTDIR\bin\qtvars.bat"'
137 CreateShortCut "$SMPROGRAMS\$STARTMENU_STRING\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION} (Build Debug Libraries).lnk" "%COMSPEC%" '/k "$MINGW_INSTDIR\bin\qtvars.bat compile_debug"'
140 strcmp $MODULE_MINGW_DOWNLOAD "no" DoneMinGWInstall
141 DetailPrint "Installing MinGW into $MODULE_MINGW_COMPILERINSTDIR"
142 WriteRegStr SHCTX "$PRODUCT_UNIQUE_KEY" "MinGWInstDir" "$MODULE_MINGW_COMPILERINSTDIR"
143 nsExec::ExecToLog '"$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.exe" /S /D=$MODULE_MINGW_COMPILERINSTDIR'
145 strcmp $MODULE_MINGW_SOURCEDOWNLOAD "no" DoneMinGWInstall
146 DetailPrint "Installing MinGW sources into $MODULE_MINGW_COMPILERINSTDIR\src"
147 WriteRegDWORD SHCTX "$PRODUCT_UNIQUE_KEY" "MinGWSources" 1
148 nsExec::ExecToLog '"$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}-src.exe" /S /D=$MODULE_MINGW_COMPILERINSTDIR\src'
153 DetailPrint "Copying MinGW runtime..."
155 CopyFiles /SILENT "$MODULE_MINGW_COMPILERINSTDIR\bin\${MODULE_MINGW_RUNTIME_LIB}" "$MINGW_INSTDIR\bin"
159 Function EnableButtons
161 GetDlgItem $0 $HWNDPARENT 3
163 GetDlgItem $0 $HWNDPARENT 1
165 GetDlgItem $0 $HWNDPARENT 2
170 Function DisableButtons
172 GetDlgItem $0 $HWNDPARENT 3
174 GetDlgItem $0 $HWNDPARENT 1
176 GetDlgItem $0 $HWNDPARENT 2
181 Function ModuleMinGWDownloadPageEnter
182 strcmp $MODULE_MINGW_INSTOK "yes" 0 +2
185 !insertmacro MUI_HEADER_TEXT "$(ModuleMinGWTitle)" "$(ModuleMinGWTitleDescription)"
186 Call UpdateCtrlStates
187 !insertmacro MUI_INSTALLOPTIONS_DISPLAY "${MODULE_MINGW_DOWNLOADPAGE}"
188 !insertmacro MUI_INSTALLOPTIONS_WRITE "${MODULE_MINGW_DOWNLOADPAGE}" "Field 8" "State" "0"
191 Function ModuleMinGWMirrorPageEnter
192 strcmp $MODULE_MINGW_DOWNLOAD "yes" +2
195 !insertmacro MUI_HEADER_TEXT "$(ModuleMinGWMirrorTitle)" "$(ModuleMinGWMirrorDescription)"
196 !insertmacro MUI_INSTALLOPTIONS_DISPLAY "${MODULE_MINGW_MIRRORPAGE}"
199 Function ModuleMinGWLicensePageEnter
200 strcmp $MODULE_MINGW_DOWNLOAD "yes" +2
204 Function UpdateCtrlStates
209 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_DOWNLOADPAGE}" "Field 8" "State"
211 FindWindow $2 "#32770" "" $HWNDPARENT
212 GetDlgItem $1 $2 1205
214 GetDlgItem $1 $2 1202
216 GetDlgItem $1 $2 1203
220 GetDlgItem $1 $2 1206
222 GetDlgItem $1 $2 1207
224 GetDlgItem $1 $2 1208
227 GetDlgItem $1 $HWNDPARENT 1
229 SendMessage $1 ${WM_SETTEXT} 0 "STR:Next >"
231 SendMessage $1 ${WM_SETTEXT} 0 "STR:Install"
238 Function ModuleMinGWDownloadPageExit
242 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_DOWNLOADPAGE}" "Settings" "State"
243 strcmp "$0" "8" 0 NoNotify
244 Call UpdateCtrlStates
248 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_DOWNLOADPAGE}" "Field 8" "State"
249 strcmp "$0" "0" noDownload doDownload
252 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_DOWNLOADPAGE}" "Field 6" "State"
254 MessageBox MB_ICONEXCLAMATION|MB_OK "You need to specify an installation directory!"
257 strcpy $MODULE_MINGW_COMPILERINSTDIR $0
258 strcpy $MODULE_MINGW_DOWNLOAD "yes"
259 CreateDirectory "$MINGW_INSTDIR\downloads"
262 InetLoad::load /BANNER "Mirror Download" "Downloading mirrors from server..." "${MODULE_MINGW_URL}/${MODULE_MINGW_DOWNLOADFILE}.mirrors" "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.mirrors" /END
263 Pop $1 ;Get the return value
267 MessageBox MB_ICONEXCLAMATION|MB_RETRYCANCEL "Was not able to download mirror list ($1)." IDRETRY tryAgain 0
270 call ModuleMinGWReadMirrors
271 !insertmacro MUI_INSTALLOPTIONS_WRITE ${MODULE_MINGW_MIRRORPAGE} "Field 3" "ListItems" "$MODULE_MINGW_MIRRORS"
275 strcpy $MODULE_MINGW_DOWNLOAD "no"
276 strcpy $MODULE_MINGW_SOURCEDOWNLOAD "no"
277 call ModuleMinGWChecking
278 strcmp $MODULE_MINGW_INSTOK "yes" done
279 MessageBox MB_ICONEXCLAMATION|MB_YESNO "There is a problem with your MinGW installation:$\r$\n$MODULE_MINGW_INSTOK$\r$\nDo you still want to continue? (Your installation may not work)" IDNO tryAgain
292 Function ModuleMinGWMirrorPageExit
297 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_MIRRORPAGE}" "Field 3" "State"
299 MessageBox MB_ICONEXCLAMATION|MB_OK "You must select a mirror to download from!"
303 call ModuleMinGWGetMirror
307 InetLoad::load /BANNER "MinGW Download" "Downloading MinGW from server..." "$0/${MODULE_MINGW_DOWNLOADFILE}.exe" "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.exe" /END
308 Pop $2 ;get the return value
312 MessageBox MB_ICONEXCLAMATION|MB_OK "Was not able to download MinGW ($2). Please try another mirror."
315 !insertmacro MUI_INSTALLOPTIONS_READ $1 "${MODULE_MINGW_MIRRORPAGE}" "Field 2" "State"
319 InetLoad::load /BANNER "MinGW Sources Download" "Downloading MinGW Sources from server..." "$0/${MODULE_MINGW_DOWNLOADFILE}-src.exe" "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}-src.exe" /END
323 strcpy $MODULE_MINGW_SOURCEDOWNLOAD "yes"
326 MessageBox MB_ICONEXCLAMATION|MB_RETRYCANCEL "Was not able to download MinGW sources ($2). Please try another mirror?" IDRETRY tryAgain 0
343 Function ModuleMinGWReadMirrors
348 FileOpen $0 "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.mirrors" r
351 strcpy $MODULE_MINGW_MIRRORS ""
357 call ModuleMinGWRemoveNewLine
359 strcpy $MODULE_MINGW_MIRRORS "$MODULE_MINGW_MIRRORS|$1"
360 FileRead $0 $1 ;Jump over next line
366 strlen $1 $MODULE_MINGW_MIRRORS
367 intcmp $1 0 failed failed cleanup
370 MessageBox MB_ICONSTOP|MB_OK "Unable to parse mirror list, exiting!"
378 #this just removes the last two chars
379 Function ModuleMinGWRemoveNewLine
386 strcpy $2 $0 1 $1 ;get last char
388 strcmp "$2" "$\n" 0 +2
391 strcpy $2 $0 1 $1 ;get last char
392 strcmp "$2" "$\r" 0 +2
406 Function ModuleMinGWGetMirror
415 FileOpen $0 "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.mirrors" r
422 call ModuleMinGWRemoveNewLine
424 strcmp $1 $2 0 nextline
428 call ModuleMinGWRemoveNewLine
435 intcmp $2 0 failed failed cleanup
438 MessageBox MB_ICONSTOP|MB_OK "Unable to parse mirror list, exiting!"
448 Function ModuleMinGWChecking
451 ### update with plugin
452 strcpy $MODULE_MINGW_INSTOK "yes"
453 strcpy $MODULE_MINGW_COMPILERINSTDIR "C:\MinGW" ;fallback dir
455 !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_MINGW_DOWNLOADPAGE}" "Field 3" "State"
457 strcpy $MODULE_MINGW_COMPILERINSTDIR $0
459 IfFileExists "$MODULE_MINGW_COMPILERINSTDIR\bin\g++.exe" +3 0
460 strcpy $MODULE_MINGW_INSTOK "g++ not found in $MODULE_MINGW_COMPILERINSTDIR\bin\"
463 !ifndef OPENSOURCE_BUILD
465 push $MODULE_MINGW_COMPILERINSTDIR
466 qtnsisext::HasValidWin32Library
469 strcpy $MODULE_MINGW_INSTOK "The installer could not find a valid $MODULE_MINGW_COMPILERINSTDIR\include\w32api.h$\r$\n(The supported version is 3.2)"
473 push $MODULE_MINGW_COMPILERINSTDIR
474 qtnsisext::GetMinGWVersion
476 strcmp "$0" "${MODULE_MINGW_COMPILERVERSION}" +3 0
477 strcpy $MODULE_MINGW_INSTOK "g++ version found does not match ${MODULE_MINGW_COMPILERVERSION} (Found version $0)."
486 # creates a qtvars.bat file in $QTDIR\bin
487 # push "c:\qt" #QTDIR
488 # call MakeQtVarsFile
490 Function ModuleMinGWMakeEnvFile
491 push $0 ; file handle
494 FileOpen $0 "$MINGW_INSTDIR\bin\qtvars.bat" w
495 IfErrors WriteMakeFile
496 FileWrite $0 "@echo off$\r$\n"
497 FileWrite $0 "rem$\r$\n"
498 FileWrite $0 "rem This file is generated$\r$\n"
499 FileWrite $0 "rem$\r$\n"
500 FileWrite $0 "$\r$\n"
501 FileWrite $0 "echo Setting up a MinGW/Qt only environment...$\r$\n"
502 FileWrite $0 "echo -- QTDIR set to $MINGW_INSTDIR$\r$\n"
503 FileWrite $0 "echo -- PATH set to $MINGW_INSTDIR\bin$\r$\n"
504 FileWrite $0 "echo -- Adding $MODULE_MINGW_COMPILERINSTDIR\bin to PATH$\r$\n"
505 FileWrite $0 "echo -- Adding %SystemRoot%\System32 to PATH$\r$\n"
506 FileWrite $0 "echo -- QMAKESPEC set to win32-g++$\r$\n"
507 FileWrite $0 "$\r$\n"
508 FileWrite $0 "set QTDIR=$MINGW_INSTDIR$\r$\n"
509 FileWrite $0 "set PATH=$MINGW_INSTDIR\bin$\r$\n"
510 FileWrite $0 "set PATH=%PATH%;$MODULE_MINGW_COMPILERINSTDIR\bin$\r$\n"
511 FileWrite $0 "set PATH=%PATH%;%SystemRoot%\System32$\r$\n"
512 FileWrite $0 "set QMAKESPEC=win32-g++$\r$\n"
513 FileWrite $0 "$\r$\n"
515 FileWrite $0 'if not "%1"=="compile_debug" goto END$\r$\n'
516 FileWrite $0 "cd %QTDIR%$\r$\n"
517 FileWrite $0 "echo This will configure and compile qt in debug.$\r$\n"
518 FileWrite $0 "echo The release libraries will not be recompiled.$\r$\n"
519 FileWrite $0 "pause$\r$\n"
520 FileWrite $0 "configure -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg$\r$\n"
521 FileWrite $0 "cd %QTDIR%\src$\r$\n"
522 FileWrite $0 "qmake$\r$\n"
523 FileWrite $0 "mingw32-make debug$\r$\n"
524 FileWrite $0 ":END$\r$\n"
529 FileOpen $0 "$MINGW_INSTDIR\bin\make.bat" w
531 FileWrite $0 "@echo off$\r$\n"
532 FileWrite $0 "mingw32-make %*$\r$\n"
540 Function MINGW_ValidateDirectoryFunc
541 push "${MODULE_MINGW_BUILDDIR}"
543 call CommonCheckDirectory
547 !macro MINGW_DESCRIPTION
548 !insertmacro MUI_DESCRIPTION_TEXT ${MINGW_SEC01} "This installs ${MODULE_MINGW_NAME} version ${MODULE_MINGW_VERSION} on your system."
552 !ifndef MODULE_MINGW_NODEFAULT
553 SectionSetFlags ${MINGW_SEC01} 17
555 strcpy $MINGW_INSTDIR "C:\Qt\${MODULE_MINGW_VERSION}"
560 !insertmacro MUI_INSTALLOPTIONS_EXTRACT "${MODULE_MINGW_DOWNLOADPAGE}"
561 !insertmacro MUI_INSTALLOPTIONS_EXTRACT "${MODULE_MINGW_MIRRORPAGE}"
563 !insertmacro MUI_INSTALLOPTIONS_WRITE "${MODULE_MINGW_DOWNLOADPAGE}" "Field 3" "State" "C:\MinGW"
564 !insertmacro MUI_INSTALLOPTIONS_WRITE "${MODULE_MINGW_DOWNLOADPAGE}" "Field 6" "State" "C:\MinGW"
566 strcpy $MODULE_MINGW_DOWNLOAD "no"
567 strcpy $MODULE_MINGW_SOURCEDOWNLOAD "no"
573 !macro MINGW_RUN_FUNCTION
574 ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "MINGWInstalled"
575 intcmp $0 1 0 DoneRunFunctionMINGW
577 IfFileExists "$MINGW_INSTDIR\bin\qtdemo.exe" 0 +2
578 Exec '$MINGW_INSTDIR\bin\qtdemo.exe'
579 goto DoneRunFunction ;don't run more applications
581 DoneRunFunctionMINGW:
584 !macro MINGW_README_FUNCTION
585 ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "MINGWInstalled"
586 intcmp $0 1 0 DoneReadmeFunctionMINGW
588 IfFileExists "$MINGW_INSTDIR\bin\assistant.exe" 0 +2
589 Exec '$MINGW_INSTDIR\bin\assistant.exe'
590 goto DoneReadmeFunction ;don't run more applications
592 DoneReadmeFunctionMINGW:
595 !macro MINGW_UNSTARTUP
596 strcmp "$MINGW_INSTDIR" "" 0 +5
597 StrCpy $MINGW_INSTDIR "$INSTDIR\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION}"
599 call un.MakeQtDirectory
602 !insertmacro ConfirmOnRemove "MINGWInstalled" "- ${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION} in $MINGW_INSTDIR"
605 !macro MINGW_UNINSTALL
606 Section un.ModuleMinGW
610 ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "MINGWInstalled"
611 intcmp $0 1 0 DoneUnInstallMINGW
613 Delete "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.mirrors"
615 ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "MinGWSources"
616 strcmp $0 "" MinGWSourcesUninstallDone ;not installed
617 Delete "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}-src.exe"
618 nsExec::ExecToLog '"$0\src\uninst.exe"'
620 MinGWSourcesUninstallDone:
622 ReadRegStr $0 SHCTX "$PRODUCT_UNIQUE_KEY" "MinGWInstDir"
623 strcmp $0 "" MinGWUninstallDone ;not installed
624 Delete "$MINGW_INSTDIR\downloads\${MODULE_MINGW_DOWNLOADFILE}.exe"
625 nsExec::ExecToLog '"$0\uninst.exe"'
629 DetailPrint "Removing start menu shortcuts"
630 call un.RemoveStartmenuApplication
631 Delete "$SMPROGRAMS\$STARTMENU_STRING\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION} Command Prompt.lnk"
632 Delete "$SMPROGRAMS\$STARTMENU_STRING\${MODULE_MINGW_NAME} ${MODULE_MINGW_VERSION} (Build Debug Libraries).lnk"
634 Delete "$MINGW_INSTDIR\bin\${MODULE_MINGW_RUNTIME_LIB}"
635 Delete "$MINGW_INSTDIR\bin\make.bat"
636 Delete "$MINGW_INSTDIR\bin\qtvars.bat"
638 !insertmacro MODULE_MINGW_REMOVE "$MINGW_INSTDIR"
639 RMDir $MINGW_INSTDIR ;removes it if empty
646 !macro MINGW_UNFINISH
649 !macro MINGW_INITIALIZE
651 !macro MINGW_SECTIONS
653 !macro MINGW_DESCRIPTION
659 !macro MINGW_RUN_FUNCTION
661 !macro MINGW_README_FUNCTION
663 !macro MINGW_UNSTARTUP
665 !macro MINGW_UNINSTALL
667 !macro MINGW_UNFINISH