-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback to per-machine appdata folder when per-user appdata folder is not found. #567
Conversation
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
I have read the CLA Document and I hereby sign the CLA |
@barnson can you please look at this PR when you have time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is the right change. The unelevated engine will always fail when caching to a per-machine path so it's not really a fallback. Off the top of my head, the lack of a per-user cache path should fail as quickly as possible when a per-user cache is needed.
@barnson In my case, I am only installing per-machine and the GMSA account that is remote installing does not have a per-user cache causing the engine to fail. Can we leave the values uninitialized then when they are needed for users installing per-user, fail when the values are read? |
That's what I'm thinking. During planning, the engine knows if a per-user cache location is needed so if the path is NULL, throw an error. That prevents an access denied failure after elevating. |
@barnson I can certainly help with the task, however it seems like you are the best person for it, and I suspect this is a two liner, one line to ignore the missing value in cache.cpp.CacheInitialize then another to throw the error in cache.cpp.GetRootPath but you are the expert. Please let me know if there is anything I can do to either implement it or help out. Thanks for looking at this and all your work on this project. I am grateful I no longer have to use InstallShield. |
OK, then I'll mark this |
This update is an attempt to move past the "Failed to find local per-user appdata directory." when not found. Issue: wixtoolset/issues#8715