KinectToVR / k2vr-installer-gui

Ugly af installer made by fruit juice who doesn't know shit about WPF
35 stars 5 forks source link

Driver is registered in the wrong place or not at all when the installing user it not an administrator #10

Open HimbeersaftLP opened 2 years ago

HimbeersaftLP commented 2 years ago

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.