Post by Stefan on Aug 27, 2022 8:55:53 GMT -5
George,
This is just an FYI.
You may recall many moons ago, I mentioned that I placed the SPFLite HomeData folder on my NAS to allow it to be shared by multiple machines, and since then I cannot install new versions of SPFLITE without messing around.
The installation always terminates early with a message "Cannot create S:\SPFLite directory", where "S:\SPFLite\" is the HomeData directory.
My workaround has been to use the OPTIONS CONFIG to point SPFLite at a HomeData folder on the C:\ drive, install SPFLite and then point SPFLite back at the HomeData folder on the NAS.
Whilst trying to sort another access issue involving the NAS, I've stumbled across the solution and, as expected, the cause lies within Windows.
The SPFlite install process is an innocent victim.
When a member of the Administrators group logs on to a computer with User Access Control (UAC) enabled, the user runs as a standard user.
If you are a member of the Administrators group and if you want to perform a task that requires a full administrator access token, User Account Control prompts you for approval.
When an administrator logs on, the system creates two access tokens. The second logon has the administrator rights removed. This downgraded access token is used to start the user’s desktop.
Applications can use the full administrator access token if the administrator user clicks Allow in a UAC dialog box.
Hence, when a user with the downgraded access token maps a network share, the network share is not mapped for processes that run with the full administrator access token.Solution (Registry)
There is a policy change that can be made in Windows to allow elevated processes to see mapped drives.
Using REGEDIT
(1) go to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
(2) Create a new DWORD value called EnableLinkedConnections and set the value to 1
(3) Reboot
SPFLite installs will proceed entirely normally, even when the HomeData folder resides on a mapped network drive.
Hope you're enjoying your holiday (what are you doing reading this???) or that you enjoyed your holiday (welcome back!).
Hope you're enjoying your holiday (what are you doing reading this???) or that you enjoyed your holiday (welcome back!).