If the installing user is not an administrator account, the installer has to be launched from an administrator account (Windows asks for the login details of the admin account when launching an admin executable from a standard account).
This also means, that vrpathreg will try to edit the openvrpaths.vrpath file of the admin user the installer is running as instead of the standard user that is logged in.
The "SteamVR installation folder not found!" error also originates from the issue sometimes, because if the admin account never launched SteamVR, it doesn't have that file.
Either we need to find out the username of the regular user and then manually write to the AppData path of that user, we need to find a way to launch vrpathreg as the standard user or we launch the installer non-admin by default and only elevate when needed.
If the installing user is not an administrator account, the installer has to be launched from an administrator account (Windows asks for the login details of the admin account when launching an admin executable from a standard account). This also means, that
vrpathreg
will try to edit theopenvrpaths.vrpath
file of the admin user the installer is running as instead of the standard user that is logged in. The "SteamVR installation folder not found!" error also originates from the issue sometimes, because if the admin account never launched SteamVR, it doesn't have that file.Either we need to find out the username of the regular user and then manually write to the AppData path of that user, we need to find a way to launch
vrpathreg
as the standard user or we launch the installer non-admin by default and only elevate when needed.