[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH virt-viewer] Add virt-viewer-debug.exe NSIS installer



This installer will provide with the tools and configuration needed to
debug virt-viewer & remote-viewer. It will install itself by default in
virt-viewer directory.
---
 configure.ac                   |  1 +
 data/Makefile.am               |  1 +
 data/virt-viewer-debug.nsis.in | 50 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+)
 create mode 100644 data/virt-viewer-debug.nsis.in

diff --git a/configure.ac b/configure.ac
index 23ce541..251b134 100644
--- a/configure.ac
+++ b/configure.ac
@@ -200,6 +200,7 @@ AC_OUTPUT([
     Makefile
     data/Makefile
     data/virt-viewer.nsis
+    data/virt-viewer-debug.nsis
     icons/Makefile
     icons/16x16/Makefile
     icons/22x22/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 38ffdb2..2c3d739 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,6 +3,7 @@ NULL=
 EXTRA_DIST =					\
 	spice-xpi-client-remote-viewer		\
 	virt-viewer.nsis.in			\
+	virt-viewer-debug.nsis.in			\
 	$(NULL)
 
 if OS_WIN32
diff --git a/data/virt-viewer-debug.nsis.in b/data/virt-viewer-debug.nsis.in
new file mode 100644
index 0000000..2feab35
--- /dev/null
+++ b/data/virt-viewer-debug.nsis.in
@@ -0,0 +1,50 @@
+#!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 $INSTDIR\bin\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
+
-- 
1.7.11.7


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]