diff options
Diffstat (limited to 'wininstaller.nsis')
-rwxr-xr-x | wininstaller.nsis | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/wininstaller.nsis b/wininstaller.nsis index e3c8fd9..0ffba5c 100755 --- a/wininstaller.nsis +++ b/wininstaller.nsis @@ -57,13 +57,20 @@ ComponentText "This will install OCaml libvirt bindings, dependent libraries and # Title for the install directory page.
DirText "Please select the installation folder."
-# Installer section.
-Section "OCaml Libvirt bindings (required)"
+# Installer sections.
+Section "Libvirt and its libraries (required)"
+ # Make this required.
SectionIn RO
-SectionEnd
-Section "Libraries (required)"
- SectionIn RO
+ SetOutPath $INSTDIR
+ # XXX Get these paths automatically.
+ File "c:\msys\1.0\local\bin\libvirt-?.dll"
+ File "c:\msys\1.0\local\bin\libxdr.dll"
+ File "c:\msys\1.0\local\bin\libxml2-?.dll"
+ File "c:\gnutls\bin\libgcrypt-??.dll"
+ File "c:\gnutls\bin\libgnutls-??.dll"
+ File "c:\gnutls\bin\libgpg-error-?.dll"
+ File "c:\gnutls\bin\libtasn1-?.dll"
SectionEnd
Section "Programs (recommended)"
@@ -71,6 +78,10 @@ Section "Programs (recommended)" File "/oname=mlvirsh.exe" "mlvirsh\mlvirsh.opt"
SectionEnd
+Section "OCaml Libvirt bindings (for developers only)"
+ # XXX Need to find out where Objective CAML is installed.
+SectionEnd
+
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\${PACKAGE}"
CreateShortCut "$SMPROGRAMS\${PACKAGE}\Uninstall.lnk" "$INSTDIR\Uninstall ${PACKAGE}.exe" "" "$INSTDIR\Uninstall ${PACKAGE}.exe" 0
@@ -91,8 +102,8 @@ Section "Uninstall" RMDir "$SMPROGRAMS\${PACKAGE}"
# Files in installation directory.
- Delete /rebootok "$INSTDIR\mlvirsh.exe"
- Delete /rebootok "$INSTDIR\Uninstall ${PACKAGE}.exe"
+ Delete /rebootok "$INSTDIR\*.exe"
+ Delete /rebootok "$INSTDIR\*.dll"
RMDir "$INSTDIR"
SectionEnd
|