Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Veenstra <qbix79@users.sourceforge.net>2007-07-30 11:59:29 +0400
committerPeter Veenstra <qbix79@users.sourceforge.net>2007-07-30 11:59:29 +0400
commitfdbb2028302e6efaa8c8ba0bca7cee8f3a6331b1 (patch)
treee1ab3ccd1bcbbacbd55f0748b0bed04aa4975a4c
parentee260ffd5c40f81fab28d3b51472aeb86f373b24 (diff)
0.71 style installer. Somewhat vista compabitible and having a desktop shortcut.svn/RELEASE_0_71
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2942
-rw-r--r--scripts/dosbox-installer.nsi22
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/dosbox-installer.nsi b/scripts/dosbox-installer.nsi
index e7f028e7c..950ee3afd 100644
--- a/scripts/dosbox-installer.nsi
+++ b/scripts/dosbox-installer.nsi
@@ -1,5 +1,5 @@
!define VER_MAYOR 0
-!define VER_MINOR 70
+!define VER_MINOR 71
; The name of the installer
Name "DOSBox ${VER_MAYOR}.${VER_MINOR} Installer"
@@ -12,15 +12,21 @@ InstallDir "$PROGRAMFILES\DOSBox-${VER_MAYOR}.${VER_MINOR}"
; The text to prompt the user to enter a directory
DirText "This will install DOSBox v${VER_MAYOR}.${VER_MINOR} on your computer. Choose a directory"
-SetCompressor bzip2
+SetCompressor /solid lzma
+
LicenseData COPYING
LicenseText "DOSBox v${VER_MAYOR}.${VER_MINOR} License" "Next >"
+; Else vista enables compatibility mode
+RequestExecutionLevel admin
+
+ComponentText "Select components for DOSBox"
; The stuff to install
-Section "ThisNameIsIgnoredSoWhyBother?"
+Section "!Core files" Core
; Set output path to the installation directory.
SetOutPath $INSTDIR
+ SectionIn RO
; Put file there
CreateDirectory "$INSTDIR\capture"
@@ -43,6 +49,7 @@ Section "ThisNameIsIgnoredSoWhyBother?"
CreateDirectory "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video"
CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.lnk" "$INSTDIR\DOSBox.exe" "-conf $\"$INSTDIR\dosbox.conf$\"" "$INSTDIR\DOSBox.exe" 0
+ CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox (noconsole).lnk" "$INSTDIR\DOSBox.exe" "-noconsole -conf $\"$INSTDIR\dosbox.conf$\"" "$INSTDIR\DOSBox.exe" 0
CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\README.lnk" "$INSTDIR\README.txt"
CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.conf.lnk" "notepad.exe" "$INSTDIR\dosbox.conf"
CreateShortCut "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Capture folder.lnk" "$INSTDIR\capture"
@@ -66,9 +73,17 @@ WriteUninstaller "uninstall.exe"
SectionEnd ; end the section
+Section "Desktop Shortcut" SecDesktop
+
+CreateShortCut "$DESKTOP\DOSBox ${VER_MAYOR}.${VER_MINOR}.lnk" "$INSTDIR\DOSBox.exe" "-conf $\"$INSTDIR\dosbox.conf$\"" "$INSTDIR\DOSBox.exe" 0
+
+ SectionEnd ; end the section
+
+
UninstallText "This will uninstall DOSBox v${VER_MAYOR}.${VER_MINOR}. Hit next to continue."
Section "Uninstall"
+ Delete "$DESKTOP\DOSBox ${VER_MAYOR}.${VER_MINOR}.lnk"
; remove registry keys
; remove files
Delete $INSTDIR\README.txt
@@ -95,6 +110,7 @@ Section "Uninstall"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Uninstall.lnk"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\README.lnk"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.lnk"
+ Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox (noconsole).lnk"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\DOSBox.conf.lnk"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Capture folder.lnk"
Delete "$SMPROGRAMS\DOSBox-${VER_MAYOR}.${VER_MINOR}\Video\Install movie codec.lnk"