TunnlTo / desktop-app

TunnlTo is a Windows WireGuard VPN client built for split tunnelling.
https://tunnl.to
1.31k stars 58 forks source link

Installer has insufficent privileges to access Start Menu folder #152

Closed GrahamboJangles closed 7 months ago

GrahamboJangles commented 7 months ago

image

What am I supposed to do with this? Running with an elevated CMD or PowerShell prompt does not fix the issue.

brendanosborne commented 7 months ago

Are you installing on a personal or work computer? What happens if you try to manually create the directory "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TunnlTo" and then run the installer?

GrahamboJangles commented 7 months ago

Are you installing on a personal or work computer? What happens if you try to manually create the directory "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TunnlTo" and then run the installer?

@brendanosborne Hi thanks for the comment. It's a personal PC. When I manually create the folder, the error changes to say (paraphrasing) "There was an error creating the directory "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TunnlTo"

brendanosborne commented 7 months ago

Are you seeing the same result if your right click the installer and select "Run as administrator"?

You may need to check the permissions on the Program folder and ensure your account has write access. Failing that, I'm a bit lost as to why that may be occurring.

GrahamboJangles commented 7 months ago

Are you seeing the same result if your right click the installer and select "Run as administrator"?

@brendanosborne No such option, unfortunately.

image

I also have Full Control over the folder.

I used some takeown /f commands to take ownership of the folder, and now it creates the directory but then says it doesn't have permission to create the shortcut (error 2902) even though when I go to the folder the shortcut is there. If I don't click OK on the error and go to "C:\Program Files\TunnlTo" the program is there and I can run it, but if I click OK on the installer it will delete the program and shortcut.

image

After I click OK on this it deletes everything.

image

GrahamboJangles commented 7 months ago

I ended up going to the program files folder, copying everything, clicking OK to close the installer, copying everything back in the folder then just running the TunnlTo.exe 😂

I don't know why, how, or what. I'm going to try this software out now, looks awesome. Thank you.

brendanosborne commented 7 months ago

Glad you got it working. The "Run as Administrator" option missing seems unusual. This link may help with that https://www.thewindowsclub.com/run-as-administrator-not-working-in-windows-10

I'll close this issue for now but if you discover any other information please post it in here.