summaryrefslogtreecommitdiff
path: root/config/izpack/install-nsc.xml
blob: e2bc0a79cbb0cd8666aab0f7ddebe27ecad9a3be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version=1.0" encoding="UTF-8" standalone="yes"?>
<!-- $Id$ -->

<installation version="1.0">

  <info>
    <appname>Scala</appname>
    <appversion>@VERSION@</appversion>
    <url>@URL@</url>
    <javaversion>1.4</javaversion>
  </info>

  <native type="izpack" name="ShellLink.dll"/>

  <guiprefs resizable="yes" height="400" width="600">
    <laf name="metouia">
      <os family="unix"/>
    </laf>
    <laf name="looks">
      <os family="windows"/>
      <param name="variant" value="extwin"/>
    </laf>
  </guiprefs>

  <locale>
    <langpack iso3="eng"/>
    <langpack iso3="fra"/>
    <langpack iso3="deu"/>
  </locale>

  <resources>
    <res id="installer.langsel.img"        src="@RESOURCEDIR@/images/Splash.png"/>
    <res id="Installer.image"              src="@RESOURCEDIR@/images/install.png"/>
    <res id="HTMLInfoPanel.info_eng"       src="@RESOURCEDIR@/locales/INFO_en.html"/>
    <res id="HTMLInfoPanel.info_fra"       src="@RESOURCEDIR@/locales/INFO_fr.html"/>
    <res id="HTMLInfoPanel.info_deu"       src="@RESOURCEDIR@/locales/INFO_de.html"/>
    <res id="HTMLLicencePanel.licence_eng" src="@RESOURCEDIR@/locales/LICENSE_en.html"/>
    <res id="HTMLLicencePanel.licence_fra" src="@RESOURCEDIR@/locales/LICENSE_fr.html"/>
    <res id="HTMLLicencePanel.licence_deu" src="@RESOURCEDIR@/locales/LICENSE_de.html"/>
    <res id="TargetPanel.dir.macosx"       src="@RESOURCEDIR@/targets/path_macosx.txt"/>
    <res id="TargetPanel.dir.unix"         src="@RESOURCEDIR@/targets/path_unix.txt"/>
    <res id="ProcessPanel.Spec.xml"        src="@RESOURCEDIR@/izpack_process.xml"/>
    <res id="shortcutSpec.xml"             src="@RESOURCEDIR@/izpack_shortcut.xml"/>
  </resources>

  <panels>
    <panel classname="HelloPanel"/>
    <panel classname="HTMLInfoPanel"/>
    <panel classname="HTMLLicencePanel"/>
    <panel classname="TargetPanel"/>
    <panel classname="InstallPanel"/>
    <panel classname="ProcessPanel"/>
    <panel classname="ShortcutPanel"/>
    <panel classname="SimpleFinishPanel"/>
  </panels>

  <packs>
    <pack name="Package Installation" required="yes">
      <description>Installing the Scala software.</description>

      <!-- unix -->

      <fileset os="unix"
               dir="distribs/unix/@PREFIX@-@VERSION@"
               targetdir="$INSTALL_PATH"
               includes="share/**"/>
      <!-- The <singlefile> tag allows the file -->
      <!-- to be renamed (unlike <file>).       -->
      <singlefile os="unix"
                  target="$INSTALL_PATH/bin/.nsc_symlink"
                  src="bin/.nsc_symlink.tmpl"/>
      <executable os="unix"
                  targetfile="$INSTALL_PATH/bin/.nsc_symlink"/>
      <singlefile os="unix"
                  target="$INSTALL_PATH/share/scala/bin/.nsc_symlink"
                  src="bin/.nsc_symlink.tmpl"/>
      <executable os="unix"
                  targetfile="$INSTALL_PATH/share/scala/bin/.nsc_symlink"/>
      <executable os="unix" keep="true"
                  targetfile="$INSTALL_PATH/share/scala/bin/.nsc_wrapper"/>

      <!-- windows -->

      <!-- we share common resources doc/*.pdf and lib/** -->
      <fileset os="windows"
               dir="distribs/windows/@PREFIX@-@VERSION@"
               targetdir="$INSTALL_PATH"
               excludes="doc/*.pdf, lib/**"/>
      <fileset os="windows"
               dir="distribs/unix/@PREFIX@-@VERSION@/share/doc/scala"
               targetdir="$INSTALL_PATH/doc"
               includes="*.pdf"/>
      <fileset os="windows"
               dir="distribs/unix/@PREFIX@-@VERSION@/share/scala"
               targetdir="$INSTALL_PATH"
               includes="lib/**"/>
      <fileset os="windows"
               dir="config/izpack/registry/bin"
               targetdir="$INSTALL_PATH/Uninstaller"/>
      <executable os="windows" stage="uninstall"
                  targetfile="$JAVA_HOME\bin\java">
        <arg>-Djava.library.path=$INSTALL_PATH\Uninstaller</arg>
        <arg>-cp</arg>
        <arg>$INSTALL_PATH\Uninstaller\registry.jar;$INSTALL_PATH\Uninstaller\setenv.jar</arg>
        <arg>Main</arg>
        <arg>@VERSION@</arg>
      </executable>
    </pack>
  </packs>

</installation>