Update UserAssist and _ExpandedTransforms#32
Conversation
| ) | ||
| `^c:`="C:", | ||
|
|
||
| `\\{008CA0B1-55B4-4C56-B8A8-4DE4B299D3BE\\}\\\\`="%APPDATA%\\Microsoft\\Windows\\AccountPictures\\", |
There was a problem hiding this comment.
Extract these to the AppCompatCache rule
There was a problem hiding this comment.
Thats what I mean - the logic should live with the rule and not be in the global template.
You can manipulate the _ExpandedTransforms after the fact by adding this in the preamble:
LET _ExpandedTransforms <= _ExpandedTransform + dict(.....)
| `\\{DE92C1C7-837F-4F69-A3BB-86E631204A23\\}\\\\`="%USERPROFILE%\\Music\\Playlists\\", | ||
| `\\{9274BD8D-CFD1-41C3-B35E-B13F55A758F4\\}\\\\`="%APPDATA%\\Microsoft\\Windows\\Printer Shortcuts\\", | ||
| `\\{5E6C858F-0E22-4760-9AFE-EA3317B67173\\}\\\\`="%USERPROFILE%\\", | ||
| `\\{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97\\}\\\\`="%ALLUSERSPROFILE%\\", |
There was a problem hiding this comment.
Many of these env variables wont be available in dead disk mode, maybe add them into the Environment default parameter?
There was a problem hiding this comment.
@scudette I added more, not sure if %USERNAME% will work but we can remove/edit those lines as needed
There was a problem hiding this comment.
Maybe we need some special logic to replace some env vars with the current username as extracted from OSPath - so we can be smart about resolving %USERPROFILE% and %APPDATA% - otherwise I dont think this will work at all
There was a problem hiding this comment.
I ended up removing:
APPDATA,C:\Users%USERNAME%\AppData\Roaming
LOCALAPPDATA,C:\Users%USERNAME%\AppData\Local
USERPROFILE,C:\Users%USERNAME%
I tink its still worth having the guid conversion as the %env var% is nicer to read than the GUID imho



Update UserAssist and _ExpandedTransforms