GitHubDesktopPortable icon indicating copy to clipboard operation
GitHubDesktopPortable copied to clipboard

Why do I need admin privileges to run the program?

Open ghost opened this issue 7 years ago • 14 comments
trafficstars

Was going to use this for school work but the fact that the program requires admin privileges is a bit disappointing. Is there a way to ensure that admin privileges are not required?

ghost avatar Jan 31 '18 15:01 ghost

The reason it it asks for administrative privileges is because by default I have it set to use Junction support which requires administrative privileges.

Now in the user configuration file, GitHubDesktopPortable.ini, which sits next to the portable launcher in the root folder, open that file and change the line that says Junction=true to false. This will allow to bypass the administrative Privileges and revert to the old way of copying and moving files which will be slower on lunch but you will be able to launch without administrative rights. Let me know if anything else. And thank you for using my portable apps.

daemondevin avatar Jan 31 '18 17:01 daemondevin

I've changed the line to false. as shown below but it still asks for admin rights :( https://i.imgur.com/YruNhSF.png

ghost avatar Jan 31 '18 18:01 ghost

It's either Junction= or Junctions=

If neither of those work still than you'll have to wait until I'm off work to fix it for you. I'm off work around 2 to 3 expect to hear back from me around 5.

Sorry man..

daemondevin avatar Jan 31 '18 19:01 daemondevin

Junctions= still isn't working, do I have to rebuild the program?

ghost avatar Feb 01 '18 10:02 ghost

If you know what you're doing, yes.

daemondevin avatar Feb 01 '18 12:02 daemondevin

I don't know what I'm doing :p

ghost avatar Feb 01 '18 17:02 ghost

Okay.. lol. I got the day off tomorrow and I'm running to my storage unit to grab my stuff so I'll be able to take a look at it hopefully. Keep your fingers crossed.

=P

daemondevin avatar Feb 02 '18 01:02 daemondevin

Was a fix ever found for this?

RayBB avatar Feb 28 '18 00:02 RayBB

@daemondevin I really want to beable to use this, but that bug is in the way

ghost avatar May 04 '18 21:05 ghost

If y'all just go into the App folder and go into GitHubDesktop and run GitHubDesktop.exe it'll work perfectly. No admin rights needed. Verified at school.

Carter-Rogers avatar Oct 24 '18 15:10 Carter-Rogers

@Carter-Rogers opened a pull request for README.md put it in the file, it is useful information

lyiriyah avatar Nov 28 '18 10:11 lyiriyah

If y'all just go into the App folder and go into GitHubDesktop and run GitHubDesktop.exe it'll work perfectly. No admin rights needed. Verified at school.

GitHubDesktopPortable-master\App\GitHubDesktop\GitHubDesktop.exe worked for me Thanks @Carter-Rogers

BrianWendt avatar Mar 19 '19 18:03 BrianWendt

A work around to resolve the problem is include the following registry key to set up the program to "run as invoker". This registry key can be edited without admin privileges.

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\[ . . . Path to the exe file here . . . ]]\GitHubDesktopPortable.exe"="RunAsInvoker"

I've had to do this only in Windows 10, where the .exe file required admin privileges to run. In Windows 7, the .exe file is executed normally, without requiring admin privileges

diogo-rossi avatar Nov 02 '19 15:11 diogo-rossi

SOLUTION Extract these files and put them inside "GitHubDesktopPortable" dir GitHubDesktopPortable_no admin!.zip then run "StartGitHub.vbs"

ibrahemesam avatar Jan 22 '20 21:01 ibrahemesam