Application does not open in windows XP because it does not have administrator permission

2

I'm having a problem, my program's executable does not run on windows XP because of user permission issues.

Onothersystems,youputittorunasanadministratoranditworksnormally.

SearchingtheinternetIfoundseveralsuggestionslikethis: C #: Force an application to run as administrator

What did not work, despite including the manifest as oriented.

SoIfoundthismicrosofttutorialthatseemstosolvemyproblem: Step 6: Create and Embed an Application Manifest (UAC)

But due to my difficulty in understanding English I could not reproduce correctly.

Can anyone help me with respect to this?

    
asked by anonymous 19.01.2017 / 15:16

1 answer

2

You must add manifest to your application.

Project Menu > Add New Item ... and then choose the Application Manifest File type:

Afterthis,youshoulddeterminethepermissionlevelfrom"asInvoker" to "requireAdministrator" .

When creating the file, it comes with the line like this:

<requestedExecutionLevel level="asInvoker" uiAccess="false" />

Switch to stay this way:

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

When you run your program, you will be asked for administrator permission (if you are an ordinary user).

    
19.01.2017 / 17:22