2 # define the name of the installer
3 outfile "subsurface-installer.exe"
6 VIProductVersion "1.1.0.0"
7 VIAddVersionKey ProductName subsurface
8 VIAddVersionKey ProductVersion "1.1"
9 VIAddVersionKey FileVersion "1.1"
11 Icon ..\share\subsurface.ico
14 RequestExecutionLevel admin
17 MessageBox MB_YESNO "This will install subsurface. Do you wish to continue?" IDYES gogogo
22 # define the directory to install to, the desktop in this case as specified
23 # by the predefined $DESKTOP variable
24 installDir "$PROGRAMFILES\subsurface"
29 # define the output path for this file
32 SetShellVarContext all
34 # create directory in the Start menu
35 CreateDirectory "$SMPROGRAMS\subsurface"
37 # create Start menu shortcut
38 createShortCut "$SMPROGRAMS\subsurface\subsurface.lnk" "$INSTDIR\subsurface.exe"
40 #create uninstaller and corresponding shortcut in Start menu
41 writeUninstaller "$INSTDIR\subsurface-uninstall.exe"
42 createShortCut "$SMPROGRAMS\subsurface\uninstall-subsurface.lnk" "$INSTDIR\subsurface-uninstall.exe"
44 # define what to install and place it in the output path
48 file libdivecomputer-0.dll
50 file libfontconfig-1.dll
51 file libfreetype-6.dll
52 file libgdk_pixbuf-2.0-0.dll
53 file libgdk-win32-2.0-0.dll
55 file libglib-2.0-0.dll
56 file libgmodule-2.0-0.dll
57 file libgobject-2.0-0.dll
58 file libgthread-2.0-0.dll
59 file libgtk-win32-2.0-0.dll
63 file libpango-1.0-0.dll
64 file libpangocairo-1.0-0.dll
65 file libpangoft2-1.0-0.dll
66 file libpangowin32-1.0-0.dll
67 file libpixman-1-0.dll
73 file /oname=subsurface.ico ..\\share\\subsurface.ico
74 file /oname=subsurface.bmp ..\\share\\subsurface.bmp
75 file /oname=subsurface.svg ..\\share\\subsurface.svg
81 SetShellVarContext all
82 delete "$INSTDIR\subsurface-uninstall.exe"
85 delete "$SMPROGRAMS\subsurface\uninstall-subsurface.lnk"
86 delete "$SMPROGRAMS\subsurface\subsurface.lnk"
87 RMDir "$SMPROGRAMS\subsurface"
89 MessageBox MB_YESNO "Do you wish to store subsurface's settings?" IDYES end
90 DeleteRegKey HKCU "SOFTWARE\subsurface"