GODJonez's Workshop - Xfire + Windows UAC
2009-07-03 1:39 PM PDT
Starting from Windows Vista Microsoft has included a component called User Account Control to Windows operating system. The purpose of UAC is, contrary to popular belief, to make software developers create programs that do not require administrative permissions for normal operation. The other function of UAC is to let the user know when a program might be trying to do something that can change the system settings and give an option to prevent it from happening.

Xfire does not require administrative permissions for its normal operation and does not ask for it unless needed. Of course full Xfire updates do require elevation since installing or updating programs is altering the system and therefore requires administrator permission. Even still, for most people who have UAC enabled, Xfire does ask for permission on every launch.

The reason for Xfire asking for administrative permissions even when it is not updating is to be able to support games that require administrator permissions. If Xfire detects even one game installed on your computer that runs as admin, Xfire will ask you for admin permissions to be able to support the game in question. Normally you get a message from Xfire listing the games that were found to need elevation, after which UAC will kick in and ask if you really want to let Xfire elevate itself.

Even though you can select to never display the list of games requiring elevation, there is no option to tell Windows to not ask every time if Xfire is allowed to have full access or not. Of course disabling UAC will get rid of the message but will also disable one of the most core security features of Windows at the same time, so you do not want to do it.

Here I give you instructions on how to make Windows automatically start Xfire as administrator without prompting the UAC dialog every time. Note that you might still get the UAC dialog when updating Xfire, however.

Starting Xfire with administator permissions without UAC dialog

The trick I show you here is to use Task Scheduler to run Xfire with elevated permissions. Of course this trick could be used for any program, but you need to remember that the point of UAC is to inform the user whenever a program tries to gain access to the system.

1. From Start menu open Control Panel
2. Switch to Classic view (if not already)
3. Select Administrative Tools
4. Select Task Scheduler

5. Windows will ask for admin permissions to access Task Scheduler. Allow them.
6. Now click on Create Task... (see image below)


7. As Name type in XfireNoUAC
8. Make sure to check Run with highest privileges checkbox on the General tab
- If you are on Windows 7, select Windows 7 from the Configure for drop-down.


9. On Actions tab click New...
10. For Action select Start a program
11. For Program/script navigate to xfire.exe (typically "C:\Program Files (x86)\Xfire\Xfire.exe&quot


12. Press OK
13. On Conditions tab you might want to uncheck the boxes under Power, unless you want Xfire to not be usable when the computer is on battery power (portable computers only)
14. On Settings tab you want to uncheck the Stop the task if it runs longer than box
15. Click OK
16. Close Task Scheduler
17. From Start menu, choose All Programs and open the Startup folder
18. Right click on Xfire link there and select Properties


19. Change to Shortcut tab
20. Change the text in Target field to read schtasks.exe /run /tn XfireNoUAC
21. For Run choose Minimized


22. Press OK


Now the shortcut that starts Xfire on every boot is modified to start Xfire using the elevated task. Since the task is started by the system itself, it will not ask for permissions, it trusts that you know what you are doing when you gave the permission in Task Scheduler.

Let me know in comments if this was helpful and if it worked for you. Thank you again for following the blog!

Joonas
views: 17467
Comments
 1   2   3   4 
Carch (badken) 2010-03-07 9:59 PM PST
This is a nice tip, but really, Xfire shouldn't be constantly running with elevated privileges. It's a huge security hole. Anyone who figured out how to hack Xfire to execute arbitrary code would have unrestricted access.

There's got to be a better way.
Synther (synther33) 2010-03-14 3:59 AM PDT
Every other program on the planet, right down to Bit Torrent, runs without having to do this. What is XFire's excuse? There is none. This is garbage.

"We can't make the program work right, so take an axe and hack your way through everything to make it work."

No software is supposed to work this way. Just who do you guys have writing your code?
Jashiat (jashiat) 2010-07-23 3:23 PM PDT
Works great, thanks
Extreme_One's Σvîl †ŵiή (extreme0ne) 2010-07-24 6:37 AM PDT
Excellent. Thanks GJ. I just upgraded to Win7 from XP so this UAC thing is a little annoying. I'm like you though, rather have it on and find solutions for very common programs like Xfire. Great solution.
dushaa (larebz) 2010-07-29 1:01 PM PDT
thx alot for this, works a treat. Xfire does seem to load up slower than normally though i think, saves me having to click yes every startup anyway.
Livvian (alex1408) 2010-08-11 7:02 AM PDT
Wow... thanks!
alexstrcklnd17 (alexstrcklnd17) 2010-12-31 7:13 PM PST
Last Thanksgiving, my mom decided to play a trick on my sister (who's blonde). To get her out of the house, she convinced her that we needed more half and half for the coffee.

While my sister was out, my mom took the turkey out of the oven, removed the stuffing, stuffed a Cornish hen, then put it inside the turkey, packing stuffing all around it. She then put the turkey back in the oven.

When everything was ready, my sister took the turkey out of the oven and began to remove the stuffing. When she felt something, she reached in and pulled out the Cornish hen.

Pretending to be shocked, by mother exclaimed, "Patti, you've cooked a pregnant turkey!"

My sister began to cry and was inconsolable. It took us half an hour to convince her that turkeys lay eggs!

women with dicks
shemaleescorts
chicks with dicks
she males
transgender escorts
alexstrcklnd17 (alexstrcklnd17) 2010-12-31 7:13 PM PST
Last Thanksgiving, my mom decided to play a trick on my sister (who's blonde). To get her out of the house, she convinced her that we needed more half and half for the coffee.

While my sister was out, my mom took the turkey out of the oven, removed the stuffing, stuffed a Cornish hen, then put it inside the turkey, packing stuffing all around it. She then put the turkey back in the oven.

When everything was ready, my sister took the turkey out of the oven and began to remove the stuffing. When she felt something, she reached in and pulled out the Cornish hen.

Pretending to be shocked, by mother exclaimed, "Patti, you've cooked a pregnant turkey!"

My sister began to cry and was inconsolable. It took us half an hour to convince her that turkeys lay eggs!

women with dicks
shemaleescorts
chicks with dicks
she males
transgender escorts
alexstrcklnd17 (alexstrcklnd17) 2010-12-31 7:14 PM PST
Last Thanksgiving, my mom decided to play a trick on my sister (who's blonde). To get her out of the house, she convinced her that we needed more half and half for the coffee.

While my sister was out, my mom took the turkey out of the oven, removed the stuffing, stuffed a Cornish hen, then put it inside the turkey, packing stuffing all around it. She then put the turkey back in the oven.

When everything was ready, my sister took the turkey out of the oven and began to remove the stuffing. When she felt something, she reached in and pulled out the Cornish hen.

Pretending to be shocked, by mother exclaimed, "Patti, you've cooked a pregnant turkey!"

My sister began to cry and was inconsolable. It took us half an hour to convince her that turkeys lay eggs!

women with dicks
shemaleescorts
chicks with dicks
she males
transgender escorts
bestbelieve (daenrr) 2011-03-19 5:52 PM PDT
Thank you so much for this! Living with Xfire always having the UAC box pop up for around two years was agitating me, I got used to it, but thanks to this, woooo!
 1   2   3   4