]> git.lizzy.rs Git - rust.git/blob - src/etc/pkg/rust.nsi
aea22530f344d9f89afc2df4b9291752e46fe195
[rust.git] / src / etc / pkg / rust.nsi
1 # -*- shell-script -*-
2 # (not really, but syntax is similar)
3 #
4 # This is a NSIS win32 installer script the Rust toolchain.
5 #
6
7 Name "Rust"
8 ShowInstDetails "show"
9 ShowUninstDetails "show"
10 SetCompressor "lzma"
11 LicenseForceSelection checkbox
12
13 InstallDir $PROGRAMFILES\Rust
14
15 Page license
16 Page directory
17 Page instfiles
18 UninstPage uninstConfirm
19 UninstPage instfiles
20
21 Section
22     WriteUninstaller $INSTDIR\uninstall.exe
23 SectionEnd
24
25 Section "Compiler"
26     SetOutPath $INSTDIR\bin
27     File /oname=rustc.exe      stage3\bin\rustc.exe
28
29     SetOutPath $INSTDIR\lib
30     File /oname=rustllvm.dll   stage3\lib\rustllvm.dll
31     File /oname=rustrt.dll     stage3\lib\rustrt.dll
32     File /oname=std.dll        stage3\lib\std.dll
33
34     SetOutPath $INSTDIR\lib\rustc\i686-pc-mingw32\lib
35     File /oname=rustrt.dll    stage3\lib\rustc\i686-pc-mingw32\lib\rustrt.dll
36     File /oname=std.dll       stage3\lib\rustc\i686-pc-mingw32\lib\std.dll
37     File /oname=main.o        stage3\lib\rustc\i686-pc-mingw32\lib\main.o
38     File /oname=intrinsics.bc stage3\lib\rustc\i686-pc-mingw32\lib\intrinsics.bc
39 SectionEnd
40
41 Section "Documentation"
42     SetOutPath $INSTDIR\doc
43     File /nonfatal /oname=rust.html doc\rust.html
44     File /nonfatal /oname=rust.pdf  doc\rust.pdf
45 SectionEnd
46
47 Section "Uninstall"
48     Delete $INSTDIR\uninstall.exe
49     Delete $INSTDIR\bin\rustc.exe
50     Delete $INSTDIR\lib\rustllvm.dll
51     Delete $INSTDIR\lib\rustrt.dll
52     Delete $INSTDIR\lib\std.dll
53     Delete $INSTDIR\lib\rustc\i686-pc-mingw32\lib\rustrt.dll
54     Delete $INSTDIR\lib\rustc\i686-pc-mingw32\lib\std.dll
55     Delete $INSTDIR\lib\rustc\i686-pc-mingw32\lib\main.o
56     Delete $INSTDIR\lib\rustc\i686-pc-mingw32\lib\intrinsics.bc
57     Delete $INSTDIR\doc\rust.html
58     Delete $INSTDIR\doc\rust.pdf
59     RMDir $INSTDIR\bin
60     RMDir $INSTDIR\lib\rustc\i686-pc-mingw32\lib
61     RMDir $INSTDIR\lib\rustc\i686-pc-mingw32
62     RMDir $INSTDIR\lib\rustc
63     RMDir $INSTDIR\lib
64     RMDir $INSTDIR\doc
65     RMDir $INSTDIR
66 SectionEnd