Closed Walter-Gates-Bose closed 2 weeks ago
I could imagine that it is actually the DeleteFromVirtualStore()
function that looks up the path of LocalAppData
.
Having said that, I think that InnoSetup assumes that LocalAppData
is always there, just like I did before this report came in. How can it be missing?
I believe the reason the HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
key is missing is related to the machine being an AWS EC2 instance with no users other than the default Administrator set up. The corresponding environment variable returns:
PS C:\Windows\system32> $env:LocalAppData
C:\Windows\system32\config\systemprofile\AppData\Local
I had to move on from this to continue my work priorities (I used the portable installer) however I will try to look into it a little more on my free time.
Seems like the warning shown in the log is produced by this code, and the error by this code.
I guess the best course of action would be to report this issue in the InnoSetup forum and hopefully they have a clear idea how to fix it.
I'll close this ticket because it is now clear that this is an InnoSetup bug, not a Git for Windows bug, and needs to be addressed there instead.
Setup
git.2.44.0.20240423.MsiInstall.log
The machine is an AWS EC2 instance. The user is the default admin user. All tests that the user is in admin mode returned true.
I looked through https://github.com/git-for-windows/build-extra to try to find a reason this could be happening and one set of paths ( 1 2 3 ) I found that looked like they might be trying to access the localappdata constant were for the windowsterminal component, so I made sure I was not selecting that component; those code paths also were only looking at localappdata when not in admin install mode so I double checked that my terminal was in admin mode. Another section looks to be only call as part of after install cleanup that the log indicates the process never reached.
Details
PowerShell
Git installed.
Error message.
N/A