<div dir="ltr">ping<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 5:03 PM, Marc-André Lureau <span dir="ltr"><<a href="mailto:mlureau@redhat.com" target="_blank">mlureau@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<div class=""><br>
----- Original Message -----<br>
> Hi Marc-Andre,<br>
><br>
> I think you should also add 'InstallPrivileges="elevated”’ as “Package"<br>
> element attribute.<br>
><br>
> The Windows will prompt the user to elevate to administrator, otherwise the<br>
> user might not have sufficient rights to install the service.<br>
><br>
<br>
</div>I didn't noticed any issue installing on windows 7 as a regular user, I get prompter for elevated privileges.<br>
<br>
This is the default value, according to:<br>
<br>
<a href="http://msdn.microsoft.com/en-us/library/aa372870%28v=vs.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/aa372870%28v=vs.85%29.aspx</a><br>
Bit 3 0 Elevated privileges can be required to install this package.<br>
<br>
cheers<br>
<div class="HOEnZb"><div class="h5"><br>
> Best regards,<br>
> Yan.<br>
><br>
> On Feb 17, 2014, at 6:41 PM, Marc-André Lureau <<a href="mailto:marcandre.lureau@gmail.com">marcandre.lureau@gmail.com</a>><br>
> wrote:<br>
><br>
> > ---<br>
> > Makefile.am | 23 +++++++++++++++-<br>
> > <a href="http://configure.ac" target="_blank">configure.ac</a> | 30 ++++++++++++++++++++<br>
> > <a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a> | 78<br>
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
> > 3 files changed, 130 insertions(+), 1 deletion(-)<br>
> > create mode 100644 <a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a><br>
> ><br>
> > diff --git a/Makefile.am b/Makefile.am<br>
> > index 749ef56..9fa9f14 100644<br>
> > --- a/Makefile.am<br>
> > +++ b/Makefile.am<br>
> > @@ -1,4 +1,5 @@<br>
> > NULL =<br>
> > +EXTRA_DIST =<br>
> > MAINTAINERCLEANFILES =<br>
> ><br>
> > DIST_SUBDIRS = spice-protocol<br>
> > @@ -61,8 +62,28 @@ vdservice_rc.$(OBJEXT): vdservice/vdservice.rc<br>
> ><br>
> > MAINTAINERCLEANFILES += vdservice_rc.$(OBJEXT)<br>
> ><br>
> > +deps.txt:<br>
> > + $(AM_V_GEN)rpm -qa | grep $(host_os) | sort | unix2dos > $@<br>
> ><br>
> > -EXTRA_DIST = \<br>
> > +MANUFACTURER = The Spice Project<br>
> > +<br>
> > +EXTRA_DIST += <a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a><br>
> > +CONFIG_STATUS_DEPENDENCIES = <a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a><br>
> > +<br>
> > +spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi: spice-vdagent.wxs<br>
> > deps.txt all<br>
> > + $(AM_V_GEN)DESTDIR=`mktemp -d`&& \<br>
> > + make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \<br>
> > + MANUFACTURER="$(MANUFACTURER)" wixl -D SourceDir=$(prefix) \<br>
> > + -D DESTDIR=$$DESTDIR$(prefix) \<br>
> > + --arch $(WIXL_ARCH) -o $@ $<<br>
> > +<br>
> > +msi: spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi<br>
> > +<br>
> > +CLEANFILES = spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi<br>
> > +<br>
> > +.PHONY: msi<br>
> > +<br>
> > +EXTRA_DIST += \<br>
> > $(top_srcdir)/.version \<br>
> > tests/clipboard.py \<br>
> > vdagent.sln \<br>
> > diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> > index 12329b4..7f6511d 100644<br>
> > --- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> > +++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> > @@ -9,11 +9,30 @@ AC_CONFIG_SRCDIR([vdagent])<br>
> > AC_CONFIG_HEADERS([config.h])<br>
> > AC_CONFIG_MACRO_DIR([m4])<br>
> > AC_CONFIG_AUX_DIR([build-aux])<br>
> > +AC_CANONICAL_HOST<br>
> ><br>
> > AM_INIT_AUTOMAKE([1.11 foreign subdir-objects no-dist-gzip dist-xz<br>
> > tar-ustar])<br>
> ><br>
> > AM_SILENT_RULES([yes])<br>
> ><br>
> > +AC_ARG_WITH([buildid],<br>
> > +AS_HELP_STRING([--with-buildid=id], [Set additional build version<br>
> > details]))<br>
> > +AC_DEFINE_UNQUOTED([BUILDID], "$with_buildid", [Build version details])<br>
> > +if test "x$with_buildid" != x; then<br>
> > + AC_SUBST([BUILDID], "-$with_buildid")<br>
> > +fi<br>
> > +<br>
> > +major=`echo $PACKAGE_VERSION | cut -d. -f1`<br>
> > +minor=`echo $PACKAGE_VERSION | cut -d. -f2`<br>
> > +micro=`echo $PACKAGE_VERSION | cut -d. -f3`<br>
> > +buildid=`echo $with_buildid | cut -d. -f1`<br>
> > +if test "x$buildid" = x; then<br>
> > + buildid=0<br>
> > +fi<br>
> > +build=`expr $micro \* 256 + $buildid`<br>
> > +WINDOWS_PRODUCTVERSION="$major.$minor.$build"<br>
> > +AC_SUBST([WINDOWS_PRODUCTVERSION])<br>
> > +<br>
> > # Check for programs<br>
> > AC_PROG_CC<br>
> > AC_PROG_CXX<br>
> > @@ -21,6 +40,16 @@ AM_PROG_CC_C_O<br>
> > AC_PROG_INSTALL<br>
> > AC_CHECK_TOOL(WINDRES, [windres])<br>
> ><br>
> > +case "$host" in<br>
> > +amd64*|x86_64*)<br>
> > + WIXL_ARCH="x64"<br>
> > +;;<br>
> > +*)<br>
> > + WIXL_ARCH="x86"<br>
> > +;;<br>
> > +esac<br>
> > +AC_SUBST(WIXL_ARCH)<br>
> > +<br>
> > AC_ARG_ENABLE([debug],<br>
> > AS_HELP_STRING([--enable-debug], [Enable debugging]))<br>
> ><br>
> > @@ -75,6 +104,7 @@ AC_CONFIG_SUBDIRS([spice-protocol])<br>
> > AC_CONFIG_FILES([<br>
> > Makefile<br>
> > mingw-spice-vdagent.spec<br>
> > +spice-vdagent.wxs<br>
> > ])<br>
> > AC_OUTPUT<br>
> ><br>
> > diff --git a/<a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a> b/<a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a><br>
> > new file mode 100644<br>
> > index 0000000..060f33d<br>
> > --- /dev/null<br>
> > +++ b/<a href="http://spice-vdagent.wxs.in" target="_blank">spice-vdagent.wxs.in</a><br>
> > @@ -0,0 +1,78 @@<br>
> > +<?xml version="1.0" encoding="utf-8"?><br>
> > +<br>
> > +<Wix xmlns="<a href="http://schemas.microsoft.com/wix/2006/wi" target="_blank">http://schemas.microsoft.com/wix/2006/wi</a>"><br>
> > +<br>
> > + <?define Version = "@WINDOWS_PRODUCTVERSION@"?><br>
> > + <?define UpgradeCode = "7eb9b146-db04-42d7-a8ba-71fc8ced7eed"?><br>
> > + <?define Arch = "@WIXL_ARCH@"?><br>
> > + <?if $(var.Arch) = "x64"?><br>
> > + <?define ArchString = "64-bit"?><br>
> > + <?define ArchProgramFilesFolder = "ProgramFiles64Folder"?><br>
> > + <?define Win64 = "yes"?><br>
> > + <?else?><br>
> > + <?define ArchString = "32-bit"?><br>
> > + <?define ArchProgramFilesFolder = "ProgramFilesFolder"?><br>
> > + <?define Win64 = "no"?><br>
> > + <?endif?><br>
> > +<br>
> > + <Product Id="*" Name="Spice agent @VERSION@@BUILDID@<br>
> > ($(var.ArchString))"<br>
> > + Manufacturer="$(env.MANUFACTURER)"<br>
> > + Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)"<br>
> > + Language="1033"><br>
> > +<br>
> > + <Package InstallerVersion="200" Compressed="yes" Comments="comments"/><br>
> > + <Media Id="1" Cabinet="cabinet.cab" EmbedCab="yes"/><br>
> > +<br>
> > + <Property Id="ARPHELPLINK" Value="<a href="http://www.spice-space.org" target="_blank">http://www.spice-space.org</a>"/><br>
> > + <Property Id="ARPNOMODIFY" Value="1"/><br>
> > + <Property Id="ARPNOREPAIR" Value="1"/><br>
> > + <Upgrade Id="$(var.UpgradeCode)"><br>
> > + <UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes"<br>
> > Property="NEWERVERSIONDETECTED"/><br>
> > + <UpgradeVersion Minimum="0.0.0" Maximum="$(var.Version)"<br>
> > IncludeMinimum="yes" IncludeMaximum="no"<br>
> > Property="OLDERVERSIONBEINGUPGRADED"/><br>
> > + </Upgrade><br>
> > + <Condition Message="Product already installed.">NOT<br>
> > NEWERVERSIONDETECTED</Condition><br>
> > + <InstallExecuteSequence><br>
> > + <RemoveExistingProducts After="InstallFinalize"/><br>
> > + </InstallExecuteSequence><br>
> > +<br>
> > + <Directory Id="TARGETDIR" Name="SourceDir"><br>
> > + <Directory Id="$(var.ArchProgramFilesFolder)"><br>
> > + <Directory Id="INSTALLDIR" Name="SPICE agent"><br>
> > + <Directory Id="Dbindir" Name="bin"><br>
> > + <Component Id="CSpiceAgent" Guid="*"><br>
> > + <File Id='spiceagent' Name='vdagent.exe' DiskId='1'<br>
> > Source='$(var.DESTDIR)/bin/vdagent.exe' KeyPath='yes'/><br>
> > + </Component><br>
> > + <Component Id="CSpiceService" Guid="*"><br>
> > + <File Id='spiceservice' Name='vdservice.exe' DiskId='1'<br>
> > Source='$(var.DESTDIR)/bin/vdservice.exe' KeyPath='yes'/><br>
> > + <ServiceInstall Id="ServiceInstall"<br>
> > + Name="spice-agent"<br>
> > + DisplayName="Spice agent"<br>
> > + Description="The Spice guest agent"<br>
> > + Type="ownProcess"<br>
> > + Start="auto"<br>
> > + Account="[SERVICEACCOUNT]"<br>
> > + Password="[SERVICEPASSWORD]"<br>
> > + ErrorControl="normal"/><br>
> > + <ServiceControl Id="StartService"<br>
> > + Name="spice-agent"<br>
> > + Start="install"<br>
> > + Stop="both"<br>
> > + Remove="uninstall"<br>
> > + Wait="yes"/><br>
> > + </Component><br>
> > + </Directory><br>
> > + <Component Id="CDepsTxt" Guid="*"><br>
> > + <File Id='depstxt' Name='deps.txt' DiskId='1'<br>
> > Source='deps.txt' KeyPath='yes'/><br>
> > + </Component><br>
> > + </Directory><br>
> > + </Directory><br>
> > + </Directory><br>
> > +<br>
> > + <Feature Id="Complete" Level="1"><br>
> > + <ComponentRef Id="CSpiceAgent"/><br>
> > + <ComponentRef Id="CSpiceService"/><br>
> > + <ComponentRef Id="CDepsTxt"/><br>
> > + </Feature><br>
> > +<br>
> > + </Product><br>
> > +</Wix><br>
> > --<br>
> > 1.8.4.2<br>
> ><br>
> > _______________________________________________<br>
> > Spice-devel mailing list<br>
> > <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
><br>
> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Marc-André Lureau
</div>