From 5a831f07773690a89b8b0f6a6022f5e838f0c7ef Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 13 Apr 2023 11:08:17 +0100 Subject: [PATCH] Use %LocalAppData%\Programs --- docs/PerUserInstallers.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/PerUserInstallers.html b/docs/PerUserInstallers.html index f4c8e04..1cc6a9a 100644 --- a/docs/PerUserInstallers.html +++ b/docs/PerUserInstallers.html @@ -20,8 +20,8 @@ This can stay in the Downloads directory as it will only be needed once.

Second, the 64-bit Windows x64 installer (.exe) should be downloaded. This should be extracted using the previous standalone executable.

-
mkdir %USERPROFILE%\opt\7zip
-cd %USERPROFILE%\opt\7zip
+
mkdir %LocalAppData%\Programs\7zip
+cd %LocalAppData%\Programs\7zip
 %USERPROFILE%\Downloads\7zr.exe x %USERPROFILE%\Downloads\7z2201-x64.exe

The 7zip path can then be added to the %PATH% environment variable.

@@ -89,7 +89,7 @@ Then the Wix dark.exe command should be used to extract the VC_redi

Download

Download and run the msys2-x86_64-*.exe installer. -Install to a directory that you have write access to, e.g. under %USERPROFILE%\opt\msys64.

+Install to a directory that you have write access to, e.g. under %LocalAppData%\Programs\msys64.

Run the MSYS2 UCRT64 launcher. UCRT64 is Microsoft's Universal C Runtime Library and is the preferred build environment on modern (Windows 10 and above) Windows operating systems. @@ -98,7 +98,7 @@ For more information, see Env

Update the MSYS2 environment with pacman -Syu and then install the toolchain package group with pacman -S mingw-w64-ucrt-x86_64-toolchain. This will install all of the build tools including gcc, g++, and mingw32-make, plus the libstdc and libstdc++ libraries.

-

Finally, add %USERPROFILE%\opt\msys64\ucrt64\bin to the %PATH% environment variable.

+

Finally, add %LocalAppData%\Programs\msys64\ucrt64\bin to the %PATH% environment variable.

A profile can be added to Windows Terminal with the following settings:

@@ -110,15 +110,15 @@ This will install all of the build tools including gcc, g++ Command line: - %USERPROFILE%\opt\msys64\msys2_shell.cmd -defterm -here -no-start -ucrt64 + %LocalAppData%\Programs\msys64\msys2_shell.cmd -defterm -here -no-start -ucrt64 Starting directory: - %USERPROFILE%\opt\msys64\home\%USERNAME% + %LocalAppData%\Programs\msys64\home\%USERNAME% Icon: - %USERPROFILE%\opt\msys64\ucrt64.ico + %LocalAppData%\Programs\msys64\ucrt64.ico @@ -145,7 +145,7 @@ This can be used by the built-in Windows OpenSSH client by adding an Inclu

The following can be put into a batch file named vim.cmd in the %PATH% to make it easier to launch without pulling in all the other programs:

@ECHO OFF
-"%USERPROFILE%\opt\vim\vim90\vim.exe" %*
+"%LocalAppData%\Programs\vim\vim90\vim.exe" %*

WinCompose