From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 539C1385840B for ; Tue, 31 Aug 2021 15:57:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 539C1385840B Received: by mail-lf1-x131.google.com with SMTP id l10so5327399lfg.4 for ; Tue, 31 Aug 2021 08:57:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w3bb4ETpdOoPSKaD2nS5OOfnpFTSJbxWrakgwK2aL5A=; b=kKJYHUuhWKd3NkEy2driOCGrMV+WYbtg8pry5DdJMLBhiEkk+KRZx6J2skhysW8/eE vwFKq/aDT7wnRDZ/ew+y7MZR1RMdSMor4spFpLaokM5nJ4u9qrtm4iH0ThMvSKPcL83K G6ZabEGaV+uqagD2DVtarN3MLpAu++PaGbTxYqpBaR487FSWc+RMoNpbVKJyR/i5Ml3Y jdu8LMCmYaBX09+V0PinfkIVPjTg5VLLKKl1YoSNdNCM6c7K55RY7xrpxnK3HU0xi6cN PcOYawAjweqKAeflxhKusIPiopnLE7AAHFLFiaxQUsT3AOp1UQYX7x3vLocGkqM3txV5 RRpA== X-Gm-Message-State: AOAM531yW7CbiiEUxgOOWcq2R+ez1IH4riTHQf0+vwyGakw9H9oq+Cds PEkS7k69e6Fv7Ep2mLX6mTMrLabOSvc= X-Google-Smtp-Source: ABdhPJzeNUjRvXPID2NV2cP999prh5HY08OM6v2kfr0v1kcir+dN/RWUahoSbLoVNI5aV9J62F696w== X-Received: by 2002:a19:e002:: with SMTP id x2mr21825461lfg.84.1630425466689; Tue, 31 Aug 2021 08:57:46 -0700 (PDT) Received: from [192.168.2.225] ([94.229.108.206]) by smtp.googlemail.com with ESMTPSA id q5sm1764829lfg.36.2021.08.31.08.57.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Aug 2021 08:57:45 -0700 (PDT) Subject: Re: requestedExecutionLevel "asInvoker" is ignored for setup-x86_64.exe From: Ilya Basin To: cygwin@cygwin.com References: Message-ID: Date: Tue, 31 Aug 2021 18:57:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 15:57:49 -0000 Never mind. Just found in the FAQ that the installer tries to spawn an elevated child instead of using the manifest. So in "setup-x86_64.exe -B" the "-B" switch does the trick. On 31.08.2021 18:38, ilya Basin wrote: > Hi. > I noticed that despite having: > > > > in setup-x86_64.exe the UAC prompt is not bypassed and when I click Cancel the program is not started. > > Previously I used the same binary to install Cygwin for "Just me" on a host where regular users are simply not allowed to trigger a UAC prompt. > > I have downloaded some other software installers and they work as intended: > > cf7_installer.exe > Git-2.33.0-64-bit.exe > pgadmin4-5.6-x64.exe > > The following env var also failed: > > set __COMPAT_LAYER=RunAsInvoker > > Then I tried to un-UPX and remove the manifest with ResHacker and I also renamed "setup-x86_64.exe" to "putes-x86_64.exe" because I heard that UAC looks for keyword in .exe name without a manifest, but the resulting binary still triggers the UAC. > > > Reproducible on: > Windows 10 20-H2 build 19042.746 > Windows 7 sp1 buld 7601 >