[virt-tools-list] [HELP]Please help check ''makensis error ''!

hongzhen_luo at sina.com hongzhen_luo at sina.com
Thu Oct 8 09:00:11 UTC 2015


[root at fc21-03 virt-viewer-2.0]# makensis -DGTK_VERSION=2.0 -DHaveLibvirt=True -DHaveSpiceGtk=True -DHaveOVirt=True -DHaveGtkVnc=True -DDESTDIR=/home/lzb/projects/tmp data/virt-viewer.nsis
MakeNSIS v2.46 - Copyright 1995-2009 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Command line defined: "GTK_VERSION=2.0"
Command line defined: "HaveLibvirt=True"
Command line defined: "HaveSpiceGtk=True"
Command line defined: "HaveOVirt=True"
Command line defined: "HaveGtkVnc=True"
Command line defined: "DESTDIR=/home/lzb/projects/tmp"
Processing config: 
Processing plugin dlls: "/usr/share/nsis/Plugins/*.dll"
 - AdvSplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - NSISdl::download
 - NSISdl::download_quiet
 - Splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - nsDialogs::Create
 - nsDialogs::CreateControl
 - nsDialogs::CreateItem
 - nsDialogs::CreateTimer
 - nsDialogs::GetUserData
 - nsDialogs::KillTimer
 - nsDialogs::OnBack
 - nsDialogs::OnChange
 - nsDialogs::OnClick
 - nsDialogs::OnNotify
 - nsDialogs::SelectFileDialog
 - nsDialogs::SelectFolderDialog
 - nsDialogs::SetRTL
 - nsDialogs::SetUserData
 - nsDialogs::Show
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "/root/.netbeans/remote/172.27.104.53/xhx-20150710tvd-Windows-x86/F/33333/virt-viewer-2.0/data"

Processing script file: "data/virt-viewer.nsis"
Name: "VirtViewer 2.0"
OutFile: "virt-viewer-2.0.exe"
InstallDir: "$LOCALAPPDATA\virt-viewer"
InstallRegKey: "HKCU\Software\virt-viewer\"
SetCompressor: bzip2
ShowInstDetails: hide
ShowUninstDetails: hide
XPStyle: on
Page: directory
Page: instfiles
!include: "/usr/share/nsis/Include/EnvVarUpdate.nsh"
!define: "ENVVARUPDATE_FUNCTION"=""
----------------------------------------------------------------------
NSIS String Functions Header File 1.09 - Copyright 2004 Diego Pedroso
----------------------------------------------------------------------
 (/usr/share/nsis/Include/StrFunc.nsh:52)
$ {StrTok} - Copyright 2004 Diego Pedroso - Based on functions by "bigmac666" (macro:STRFUNC_FUNC:11)
$ {UnStrTok} - Copyright 2004 Diego Pedroso - Based on functions by "bigmac666" (macro:STRFUNC_FUNC:5)
$ {StrStr} - Copyright 2004 Diego Pedroso - Based on functions by Ximon Eighteen (macro:STRFUNC_FUNC:11)
$ {UnStrStr} - Copyright 2004 Diego Pedroso - Based on functions by Ximon Eighteen (macro:STRFUNC_FUNC:5)
$ {StrRep} - Copyright 2004 Diego Pedroso - Based on functions by Hendri Adriaens (macro:STRFUNC_FUNC:11)
$ {UnStrRep} - Copyright 2004 Diego Pedroso - Based on functions by Hendri Adriaens (macro:STRFUNC_FUNC:5)
$ {StrStr} "$7" "$0" " ;" (macro:FUNCTION_STRING_StrStr_Call:3)
$ {StrRep} "$0" "$0" " ;" ";" (macro:FUNCTION_STRING_StrRep_Call:3)
$ {StrStr} "$7" "$0" "; " (macro:FUNCTION_STRING_StrStr_Call:3)
$ {StrRep} "$0" "$0" "; " ";" (macro:FUNCTION_STRING_StrRep_Call:3)
$ {StrStr} "$7" "$0" ";;" (macro:FUNCTION_STRING_StrStr_Call:3)
$ {StrRep} "$0" "$0" ";;" ";" (macro:FUNCTION_STRING_StrRep_Call:3)
$ {StrTok} "$7" "$9" ";" "$8" "0" (macro:FUNCTION_STRING_StrTok_Call:3)
$ {UnStrStr} "$7" "$0" " ;" (macro:FUNCTION_STRING_UnStrStr_Call:3)
$ {UnStrRep} "$0" "$0" " ;" ";" (macro:FUNCTION_STRING_UnStrRep_Call:3)
$ {UnStrStr} "$7" "$0" "; " (macro:FUNCTION_STRING_UnStrStr_Call:3)
$ {UnStrRep} "$0" "$0" "; " ";" (macro:FUNCTION_STRING_UnStrRep_Call:3)
$ {UnStrStr} "$7" "$0" ";;" (macro:FUNCTION_STRING_UnStrStr_Call:3)
$ {UnStrRep} "$0" "$0" ";;" ";" (macro:FUNCTION_STRING_UnStrRep_Call:3)
$ {UnStrTok} "$7" "$9" ";" "$8" "0" (macro:FUNCTION_STRING_UnStrTok_Call:3)
!include: closed: "/usr/share/nsis/Include/EnvVarUpdate.nsh"
!define: "REG_UNINSTALL"="Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer"
!define: "REG_IEPOLICY"="Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{96190E9D-6FBB-64DB-9095-29F6FDE0B897}"
!define: "REG_SPICEPROTO"="spice"
!define: "REG_SPICEICON"="spice\DefaultIcon"
!define: "REG_SPICECOMM"="spice\shell\open\command"
Function: "RegisterApplication"
!insertmacro: _EnvVarUpdateConstructor
Push: PATH
Push: A
Push: HKLM
Push: $INSTDIR\bin
Call "EnvVarUpdate"
Pop: $0
!insertmacro: end of _EnvVarUpdateConstructor
WriteRegStr: HKCR\spice\="spiceProtocol"
WriteRegStr: HKCR\spice\URL Protocol="$INSTDIR\bin\remote-viewer.exe"
WriteRegStr: HKCR\spice\DefaultIcon\="$INSTDIR\bin\remote-viewer.exe,1"
WriteRegStr: HKCR\spice\shell\open\command\="$INSTDIR\bin\remote-viewer.exe" "%1"
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\DisplayName=VirtViewer 2.0
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\DisplayIcon="$INSTDIR\bin\virt-viewer.exe"
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\Publisher=virt-manager.org
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\DisplayVersion=2.0
WriteRegDWORD: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\EstimatedSize=32000
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\HelpLink=http://www.virt-manager.org
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\URLInfoAbout=http://www.virt-manager.org
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\InstallLocation="$INSTDIR"
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\InstallSource="$EXEDIR"
WriteRegDWORD: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\NoModify=1
WriteRegDWORD: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\NoRepair=1
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\UninstallString="$INSTDIR\Uninstall.exe"
WriteRegStr: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer\Comments=Uninstalls VirtViewer.
WriteRegStr: HKCU\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{96190E9D-6FBB-64DB-9095-29F6FDE0B897}\AppPath=$INSTDIR\bin
WriteRegStr: HKCU\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{96190E9D-6FBB-64DB-9095-29F6FDE0B897}\AppName=remote-viewer.exe
WriteRegDWORD: HKCU\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{96190E9D-6FBB-64DB-9095-29F6FDE0B897}\Policy=3
FunctionEnd
Function: ".onInit"
File: "System.dll"->"$PLUGINSDIR\System.dll" [compress] 12658/25088 bytes
Plugin Command: Call kernel32::CreateMutexA(i 0, i 0, t "VirtViewerMutex") i .r1 ?e
Pop: $R0
StrCmp "$R0" "0" equal=end, nonequal=
Plugin Command: Call kernel32::CloseHandle(i r1) i.s
MessageBox: 53: "VirtViewer is already running, quit any instance and retry." (on IDRETRY goto retry)
Abort: ""
FunctionEnd
Section: "VirtViewer"
SectionIn: [RO] 
WriteRegStr: HKCU\Software\virt-viewer\=$INSTDIR
SetOutPath: "$INSTDIR"
File: "deps.txt" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "data/virt-viewer.nsis" on line 75 -- aborting creation process

// virt-viewer.nsis@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#!Nsis Installer Command Script
# data/virt-viewer.nsis.  Generated from virt-viewer.nsis.in by configure.
# To build an installer from the script you would normally do:
#
#   makensis virt-viewer.nsis
#
# which will generate the output file 'virt-viewer-2.0.exe' which is a Windows
# installer containing your program.

Name "VirtViewer 2.0"
OutFile "virt-viewer-2.0.exe"
InstallDir "$LOCALAPPDATA\virt-viewer"
InstallDirRegKey HKCU "Software\virt-viewer" ""

RequestExecutionLevel admin
SetCompressor bzip2
ShowInstDetails hide
ShowUninstDetails hide
XPStyle on

Page directory
Page instfiles

!include "EnvVarUpdate.nsh"

!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\virt-viewer"
!define REG_IEPOLICY  "Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{96190E9D-6FBB-64DB-9095-29F6FDE0B897}"
!define REG_SPICEPROTO "spice"
!define REG_SPICEICON "spice\DefaultIcon"
!define REG_SPICECOMM "spice\shell\open\command"

Function RegisterApplication
    ;Register uninstaller into Add/Remove panel (for local user only)
    ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\bin"
    WriteRegStr HKCR "${REG_SPICEPROTO}" "" "$\"spiceProtocol$\""
    WriteRegStr HKCR "${REG_SPICEPROTO}" "URL Protocol" "$\"$INSTDIR\bin\remote-viewer.exe$\""
    WriteRegStr HKCR "${REG_SPICEICON}" "" "$\"$INSTDIR\bin\remote-viewer.exe,1$\""
    WriteRegStr HKCR "${REG_SPICECOMM}" "" "$\"$INSTDIR\bin\remote-viewer.exe$\" $\"%1$\""
    WriteRegStr HKCU "${REG_UNINSTALL}" "DisplayName" "VirtViewer 2.0"
    WriteRegStr HKCU "${REG_UNINSTALL}" "DisplayIcon" "$\"$INSTDIR\bin\virt-viewer.exe$\""
    WriteRegStr HKCU "${REG_UNINSTALL}" "Publisher" "virt-manager.org"
    WriteRegStr HKCU "${REG_UNINSTALL}" "DisplayVersion" "2.0"
    WriteRegDWord HKCU "${REG_UNINSTALL}" "EstimatedSize" 32000 ;KB
    WriteRegStr HKCU "${REG_UNINSTALL}" "HelpLink" "http://www.virt-manager.org"
    WriteRegStr HKCU "${REG_UNINSTALL}" "URLInfoAbout" "http://www.virt-manager.org"
    WriteRegStr HKCU "${REG_UNINSTALL}" "InstallLocation" "$\"$INSTDIR$\""
    WriteRegStr HKCU "${REG_UNINSTALL}" "InstallSource" "$\"$EXEDIR$\""
    WriteRegDWord HKCU "${REG_UNINSTALL}" "NoModify" 1
    WriteRegDWord HKCU "${REG_UNINSTALL}" "NoRepair" 1
    WriteRegStr HKCU "${REG_UNINSTALL}" "UninstallString" "$\"$INSTDIR\Uninstall.exe$\""
    WriteRegStr HKCU "${REG_UNINSTALL}" "Comments" "Uninstalls VirtViewer."

    WriteRegStr HKCU "${REG_IEPOLICY}" "AppPath" "$INSTDIR\bin"
    WriteRegStr HKCU "${REG_IEPOLICY}" "AppName" "remote-viewer.exe"
    WriteRegDWord HKCU "${REG_IEPOLICY}" "Policy" 3
FunctionEnd

Function .onInit
retry:
 System::Call 'kernel32::CreateMutexA(i 0, i 0, t "VirtViewerMutex") i .r1 ?e'
 Pop $R0
 StrCmp $R0 0 end
   System::Call 'kernel32::CloseHandle(i r1) i.s'
   MessageBox MB_ICONEXCLAMATION|MB_RETRYCANCEL "VirtViewer is already running, quit any instance and retry." IDRETRY retry IDCANCEL cancel
cancel:
   Abort
end:
FunctionEnd

Section "VirtViewer"
  SectionIn RO
  WriteRegStr HKCU "Software\virt-viewer" "" $INSTDIR

  SetOutPath "$INSTDIR"
  File "deps.txt"

  SetOutPath "$INSTDIR\bin"
  !if ${HaveSpiceGtk} == True
    # gstreamer1
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/gst-inspect-1.0.exe"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/gst-launch-1.0.exe"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/gst-typefind-1.0.exe"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstbase-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstcontroller-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstreamer-1.0-0.dll"
    # gstreamer1-plugins-base
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstapp-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstaudio-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstfft-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgstpbutils-1.0-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgsttag-1.0-0.dll"

    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libusb-1.0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libusbredirhost-1.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libusbredirparser-1.dll"

    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcelt051-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libopus-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/liborc-0.4-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/liborc-test-0.4-0.dll"

    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libspice-client-glib-2.0-8.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libspice-controller-0.dll"
    !if ${GTK_VERSION} == 2.0
      File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libspice-client-gtk-2.0-4.dll"
    !else
      File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libspice-client-gtk-3.0-4.dll"
    !endif
  !endif

  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libatk-1.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcairo-2.dll"
  !if ${GTK_VERSION} == 3.0
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcairo-gobject-2.dll"
  !endif
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcrypto-10.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libexpat-1.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libffi-6.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libfontconfig-1.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libfreetype-6.dll"
  !if ${GTK_VERSION} == 2.0
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgdk-win32-2.0-0.dll"
  !else
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgdk-3-0.dll"
  !endif
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgdk_pixbuf-2.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgio-2.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgmodule-2.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgobject-2.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgthread-2.0-0.dll"
  !if ${GTK_VERSION} == 2.0
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgtk-win32-2.0-0.dll"
  !else
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgtk-3-0.dll"
  !endif
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/iconv.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libintl-8.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libjpeg-62.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpango-1.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpangocairo-1.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpangoft2-1.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpangowin32-1.0-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpixman-1-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libpng16-16.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssl-10.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libtasn1-6.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libxml2-2.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libp11-kit-0.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll"
  !if ${HaveLibvirt} == True
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libssh2-1.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libcurl-4.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libportablexdr-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libidn-11.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libvirt-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libvirt-qemu-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libvirt-lxc-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/virsh.exe"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/virt-pki-validate"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/virt-xml-validate"
  !endif

  #gtkvnc
  !if ${HaveGtkVnc} == True
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgpg-error-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcrypt-20.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgvnc-1.0-0.dll"
    !if ${GTK_VERSION} == 2.0
      File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgtk-vnc-1.0-0.dll"
    !else
      File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgtk-vnc-2.0-0.dll"
    !endif
  !endif

  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgnutls-28.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgmp-10.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libhogweed-2-5.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libnettle-4-7.dll"
  File /nonfatal "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll"
  File /nonfatal "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll"

  #libgovirt (and its dependencies)
  !if ${HaveOVirt} == True
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgovirt-2.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/librest-0.7-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/librest-extras-0.7-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libsoup-2.4-1.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libsqlite3-0.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libsoup-gnome-2.4-1.dll"
  !endif

  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/pango-querymodules.exe"
  File /oname=remote-viewer.com "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/bin/windows-cmdline-wrapper.exe"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/bin/remote-viewer.exe"
  !if ${HaveLibvirt} == True
    File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/bin/virt-viewer.exe"
  !endif
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/bin/zadig_xp.exe"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/libreadline6.dll"
  File "/usr/i686-w64-mingw32/sys-root/mingw/bin/zlib1.dll"

  SetOutPath "$INSTDIR\etc"
  File /r "/usr/i686-w64-mingw32/sys-root/mingw/etc/fonts"
  !if ${GTK_VERSION} == 2.0
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/etc/gtk-2.0"
  !else
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/etc/gtk-3.0"
  !endif
  File /r "/usr/i686-w64-mingw32/sys-root/mingw/etc/libvirt"
  CreateDirectory "$INSTDIR\etc\pango"

  !if ${GTK_VERSION} == 2.0
    CreateDirectory "$INSTDIR\etc\gtk-2.0"
  !else
    CreateDirectory "$INSTDIR\etc\gtk-3.0"
  !endif

  SetOutPath "$INSTDIR\lib"
  File /r "/usr/i686-w64-mingw32/sys-root/mingw/lib/gdk-pixbuf-2.0"
  !if ${GTK_VERSION} == 2.0
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/lib/gtk-2.0"
  !else
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/lib/gtk-3.0"
  !endif
  File /r "/usr/i686-w64-mingw32/sys-root/mingw/lib/pango"

  !if ${HaveSpiceGtk} == True
    SetOutPath "$INSTDIR\lib\gstreamer-1.0"
    # gstreamer1
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstcoreelements.dll"
    # gstreamer1-plugins-base
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstapp.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstaudioconvert.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstaudiorate.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstaudioresample.dll"
    # gstreamer1-plugins-good
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstautodetect.dll"
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstdirectsoundsink.dll"
    # gstreamer1-plugins-bad
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gstreamer-1.0/libgstdirectsoundsrc.dll"
  !endif

  !if ${HaveOVirt} == True
    SetOutPath "$INSTDIR\lib\gio\modules"
    File "/usr/i686-w64-mingw32/sys-root/mingw/lib/gio/modules/libgiognutls.dll"
  !endif

  SetOutPath "$INSTDIR\share"
  !if ${HaveLibvirt} == True
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/share/libvirt"
  !endif
  !if ${GTK_VERSION} == 3.0
    File /r "/usr/i686-w64-mingw32/sys-root/mingw/share/glib-2.0"
  !endif

  # fixme for all languages
  SetOutPath "$INSTDIR\share\locale\fr"
  !if ${HaveLibvirt} == True
    File "/usr/i686-w64-mingw32/sys-root/mingw/share/locale/fr/LC_MESSAGES/libvirt.*"
    File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/locale/fr/LC_MESSAGES/virt-viewer.*"
  !endif

  # fixme: are the UI files shared between virt-viewer and remote-viewer?
  SetOutPath "$INSTDIR\share\virt-viewer\ui"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/virt-viewer/ui/*.xml"

  !if ${GTK_VERSION} == 2.0
    SetOutPath "$INSTDIR\share\themes\MS-Windows\gtk-2.0"
    File "/usr/i686-w64-mingw32/sys-root/mingw/share/themes/MS-Windows/gtk-2.0/gtkrc"

    SetOutPath "$INSTDIR\etc\gtk-2.0"
    FileOpen $0 gtkrc w
    FileWrite $0 "gtk-theme-name = $\"MS-Windows$\" $\n"
    FileWrite $0 "gtk-icon-theme-name = $\"hicolor$\" $\n"
    FileClose $0
  !endif

  SetOutPath "$INSTDIR\share\icons\hicolor"
  File "/usr/share/icons/hicolor/index.theme"

  SetOutPath "$INSTDIR\share\icons\hicolor\16x16\apps"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/icons/hicolor/16x16/apps/virt-viewer.png"
  File "/usr/share/icons/Adwaita/16x16/apps/preferences-desktop-keyboard-shortcuts.png"
  SetOutPath "$INSTDIR\share\icons\hicolor\24x24\apps"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/icons/hicolor/24x24/apps/virt-viewer.png"
  SetOutPath "$INSTDIR\share\icons\hicolor\24x24\devices"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/icons/hicolor/24x24/devices/virt-viewer-usb.png"
  SetOutPath "$INSTDIR\share\icons\hicolor\32x32\apps"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/icons/hicolor/32x32/apps/virt-viewer.png"
  SetOutPath "$INSTDIR\share\icons\hicolor\48x48\apps"
  File "${DESTDIR}/usr/i686-w64-mingw32/sys-root/mingw/share/icons/hicolor/48x48/apps/virt-viewer.png"

  !if ${GTK_VERSION} == 3.0
    CreateDirectory "$INSTDIR\share\icons\Adwaita"
    SetOutPath "$INSTDIR\share\icons\Adwaita\16x16\places"
    File "/usr/share/icons/Adwaita/16x16/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\24x24\places"
    File "/usr/share/icons/Adwaita/24x24/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\32x32\places"
    File "/usr/share/icons/Adwaita/32x32/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\48x48\places"
    File "/usr/share/icons/Adwaita/48x48/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\64x64\places"
    File "/usr/share/icons/Adwaita/64x64/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\96x96\places"
    File "/usr/share/icons/Adwaita/96x96/places/folder-documents-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-download-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-music-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-pictures-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-publicshare-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-remote-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-saved-search-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-templates-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/folder-videos-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/network-server-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/network-workgroup-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/start-here-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/user-bookmarks-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/user-desktop-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/user-home-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/places/user-trash-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\16x16\devices"
    File "/usr/share/icons/Adwaita/16x16/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\24x24\devices"
    File "/usr/share/icons/Adwaita/24x24/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\32x32\devices"
    File "/usr/share/icons/Adwaita/32x32/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\48x48\devices"
    File "/usr/share/icons/Adwaita/48x48/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\64x64\devices"
    File "/usr/share/icons/Adwaita/64x64/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\96x96\devices"
    File "/usr/share/icons/Adwaita/96x96/devices/drive-harddisk-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/devices/drive-optical-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/devices/drive-removable-media-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\16x16\status"
    File "/usr/share/icons/Adwaita/16x16/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\24x24\status"
    File "/usr/share/icons/Adwaita/24x24/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\32x32\status"
    File "/usr/share/icons/Adwaita/32x32/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\48x48\status"
    File "/usr/share/icons/Adwaita/48x48/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\64x64\status"
    File "/usr/share/icons/Adwaita/64x64/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/64x64/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\96x96\status"
    File "/usr/share/icons/Adwaita/96x96/status/checkbox-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/96x96/status/checkbox-checked-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\16x16\actions"
    File "/usr/share/icons/Adwaita/16x16/actions/edit-clear-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/16x16/actions/view-restore.png"
    File "/usr/share/icons/Adwaita/16x16/actions/window-close.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\24x24\actions"
    File "/usr/share/icons/Adwaita/24x24/actions/edit-clear-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/24x24/actions/view-restore.png"
    File "/usr/share/icons/Adwaita/24x24/actions/window-close.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\32x32\actions"
    File "/usr/share/icons/Adwaita/32x32/actions/edit-clear-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/32x32/actions/view-restore.png"
    File "/usr/share/icons/Adwaita/32x32/actions/window-close.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\48x48\actions"
    File "/usr/share/icons/Adwaita/48x48/actions/edit-clear-symbolic.symbolic.png"
    File "/usr/share/icons/Adwaita/48x48/actions/view-restore.png"
    File "/usr/share/icons/Adwaita/48x48/actions/window-close.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\64x64\actions"
    File "/usr/share/icons/Adwaita/64x64/actions/edit-clear-symbolic.symbolic.png"

    SetOutPath "$INSTDIR\share\icons\Adwaita\96x96\actions"
    File "/usr/share/icons/Adwaita/96x96/actions/edit-clear-symbolic.symbolic.png"
  !endif

  ReadEnvStr $0 COMSPEC
  SetOutPath "$INSTDIR"
  nsExec::ExecToLog '$0 /C bin\pango-querymodules.exe > etc\pango\pango.modules'
  # ExecWait '"$INSTDIR\bin\zadig_xp.exe"'

  # make virt-viewer the default spice-x client
  WriteRegStr HKCU "Software\spice-space.org\spicex" "client" "$INSTDIR\bin\remote-viewer.exe --spice-controller"

SectionEnd

Section "Start Menu Shortcuts"
  CreateDirectory "$SMPROGRAMS\VirtViewer"
  CreateShortCut "$SMPROGRAMS\VirtViewer\Remote Viewer.lnk" "$INSTDIR\bin\remote-viewer.exe" "" "$INSTDIR\bin\remote-viewer.exe" 0
  CreateShortCut "$SMPROGRAMS\VirtViewer\Usb Driver.lnk" "$INSTDIR\bin\zadig_xp.exe" "" "$INSTDIR\bin\zadig_xp.exe" 0
  CreateShortCut "$SMPROGRAMS\VirtViewer\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
SectionEnd

Section "Uninstall"
  Delete /rebootok "$SMPROGRAMS\VirtViewer\Uninstall.lnk"
  Delete /rebootok "$SMPROGRAMS\VirtViewer\Remote Viewer.lnk"
  Delete /rebootok "$SMPROGRAMS\VirtViewer\Usb Driver.lnk"
  RMDir "$SMPROGRAMS\VirtViewer"

  DeleteRegKey HKCU "Software\spice-space.org\spicex\client"
  DeleteRegKey /ifempty HKCU "Software\spice-space.org\spicex"
  DeleteRegKey /ifempty HKCU "Software\spice-space.org"
  DeleteRegKey HKCU "Software\virt-viewer"
  DeleteRegKey HKCU "${REG_UNINSTALL}"
  DeleteRegKey HKCU "${REG_IEPOLICY}"
  DeleteRegKey HKCR "${REG_SPICEPROTO}"
  ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\bin"

  RMDir /r "$INSTDIR\share"

  RMDir /r "$INSTDIR\lib\pango"
  !if ${GTK_VERSION} == 2.0
    RMDir /r "$INSTDIR\lib\gtk-2.0"
  !else
    RMDir /r "$INSTDIR\lib\gtk-3.0"
  !endif

  !if ${HaveSpiceGtk} == True
    # gstreamer1
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstcoreelements.dll"
    # gstreamer1-plugins-base
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstapp.dll"
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstaudioconvert.dll"
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstaudiorate.dll"
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstaudioresample.dll"
    # gstreamer1-plugins-good
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstautodetect.dll"
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstdirectsoundsink.dll"
    # gstreamer1-plugins-bad
    Delete /rebootok "$INSTDIR\lib\gstreamer-1.0\libgstdirectsoundsrc.dll"
    RMDir "$INSTDIR\lib\gstreamer-1.0"
  !endif
  RMDir /r "$INSTDIR\lib\gdk-pixbuf-2.0"

  RMDir /r "$INSTDIR\etc\pango"
  !if ${GTK_VERSION} == 2.0
    RMDir /r "$INSTDIR\etc\gtk-2.0"
  !else
    RMDir /r "$INSTDIR\etc\gtk-3.0"
  !endif
  RMDir /r "$INSTDIR\etc\fonts"
  !if {HaveLibvirt} == True
    RMDir /r "$INSTDIR\etc\libvirt"
  !endif

  Delete /rebootok "$INSTDIR\bin\remote-viewer.com"
  Delete /rebootok "$INSTDIR\bin\remote-viewer.exe"
  Delete /rebootok "$INSTDIR\bin\pango-querymodules.exe"
  Delete /rebootok "$INSTDIR\bin\libpangoft2-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgdk_pixbuf-2.0-0.dll"
  !if ${GTK_VERSION} == 2.0
    Delete /rebootok "$INSTDIR\bin\libgdk-win32-2.0-0.dll"
  !else
    Delete /rebootok "$INSTDIR\bin\libgdk-3-0.dll"
  !endif
  !if ${HaveSpiceGtk} == True
    # gstreamer1
    Delete /rebootok "$INSTDIR\bin\gst-inspect-1.0.exe"
    Delete /rebootok "$INSTDIR\bin\gst-launch-1.0.exe"
    Delete /rebootok "$INSTDIR\bin\gst-typefind-1.0.exe"
    Delete /rebootok "$INSTDIR\bin\libgstbase-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgstcontroller-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgstreamer-1.0-0.dll"
    # gstreamer1-plugins-base
    Delete /rebootok "$INSTDIR\bin\libgstapp-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgstaudio-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgstfft-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgstpbutils-1.0-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgsttag-1.0-0.dll"

    Delete /rebootok "$INSTDIR\bin\libusb-1.0.dll"
    Delete /rebootok "$INSTDIR\bin\libusbredirhost-1.dll"
    Delete /rebootok "$INSTDIR\bin\libusbredirparser-1.dll"

    Delete /rebootok "$INSTDIR\bin\libcelt051-0.dll"
    Delete /rebootok "$INSTDIR\bin\libopus-0.dll"
    Delete /rebootok "$INSTDIR\bin\liborc-test-0.4-0.dll"
    Delete /rebootok "$INSTDIR\bin\liborc-0.4-0.dll"

    Delete /rebootok "$INSTDIR\bin\libspice-client-glib-2.0-8.dll"
    Delete /rebootok "$INSTDIR\bin\libspice-controller-0.dll"
    !if ${GTK_VERSION} == 2.0
      Delete /rebootok "$INSTDIR\bin\libspice-client-gtk-2.0-4.dll"
    !else
      Delete /rebootok "$INSTDIR\bin\libspice-client-gtk-3.0-4.dll"
    !endif
  !endif
  Delete /rebootok "$INSTDIR\bin\zlib1.dll"
  Delete /rebootok "$INSTDIR\bin\libreadline6.dll"
  Delete /rebootok "$INSTDIR\bin\libffi-6.dll"
  Delete /rebootok "$INSTDIR\bin\libp11-kit-0.dll"
  Delete /rebootok "$INSTDIR\bin\libxml2-2.dll"
  Delete /rebootok "$INSTDIR\bin\libtasn1-6.dll"
  Delete /rebootok "$INSTDIR\bin\libssl-10.dll"
  Delete /rebootok "$INSTDIR\bin\libpng16-16.dll"
  Delete /rebootok "$INSTDIR\bin\libpixman-1-0.dll"
  Delete /rebootok "$INSTDIR\bin\libpangowin32-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libpangocairo-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libpango-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libjpeg-62.dll"
  Delete /rebootok "$INSTDIR\bin\libintl-8.dll"
  !if ${HaveLibvirt} == True
    Delete /rebootok "$INSTDIR\bin\libvirt-0.dll"
    Delete /rebootok "$INSTDIR\bin\libwinpthread-1.dll"
    Delete /rebootok "$INSTDIR\bin\libcurl-4.dll"
    Delete /rebootok "$INSTDIR\bin\libidn-11.dll"
    Delete /rebootok "$INSTDIR\bin\libssh2-1.dll"
    Delete /rebootok "$INSTDIR\bin\libportablexdr-0.dll"
    Delete /rebootok "$INSTDIR\bin\libvirt-qemu-0.dll"
    Delete /rebootok "$INSTDIR\bin\libvirt-lxc-0.dll"
    Delete /rebootok "$INSTDIR\bin\virsh.exe"
    Delete /rebootok "$INSTDIR\bin\virt-pki-validate"
    Delete /rebootok "$INSTDIR\bin\virt-xml-validate"
    Delete /rebootok "$INSTDIR\bin\virt-viewer.exe"
  !endif
  Delete /rebootok "$INSTDIR\bin\zadig_xp.exe"
  Delete /rebootok "$INSTDIR\bin\libgmp-10.dll"
  Delete /rebootok "$INSTDIR\bin\libhogweed-2-5.dll"
  Delete /rebootok "$INSTDIR\bin\libnettle-4-7.dll"
  Delete /rebootok "$INSTDIR\bin\libgcc_s_sjlj-1.dll"
  Delete /rebootok "$INSTDIR\bin\libgcc_s_seh-1.dll"
  !if ${HaveGtkVnc} == True
    Delete /rebootok "$INSTDIR\bin\libgpg-error-0.dll"
    Delete /rebootok "$INSTDIR\bin\libgcrypt-20.dll"
    Delete /rebootok "$INSTDIR\bin\libgvnc-1.0-0.dll"
    !if ${GTK_VERSION} == 2.0
      Delete /rebootok "$INSTDIR\bin\libgtk-vnc-1.0-0.dll"
    !else
      Delete /rebootok "$INSTDIR\bin\libgtk-vnc-2.0-0.dll"
    !endif
  !endif
  Delete /rebootok "$INSTDIR\bin\libssp-0.dll"
  Delete /rebootok "$INSTDIR\bin\iconv.dll"
  !if ${GTK_VERSION} == 2.0
    Delete /rebootok "$INSTDIR\bin\libgtk-win32-2.0-0.dll"
  !else
    Delete /rebootok "$INSTDIR\bin\libgtk-3-0.dll"
  !endif
  Delete /rebootok "$INSTDIR\bin\libgthread-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgobject-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgnutls-28.dll"
  Delete /rebootok "$INSTDIR\bin\libgmodule-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libglib-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgio-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libfreetype-6.dll"
  Delete /rebootok "$INSTDIR\bin\libfontconfig-1.dll"
  Delete /rebootok "$INSTDIR\bin\libexpat-1.dll"
  Delete /rebootok "$INSTDIR\bin\libcrypto-10.dll"
  Delete /rebootok "$INSTDIR\bin\libcairo-2.dll"
  !if ${GTK_VERSION} == 3.0
    Delete /rebootok "$INSTDIR\bin\libcairo-gobject-2.dll"
  !endif
  Delete /rebootok "$INSTDIR\bin\libatk-1.0-0.dll"
  !if ${HaveOVirt} == True
    Delete /rebootok "$INSTDIR\bin\libgovirt-2.dll"
    Delete /rebootok "$INSTDIR\bin\librest-0.7-0.dll"
    Delete /rebootok "$INSTDIR\bin\librest-extras-0.7-0.dll"
    Delete /rebootok "$INSTDIR\bin\libsoup-2.4-1.dll"
    Delete /rebootok "$INSTDIR\bin\libsqlite3-0.dll"
    Delete /rebootok "$INSTDIR\bin\libsoup-gnome-2.4-1.dll"
  !endif

  !if ${HaveOVirt} == True
    Delete /rebootok "$INSTDIR\lib\gio\modules\libgiognutls.dll"
    RMDir /r "$INSTDIR\lib\gio"
  !endif

  RMDir "$INSTDIR\bin"
  RMDir "$INSTDIR\lib"

  Delete /rebootok "$INSTDIR\deps.txt"
  RMDir "$INSTDIR"
SectionEnd

Section -post
  WriteUninstaller "$INSTDIR\Uninstall.exe"
  Call RegisterApplication
SectionEnd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20151008/b2893bbf/attachment.htm>


More information about the virt-tools-list mailing list