virt-viewer/data/virt-viewer-debug.nsis.in
Michal Privoznik 5c9955df09 Sanitize syntax-check
make syntax-check is producing some errors about empty line at EOF
and missing #include <config.h> in src/virt-viewer-file.c

* src/virt-viewer-file.c: add #include <config.h>
* data/virt-viewer-debug.nsis.in: remove empty line at EOF
2012-12-05 16:28:21 +01:00

50 lines
1.3 KiB
Plaintext

#!Nsis Installer Command Script
# @configure_input@
# To build an installer from the script you would normally do:
#
# makensis virt-viewer-debug.nsis
#
# which will generate the output file 'virt-viewer-@VERSION@.exe' which is a Windows
# installer containing your program.
Name "VirtViewer Debug @VERSION@"
OutFile "virt-viewer-debug-@VERSION@.exe"
InstallDir "$LOCALAPPDATA\virt-viewer"
InstallDirRegKey HKCU "Software\virt-viewer" ""
RequestExecutionLevel user
SetCompressor bzip2
ShowInstDetails hide
ShowUninstDetails hide
XPStyle on
Page instfiles
Section "VirtViewer Debug"
SectionIn RO
WriteRegStr HKCU "Software\virt-viewer" "" $INSTDIR
SetOutPath "$INSTDIR"
SetOutPath "$INSTDIR\bin"
File "@prefix@/bin/gdb.exe"
File "@prefix@/bin/gdbserver.exe"
File "${DESTDIR}@prefix@/bin/debug-helper.exe"
# make virt-viewer debug the default spice-x client
WriteRegStr HKCU "Software\spice-space.org\spicex" "client" "$INSTDIR\bin\debug-helper.exe remote-viewer.exe --spice-controller"
SectionEnd
Section "Uninstall"
Delete /rebootok "$INSTDIR\bin\debug-helper.exe"
Delete /rebootok "$INSTDIR\bin\gdbserver.exe"
Delete /rebootok "$INSTDIR\bin\gdb.exe"
RMDir "$INSTDIR\bin"
RMDir "$INSTDIR"
SectionEnd
Section -post
WriteUninstaller "$INSTDIR\Uninstall-debug.exe"
SectionEnd