Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4f2f7cda77
Fetching contributors…

Cannot retrieve contributors at this time

129 lines (109 sloc) 5.169 kb
Name "Giv"
OutFile "InstallGiv-@VER@.exe"
Icon "giv-logo.ico"
UninstallIcon "giv-logo-install.ico"
SetCompress force ; (can be off or force)
CRCCheck on ; (can be off)
LicenseText "Giv is a free program. Here is its license."
LicenseData "COPYING.dos"
InstallDir "$PROGRAMFILES\Giv"
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Giv" ""
; DirShow ; (make this hide to not let the user change it)
DirText "Select the directory to install Giv in:"
; optional section
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Giv"
CreateShortCut "$SMPROGRAMS\Giv\Uninstall.lnk" "$INSTDIR\uninst.exe" "" "$INSTDIR\uninst.exe" 0
CreateShortCut "$SMPROGRAMS\Giv\Giv.lnk" "$INSTDIR\bin\Giv.exe" "" "$INSTDIR\bin\Giv.exe" 0
SectionEnd
Section "" ; (default section)
; List of files to install
SetOutPath "$INSTDIR"
File COPYING
File README
File AUTHORS
File NEWS
File /r doc
File /r examples
SetOutPath $INSTDIR\bin
File src\Giv.exe
File src\giv-image.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgcc_s_sjlj-1.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libexpat-1.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libstdc++-6.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\iconv.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libpcre-1.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libintl-8.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libffi-6.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgdk-win32*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgdk_pixbuf*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgtk-win32*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgio*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libcairo*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libjasper-1.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\zlib*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libglib*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libatk*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgobject*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgmodule*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libgthread*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libpango*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libpng*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libtiff*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libjpeg*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libpixman-1-0.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libfontconfig*.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\libfreetype*.dll
File \usr\local\mingw32\bin\libjson-glib-1.0-0.dll
File \usr\i686-w64-mingw32\sys-root\mingw\bin\gdk-pixbuf-query-loaders.exe
SetOutPath $INSTDIR\etc
File /r \usr\i686-w64-mingw32\sys-root\mingw\etc\gtk-2.0
File /r \usr\i686-w64-mingw32\sys-root\mingw\etc\fonts
File /r \usr\i686-w64-mingw32\sys-root\mingw\etc\pango
SetOutPath $INSTDIR\etc\gtk-2.0
File \usr\i686-w64-mingw32\sys-root\mingw\share\themes\MS-Windows\gtk-2.0\gtkrc
# Plugins
SetOutPath $INSTDIR\plugins
File src\plugins\*.dll
# pango
SetOutPath $INSTDIR\lib
File /r \usr\i686-w64-mingw32\sys-root\mingw\lib\pango
# pixbuf etc
SetOutPath $INSTDIR\lib\gdk-pixbuf-2.0\2.10.0
File /r \usr\i686-w64-mingw32\sys-root\mingw\lib\gdk-pixbuf-2.0\2.10.0\loaders*
SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines
File \usr\i686-w64-mingw32\sys-root\mingw\lib\gtk-2.0\2.10.0\engines\*
SetOutPath $INSTDIR\share\themes
File /r \usr\i686-w64-mingw32\sys-root\mingw\share\themes\*
# Build the gdk-pixbuf.loaders file automatically
#ExpandEnvStrings $0 %COMSPEC%
#nsExec::ExecToStack '"$0" /C ""$INSTDIR\bin\gdk-pixbuf-query-loaders" > "$INSTDIR\lib\gdk-pixbuf-2.0\2.10.0\loaders.cache""'
; Set up association with .giv files
DeleteRegKey HKCR ".giv"
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.giv"
WriteRegStr HKCR ".giv" "" "GivFile"
DeleteRegKey HKCR "GivFile"
DeleteRegKey HKCR "Giv.Document"
WriteRegStr HKCR "GivFile" "" "Giv File"
WriteRegStr HKCR "GivFile\DefaultIcon" "" "$INSTDIR\bin\Giv.exe,1"
WriteRegStr HKCR "GivFile\shell" "" "open"
WriteRegStr HKCR "GivFile\shell\open\command" "" '$INSTDIR\bin\Giv.exe "%1"'
System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
; Unistaller section. Should really clean up file associations as well.
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\giv" "" "$INSTDIR"
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\giv" "DisplayName" "giv (remove only)"
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\giv" "UninstallString" '"$INSTDIR\bin\uninst.exe"'
; write out uninstaller
WriteUninstaller "$INSTDIR\uninst.exe"
SectionEnd ; end of default section
; begin uninstall settings/section
UninstallText "This will uninstall giv from your system"
Section Uninstall
; add delete commands to delete whatever files/registry keys/etc you installed here.
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\giv"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\giv"
RMDir /r "$INSTDIR"
DeleteRegKey HKCR ".giv"
DeleteRegKey HKCR "GivFile"
SectionEnd ; end of uninstall section
; eof
Jump to Line
Something went wrong with that request. Please try again.