You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows installer shows the Welcome page again after the UAC prompt #19631
RStudio Edition : Desktop
RStudio Version : installer built from NSIS.template.in at the head of #19630 (the code involved is unchanged since #18167)
OS Version : Windows 11 Pro (ARM64 VM)
R Version : n/a
Steps to reproduce the problem
As a member of the Administrators group, with UAC on, run the RStudio installer without elevating it first.
Click Next on the Welcome page.
On "Choose Users", keep "For anyone who uses this computer (all users)" and click Next.
Accept the UAC prompt.
Describe the problem in detail
After the UAC prompt the installer shows the Welcome page a second time. Clicking Next again goes on to "Choose Install Location", and the install completes normally.
NsisMultiUser elevates by starting a second, elevated instance of the installer, which begins again at the first page. It skips its own install-mode page in that instance, and sets $InstallShowPagesBeforeComponents to 0 there so that the script can skip the pages that come before it. package/win32/cmake/modules/NSIS.template.in never reads that variable, so the Welcome page is shown again.
Seen with an installer compiled from the template (NSIS 3.08, stand-in payload) while testing #19630; not checked against a release installer, but the pages and .onInit involved are the same there.
Describe the behavior you expected
After the UAC prompt the installer continues at "Choose Install Location".
A pre-function on MUI_PAGE_WELCOME that calls Abort when $InstallShowPagesBeforeComponents = 0 should be enough. #19630 adds a pre-function to that page for in-app updates (SkipPageForUpdate), which could carry the extra check.
Activity
skip the installer's welcome page in the elevated instance
show installer progress during in-app updates on windows (#19630)