Find file
Fetching contributors…
Cannot retrieve contributors at this time
141 lines (108 sloc) 5.72 KB
; check for latest version of UltraModernUI at
!include "D:\open-allure-ds\odp2wts\UMUI.nsh"
!include Library.nsh
Var ALREADY_INSTALLED ; variable - no {} needed, just $
!define SLIDESPEECH_VERSION "0.1.31" ; define - ${} needed
!define MUI_ICON "D:\open-allure-ds\odp2wts\slidespeech.ico"
!define UMUI_LEFTIMAGE_BMP "D:\open-allure-ds\odp2wts\openallure_left.bmp"
; Welcome
!define MUI_PAGE_HEADER_TEXT "SlideSpeech"
!define MUI_WELCOMEPAGE_TEXT "SlideSpeech turns your presentation \
into a slide show with voice over and a video. \
\r\n\r\nClick Next to start installation."
!insertmacro MUI_PAGE_WELCOME
; Licence
; !insertmacro MUI_PAGE_LICENSE "D:\open-allure-ds\odp2wts\LICENSE.txt"
; Location folder
; Install files
; Finish
!define MUI_FINISHPAGE_TITLE "SlideSpeech should now be ready to use"
!define MUI_FINISHPAGE_TEXT "See on-line documentation for details."
!define MUI_FINISHPAGE_LINK "SlideSpeech Documentation"
!insertmacro MUI_PAGE_FINISH
; Uninstall
;after all the other insertmacros
!insertmacro MUI_LANGUAGE "English"
; The name of the installer
Name "SlideSpeech Installer"
; The file to write
OutFile "SlideSpeech-win-${SLIDESPEECH_VERSION}.exe"
; Default installation directory
InstallDir "$PROGRAMFILES\SlideSpeech"
; The text to prompt the user to enter a directory
DirText "Please choose the directory where you would like SlideSpeech installed."
;ShowInstDetails show
;ShowUnInstDetails show
; Request application privileges for Windows Vista
RequestExecutionLevel admin #
; user is the other option I used to use
; RequestExecutionLevel
;Specifies the requested execution level for Windows Vista and Windows 7. The value is embedded in the installer and
; uninstaller's XML manifest and tells Vista/7, and probably future versions of Windows, what privileges level the
; installer requires. user requests the a normal user's level with no administrative privileges. highest will request
; the highest execution level available for the current user and will cause Windows to prompt the user to verify
; privilege escalation. The prompt might request for the user's password. admin requests administrator level and
; will cause Windows to prompt the user as well. Specifying none, which is also the default, will keep the manifest
; empty and let Windows decide which execution level is required. Windows Vista/7 automatically identifies NSIS
; installers and decides administrator privileges are required. Because of this, none and admin have virtually the same effect.
;It's recommended, at least by Microsoft, that every application will be marked with the required execution level.
; Unmarked installers are subject to compatibility mode. Workarounds of this mode include automatically moving any
; shortcuts created in the user's start menu to all users' start menu. Installers that need not install anything into
; system folders or write to the local machine registry (HKLM) should specify user execution level.
;More information about this topic can be found at MSDN. Keywords include "UAC", "requested execution level",
; "vista manifest" and "vista security".
Section ""
CreateDirectory $INSTDIR
SetOutPath "$INSTDIR"
File "D:\open-allure-ds\odp2wts\slidespeech.ico"
File /r "D:\open-allure-ds\odp2wts\dist\*.*"
File /r "D:\open-allure-ds\wikitospeech\dist\*.*"
; (can be missing)
IfFileExists "$INSTDIR\odp2ss.exe" 0 new_installation ; continue if true, else jump to new_installation label
StrCpy $ALREADY_INSTALLED 1 ;set to non-zero value if already installed
new_installation: ; already installed stays as initialised
;!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED "G:\openallure\msvcr71.dll" $SYSDIR\msvcr100.dll $SYSDIR
;Create shortcuts etc
;create desktop shortcut
CreateShortCut "$DESKTOP\SlideSpeech Converter.lnk" \
"$INSTDIR\SlideSpeechConverter.exe" "" \
CreateShortCut "$DESKTOP\SlideSpeech.lnk" \
"$INSTDIR\SlideSpeech.exe" "" \
CreateDirectory "$SMPROGRAMS\SlideSpeech"
CreateShortCut "$SMPROGRAMS\SlideSpeech\SlideSpeech Converter.lnk" \
"$INSTDIR\SlideSpeechConverter.exe" "" \
CreateShortCut "$SMPROGRAMS\SlideSpeech\SlideSpeech.lnk" \
"$INSTDIR\SlideSpeech.exe" "" \
CreateShortCut "$SMPROGRAMS\SlideSpeech\Uninstall.lnk" \
"$INSTDIR\Uninstall.exe" "" \
"$INSTDIR\uninstall.exe" 0
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd ; end the section
;Uninstaller Section
Section "Uninstall"
RMDir /r /REBOOTOK "$PROFILE\SlideSpeech"
RMDir /r "$SMPROGRAMS\SlideSpeech"
Delete "$DESKTOP\SlideSpeech Converter.lnk"
Delete "$DESKTOP\SlideSpeech.lnk"