From 49df4ab19a228d996e5c80ef48ff69dedf9401a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Feb 2012 16:46:20 +0100 Subject: [PATCH] nsis: set HKCU "Software\spice-space.org\spicex\client" With recent RHEV portal plugin, the Spice client is chosen according to this key. --- data/virt-viewer.nsis.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/virt-viewer.nsis.in b/data/virt-viewer.nsis.in index a3cfa74..a96d958 100644 --- a/data/virt-viewer.nsis.in +++ b/data/virt-viewer.nsis.in @@ -153,6 +153,8 @@ Section "virt-viewer" nsExec::ExecToLog '$0 /C bin\pango-querymodules.exe > etc\pango\pango.modules' nsExec::ExecToLog 'echo gtk-theme-name = "MS-Windows" > etc\gtk-2.0\gtkrc' + WriteRegStr HKCU "Software\spice-space.org\spicex" "client" "$INSTDIR\bin\remote-viewer.exe --spice-controller" + SectionEnd Section "Start Menu Shortcuts" @@ -171,6 +173,8 @@ Section "Uninstall" Delete /rebootok "$SMPROGRAMS\virt-viewer\Uninstall virt-viewer.lnk" RMDir "$SMPROGRAMS\virt-viewer" + DeleteRegKey HKCU "Software\spice-space.org\spicex\client" + RMDir /r "$INSTDIR\lib\pango" RMDir /r "$INSTDIR\lib\gtk-2.0"