delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/15/17:06:56

X-Spam-Check-By: sourceware.org
Date: Fri, 15 Dec 2006 23:06:38 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Vista & coreutils (or any other package)
Message-ID: <20061215220638.GB8345@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20061214152631 DOT GK9829 AT calimero DOT vinschen DOT de> <4582CB6A DOT 6000301 AT byu DOT net> <20061215205301 DOT GA8345 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20061215205301.GA8345@calimero.vinschen.de>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec 15 21:53, Corinna Vinschen wrote:
> On Dec 15 09:20, Eric Blake wrote:
> > According to Corinna Vinschen on 12/14/2006 8:26 AM:
> > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1020271&SiteID=1&mode=1
> > 
> > Oh. My.  Well, as I maintain coreutils, and don't have access to Vista, I
> > will have a very tough time testing any "workarounds" to this blatant bug.
> >  Deciding that a file is a "security risk" purely on its metadata is
> > absolutely wrong - it is the contents that matter, and not the file name.
> [...]
> Create a text file "install.manifest" with this content
> 
> === SNIP ===
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
>   <assemblyIdentity version="1.0.0.0"
>      processorArchitecture="X86"
>      name="install.exe"
>      type="win32"/>
> 
>   <!-- Identify the application security requirements. -->
>   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
>     <security>
>       <requestedPrivileges>
>         <requestedExecutionLevel
>           level="asInvoker"
>           uiAccess="false"/>
>         </requestedPrivileges>
>        </security>
>   </trustInfo>
> </assembly>
> === SNAP ===

Stop right here.  In the aforementioned thread I got a very helpful
hint.  Just take the above text file and copy it to
"/usr/bin/install.exe.manifest".  That's it!  I had to touch
install.exe to circumvent caching, but afterwards it just worked.

I still think that the installer recognition is a bug in the UAC
design, but at least it's very simple to workaround.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019