1

I am trying to update my App from the sysMenu.

And by doing click on Update App.. in the SysMenu, Updates automatically started.

Its working fine with XP and Win 7, But when I trying to do the same thing in Win 8 then Its not working. It gives alert message that "You do not have sufficient rights to run this App". even if I am logged with Administrator user.

Hint: If I manually run that Updates.exe with run as Administrator then its also working.

I have attached the screen shot. I don't know why this happen with Win 8 only.

enter image description here

Edit I have also refer these articles.

https://learn.microsoft.com/en-us/previous-versions/bb756929(v=msdn.10)

http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/

Cœur
  • 37,241
  • 25
  • 195
  • 267
AB Bolim
  • 1,997
  • 2
  • 23
  • 47
  • 1
    UAC is "always on" with Windows 8. You should look at `Updates.exe`'s manifest and see what privilege level it's requesting. http://stackoverflow.com/questions/7666408/how-to-request-administrator-permissions-when-the-program-starts – ta.speot.is Apr 06 '13 at 06:54
  • I have checked my `Updates.exe`'s manifest, and in that manifest `` also mention. But still its not resolved my issue. Any other suggestion ? – AB Bolim Apr 06 '13 at 07:05
  • @ta.speot.is - No, it's not. Anyone can change the behavior. It is same as in Windows 7. – Ajay Apr 06 '13 at 10:13
  • @Ajay It's different: http://www.brianbondy.com/blog/id/140/ You can disable it, but you have to edit the registry and it's a whole lot harder. – ta.speot.is Apr 06 '13 at 12:18

2 Answers2

0

You didn't mention if this is your app or not. I assume it's your app, which you have build using the given manifest setting.

You can use Process Explorer to check if it is running with Elevated user permissions or not (check when this dialog comes up). It may be some build issue, you are setting this UAC setting for different project/build, and attempting to run different executable.

Other thing might be with specific user rights in Local Security Policy (I don't know which policy may allow/prevent updates). Or may be with the thread security rights, which is attempting to launch updates.

Ajay
  • 18,086
  • 12
  • 59
  • 105
  • I am setting this UAC setting for both, for my App as well as for this Updates.exe, that I have checked. I am also logged in with Administrator rights, so... And I have also try the Process Explorer to check for user permission, but I dont know how to check it, So can you more specify.. – AB Bolim Apr 06 '13 at 09:14
  • Both? You app and Updates.exe are different, I am lost! Run `procexp.exe`, and select 'Integrity Level' Column to see UAC state. – Ajay Apr 06 '13 at 09:21
  • I have checked the "Integrity Level", and it show me for my App is "High" and for Updates.exe its "Medium". So... now...?? – AB Bolim Apr 06 '13 at 09:33
  • "High" is administrator, and "Medium" is normal (not Low, like IE in restricted mode). It simply mean that `Updates.exe` is not running in Admin-mode! You still have not mentioned what your app is and what this `Updates.exe` is! – Ajay Apr 06 '13 at 09:37
  • So, how can I give the Administrator rights to Updates.exe ? In the manifest I have mention the ``. Is there any other way to make to make "Medium" to "High" ?? – AB Bolim Apr 06 '13 at 09:41
  • Still unanswered: What is your-app, and what is Updates.exe? Are they same? – Ajay Apr 06 '13 at 10:12
  • Nope.. My App is product base App, And its version is updated by the Updates.exe which is higher version of My App. Hope now you ll clear. – AB Bolim Apr 06 '13 at 10:25
  • I quit answering to your vagueness! Sorry! – Ajay Apr 06 '13 at 10:28
0

I am definitely sure that there is something wrong with your manifest file. Please embed the manifest with

<requestedExecutionLevel level="requireAdministrator" uiAccess="false">

with your Updates.exe.

Though even you have tried it, please try it one more time.

The error dialog seen in snapshot is look like its from your app. So there may be some check in your app, which is showing this dialog.

CreativeMind
  • 897
  • 6
  • 19