Hi,
I've made nsis packages in order to play back raw drc/avi files on win32
platforms and to automate filters registration.
This one including DiracDecoder.dll & DiracSplitter.ax :
http://kurtnoise.free.fr/index.php?dir=misc/&file=DiracDec-1.0.exe
This one including libschroedinger-1.0-0.dll, liboil-0.3-0.dll &
DiracSplitter-libschroedinger.ax :
http://kurtnoise.free.fr/index.php?dir=misc/&file=Schroedinger-1.0.5.exe
Feel free to use it in your download section.
If you're interested, I put my nsis scripts in attachment.
; ---------------------------------------------------------------------------
; Dirac install script for NSIS
; ---------------------------------------------------------------------------
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
;--------------------------------
;General
;Name and file
!define APPNAME "Schroedinger"
!define APPNAMEANDVERSION "Schroedinger 1.0.5"
!define FILTER_FILE1 "DiracSplitter-libschroedinger.ax"
!define FILTER_FILE2 "libschroedinger-1.0-0.dll"
!define FILTER_FILE3 "liboil-0.3-0.dll"
OutFile "Schroedinger-1.0.5.exe"
SetCompress "force"
SetCompressor "lzma"
SetCompressorDictSize 32
Name "${APPNAMEANDVERSION}"
;Default installation folder
InstallDir "$PROGRAMFILES\Dirac"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Dirac" "InstallDirectory"
;Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Variables
; Var MUI_TEMP
; Var STARTMENU_FOLDER
;--------------------------------
;Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
;!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
; !insertmacro MUI_PAGE_FINISH
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Dirac"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Dirac"
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
SetOverwrite ifnewer
SetCompress auto ; (can be off or force)
SetDatablockOptimize on ; (can be off)
CRCCheck on ; (can be off)
AutoCloseWindow false ; (can be true for the window go away automatically at
end)
ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
SetDateSave off ; (can be on to have files restored to their orginal date)
InstallColors /windows
InstProgressFlags smooth
; ---------------------------------------------------------------------------
Function .onInit
MessageBox MB_YESNO "This will install ${APPNAMEANDVERSION}. Do you wish to
continue?" IDYES gogogo
Abort
gogogo:
FunctionEnd
; ---------------------------------------------------------------------------
Section "Schroedinger" Section1 ; (default section)
; Set Section properties
SetOverwrite on
SetOutPath "$INSTDIR\"
; add files / whatever that need to be installed here.
File "${FILTER_FILE1}"
File "${FILTER_FILE2}"
File "${FILTER_FILE3}"
; write out uninstaller
WriteRegStr HKEY_LOCAL_MACHINE
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dirac" "DisplayName"
"Dirac (remove only)"
WriteRegStr HKEY_LOCAL_MACHINE
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dirac" "UninstallString"
'"$INSTDIR\Uninstall.exe"'
WriteUninstaller "$INSTDIR\Uninstall.exe"
RegDLL "$INSTDIR\${FILTER_FILE1}"
SectionEnd ; end of default section
; ---------------------------------------------------------------------------
;--------------------------------
;Descriptions
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Section1} "Install LibSchroedinger.dll &&
SchroedingerSplitter.ax"
!insertmacro MUI_FUNCTION_DESCRIPTION_END
; begin uninstall settings/section
UninstallText "This will uninstall ${APPNAMEANDVERSION} from your system"
Section Uninstall
UnRegDLL "$INSTDIR\${FILTER_FILE1}"
; add delete commands to delete whatever files/registry keys/etc you
installed here.
Delete /REBOOTOK "$INSTDIR\${FILTER_FILE1}"
Delete /REBOOTOK "$INSTDIR\${FILTER_FILE2}"
Delete /REBOOTOK "$INSTDIR\${FILTER_FILE3}"
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\*.*"
RMDir "$INSTDIR"
DeleteRegKey HKEY_LOCAL_MACHINE
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dirac"
SectionEnd ; end of uninstall section
; ---------------------------------------------------------------------------
Function un.onUninstSuccess
IfRebootFlag 0 NoReboot
MessageBox MB_OK \
"A file couldn't be deleted. It will be deleted at next
reboot."
NoReboot:
FunctionEnd
; ---------------------------------------------------------------------------
; eof
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; Dirac install script for NSIS
; ---------------------------------------------------------------------------
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
;--------------------------------
;General
;Name and file
!define APPNAME "DiracDec"
!define APPNAMEANDVERSION "Dirac Decoder 1.0"
!define FILTER_FILE1 "DiracSplitter-Dirac.ax"
!define FILTER_FILE2 "DiracDecoder.dll"
OutFile "DiracDec-1.0.exe"
SetCompress "force"
SetCompressor "lzma"
SetCompressorDictSize 32
Name "${APPNAMEANDVERSION}"
;Default installation folder
InstallDir "$PROGRAMFILES\Dirac"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Dirac" "InstallDirectory"
;Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Variables
; Var MUI_TEMP
; Var STARTMENU_FOLDER
;--------------------------------
;Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
;!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
; !insertmacro MUI_PAGE_FINISH
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Dirac"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Dirac"
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
SetOverwrite ifnewer
SetCompress auto ; (can be off or force)
SetDatablockOptimize on ; (can be off)
CRCCheck on ; (can be off)
AutoCloseWindow false ; (can be true for the window go away automatically at
end)
ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
SetDateSave off ; (can be on to have files restored to their orginal date)
InstallColors /windows
InstProgressFlags smooth
; ---------------------------------------------------------------------------
Function .onInit
MessageBox MB_YESNO "This will install ${APPNAMEANDVERSION}. Do you wish to
continue?" IDYES gogogo
Abort
gogogo:
FunctionEnd
; ---------------------------------------------------------------------------
Section "Dirac" Section1 ; (default section)
; Set Section properties
SetOverwrite on
SetOutPath "$INSTDIR\"
; add files / whatever that need to be installed here.
File "${FILTER_FILE1}"
File "${FILTER_FILE2}"
; write out uninstaller
WriteRegStr HKEY_LOCAL_MACHINE
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dirac" "DisplayName"
"Dirac (remove only)"
WriteRegStr HKEY_LOCAL_MACHINE
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dirac" "UninstallString"
'"$INSTDIR\Uninstall.exe"'
WriteUninstaller "$INSTDIR\Uninstall.exe"
RegDLL "$INSTDIR\${FILTER_FILE1}"
SectionEnd ; end of default section
; ---------------------------------------------------------------------------
;--------------------------------
;Descriptions
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Section1} "Install DiracDec.dll &&
DiracSplitter.ax"
!insertmacro MUI_FUNCTION_DESCRIPTION_END
; begin uninstall settings/section
UninstallText "This will uninstall ${APPNAMEANDVERSION} from your system"
Section Uninstall
UnRegDLL "$INSTDIR\${FILTER_FILE1}"
; add delete commands to delete whatever files/registry keys/etc you
installed here.
Delete /REBOOTOK "$INSTDIR\${FILTER_FILE1}"
Delete /REBOOTOK "$INSTDIR\${FILTER_FILE2}"
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\*.*"
RMDir "$INSTDIR"
DeleteRegKey HKEY_LOCAL_MACHINE
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dirac"
SectionEnd ; end of uninstall section
; ---------------------------------------------------------------------------
Function un.onUninstSuccess
IfRebootFlag 0 NoReboot
MessageBox MB_OK \
"A file couldn't be deleted. It will be deleted at next
reboot."
NoReboot:
FunctionEnd
; ---------------------------------------------------------------------------
; eof
; ---------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel