1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

.NET Admin modal-- need help

Discussion in 'Programming & Webmastering' started by Raúl García, Jul 4, 2014.

  1. Raúl García

    Raúl García New Member

    Jul 4, 2014
    3 (0.00/day)
    Thanks Received:
    So here's the deal... I have a few questions since I've found lots of info indicating that the app.manifest file into the requestexecutinolevel part, set as "highestAvailable" should avoid asking for admin permission (every time the user runs the program)... But it also says.. that specifying this node... I suppose that into any option between:
    "Request Admin"
    "highestAvailable" would disable virtualization for files and registry.

    So there should not be any problem if set onto any other option, but sincerly I have no Idea of what many posts and web data talks about when speaking about "virtualization" except that it is for some kind of protection, and that actually.. Windows is virtualized so your programs (in program files and system specified and well known directories) are not infected with viruses, but since I have no idea what the code I'm working with is doing into sub-programming levels... and the advice is for FILES as well... I' afraid this option could break the way I'm accessing for read and write files and for some reason to be unrepairable.

    Actually, I'm using the:

    <<my.computer.filesystem.%something(%filedir%) >> method

    I've been making this program (and learning through it) for a couple of years... what I've solved is to set the <user>count as admin with an automated cmd process wich actually runs as administrator, and thenset this by activating the users account and adding the user to the net localgroup...

    So I can do this with this program calling it with some admin rights, but... this program is also commanded to start by the startup of a process that is called from an (IR) remote control. (controling another program) so...

    if anyone has any idea about:

    1: Does the level acces set to the highest breaks up with program lenguage into the lower levels?? (system.IO) e.g. (my.computer.filesystem)???

    2: Is there any other way of gathering acces to the permissions given for the program, so you can run as administrator with no permission requested set as default??

    Any help??

    Thnks a lot!!
  2. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Oct 13, 2008
    20,716 (6.28/day)
    Thanks Received:
    IA, USA
    1. The access level obtained via the App.manifest applies to the application as a whole. If you're trying to access a file that requires admin rights, for example, your program will throw an Access Denied exception when trying to access that file unless the user explicitly gave the application administration rights. RequireAdministrator forces the prompt when you run the program asking for elevated permissions.

    2. It is easiest/best just to requireAdministrator in the App.manifest but, if you want to have a low rights program run high rights programs, you can use Process.Start giving ProcessStartInfo that contains username/password for the elevated account to use. This is bad form though; if your application does something that requires high rights, just make them give it to you right away via App.manifest.
    Solaris17 says thanks.
    Crunching for Team TPU

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)