X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7286F385802A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinwoodie.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adam AT dinwoodie DOT org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dinwoodie.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lZmfzwvK17GbJjh0KuFjYjl0Zeu9jjk0JMFSprjgYvw=; b=kjcjw0kApmaq30JdvqeaP5d58jn/fH/GScGjjTkcTVYsV7HLfYDZHbI+jwwD+yIpde wVMpcFJgMCo3oX4qxf+Xp94QqTRs7eUKFU8Di4EgrpW+xdJ2L5BmD8BwIfyfeGKhV2oT jmR4AS4FMFjoAXUyPD2OIuRTWsRHsdK+XNJ7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lZmfzwvK17GbJjh0KuFjYjl0Zeu9jjk0JMFSprjgYvw=; b=HzI7Xdr4QXYxoUEtSxW0Nvild2QNzXa3cxbJ3/hX21FRBI1xXl4/dg+rKQmr5PULyA kL8qwhmgFNwotDOUBowzyzJF/7CngH5LrGsYWZYubAhX17TIBIa21T03jLMp3cSaQKRd a9d77oi7ZibkMGmXEikXsLuN34nDG1EjJgUeryuZlBAG9+AzMdmywluqcAEgbk9lZTYv 4ASFNu+JCdZKpJP26DDh6BNEIwi9A5x6skIHfGV+2NDf29GmpG1Q+eml3LrP0ezXX8GR Tyl+nRIJigMKug7FwkbHND7yr+zfAaY2inSubYwTYqTHAOxZGPr23WTh88oNcW+QLSTo peZQ== X-Gm-Message-State: AOAM530JaXDe/G9F06CA1i7c0473Sm+mSPGT2mqsln5adS9llL/suJgp XyoTiJPTlXnJyGukVAFBzHDyoQT6U+pUQBcYPMjBGEAXJjg= X-Google-Smtp-Source: ABdhPJx8+Qy+aMKJrvpHMygffiDqBMrbemz/HO+ySNGQLMHs3F+m0BR6DsriFndz28u5Ge1RNf4zRWtQa4nI025ERZ0= X-Received: by 2002:a37:a843:: with SMTP id r64mr727138qke.436.1621370421585; Tue, 18 May 2021 13:40:21 -0700 (PDT) MIME-Version: 1.0 References: <000001d74b57$17671af0$463550d0$@pdinc.us> <91834264-88de-d523-749e-5759ee3ac1d4 AT dronecode DOT org DOT uk> <003d01d74b61$65d99c30$318cd490$@pdinc.us> <22cf500b-ec2e-11fd-97f1-ad2008433851 AT gmail DOT com> In-Reply-To: <22cf500b-ec2e-11fd-97f1-ad2008433851@gmail.com> From: Adam Dinwoodie <adam AT dinwoodie DOT org> Date: Tue, 18 May 2021 21:39:45 +0100 Message-ID: <CA+kUOamp6sfRrt39Kbe-1DH_E__iLX6GhjAfw3R1c9Li+WTexQ@mail.gmail.com> Subject: Re: preventing setup from forking To: "Cygwin (cygwin AT cygwin DOT com)" <cygwin AT cygwin DOT com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com> List-Archive: <https://cygwin.com/pipermail/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help> List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com> On Tue, 18 May 2021 at 10:13, Marco Atzeri via Cygwin wrote: > > On 17.05.2021 23:12, Jason Pyeron wrote: > >> -----Original Message----- > >> From: Jon Turney > >> Sent: Monday, May 17, 2021 4:41 PM > >> > > > > > My real issue was the user was not an admin - doh! > > that could be due to "setup" in the program name. > > It is one of the "security" ideas of MS I believe it's nothing to do with the program name, and everything to do with how the UAC permissions work: if you run the setup program with the -B argument so it won't check it's running with Administrator permissions, or run it from a parent process that already has Administrator permissions, you'll get the behaviour you might expect. If you run it without -B and from an unelevated context, then the installer will elevate to Administrator before it does anything else, and that means the calling context -- cmd or anything else -- won't get any feedback from the installer, so it returns straight away. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple