source: rtems/contrib/mingw/mingw-path.nsi @ 598aab1f

4.104.114.84.95
Last change on this file since 598aab1f was 598aab1f, checked in by Chris Johns <chrisj@…>, on 08/20/07 at 02:12:48

2007-08-20 Chris Johns <chisj@…>

  • filewrite.nsi, getparameters.nsi, instance-check.nsi, mingw-path.nsi, sm-dummy.nsi, strslash.nsi, strstr.nsi, options.nsi: Added the shared between the 2 installer scripts.
  • msys-path.nsi: Fixed the last LF bug.
  • rtems-autotools.nsi, rtems-tools.nsi: Fixed the instance check, added a start menu, remove pages from target installers.
  • rtems.ini: Fixed the URL links. Added support link.
  • rtems_logo.bmp: Trimmed a little more to get a better image.
  • ba-wrap.sh: Stop on a error.
  • build-exes.sh: Use the option parameter variables. Change the order the section appear in the installer.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1;
2; $Id$
3;
4; RTEMS Tools Installer.
5;
6; Copyright Chris Johns (chrisj@rtems.org)
7;
8
9Function MinGWPath
10  Push $R0
11  ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MinGW" "InstallLocation"
12  Exch $R0
13FunctionEnd
14
15Function MinGWCheckFile
16  Exch $R0
17  DetailPrint "Checking for MinGW $R0."
18  IfFileExists "$R0" +5 0
19   DetailPrint "Could not find $R0."
20   Exch $R0
21   Return
22  StrCpy $R0 "ok"
23  Exch $R0
24FunctionEnd
25
26Function MinGWCheckExes
27  Exch $R0
28  Push $R1
29  StrCpy $R1 "$R0/bin/gcc.exe"
30  Push $R1
31  Call MinGWCheckFile
32  Pop $R1
33  StrCmp "ok" 0 Done
34  StrCpy $R1 "$R0/bin/as.exe"
35  Push $R1
36  Call MinGWCheckFile
37  Pop $R1
38  StrCmp "ok" 0 Done
39  StrCpy $R1 "$R0/bin/ld.exe"
40  Push $R1
41  Call MinGWCheckFile
42  Pop $R1
43Done:
44  StrCpy $R0 $R1
45  Pop $R1
46  Exch $R0
47FunctionEnd
48
49Function MinGWDetect
50  Push $R0
51  Push $R1
52  StrCpy $R1 "c:\mingw"
53  DetailPrint "Checking MinGW default install path: $R1"
54  Push $R1
55  Call MinGWCheckExes
56  Pop $R0
57  StrCmp $R0 "ok" Found
58  DetailPrint "Checking Registry for MinGW Installed Path"
59  Call MinGWPath
60  Pop $R0
61  ifErrors 0 +3
62   MessageBox MB_OK "MinGW Not Installed. Please install MinGW from http://www.mingw.org/"
63   Abort
64 Found:
65  StrCpy $R0 $R1
66  DetailPrint "MinGW Found: $R0"
67  Pop $R1
68  Exch $R0
69FunctionEnd
Note: See TracBrowser for help on using the repository browser.