3 Replies - 565 Views - Last Post: 07 February 2012 - 03:48 AM Rate Topic: -----

Topic Sponsor:

#1 deepa_ubdt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 23-March 10

How can I make exe(VC++: VS6.0) file run as administrator

Posted 05 February 2012 - 12:17 PM

HI ALL,
How can I make exe(VS 6.0) file run as administrator in Windows 7?

I don't want the user to press right click on the file and run it as administartor, I want my exe file run as admin automaticly once he press double click on the file.


I tried to use manifest file, created .res and added to project.
Its not helped got warning project already have .res file.Newly added .res file was ignored.


Is there's some code I've to put in my submain or in the windows registry?
Or how to use manifest file in VS6.0??

Is This A Good Question/Topic? 0
  • +

Replies To: How can I make exe(VC++: VS6.0) file run as administrator

#2 tlhIn`toq  Icon User is offline

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3290
  • View blog
  • Posts: 6,898
  • Joined: 02-June 10

Re: How can I make exe(VC++: VS6.0) file run as administrator

Posted 05 February 2012 - 01:00 PM

Set the properties on the desktop shortcut to the exe

Attached Image
Was This Post Helpful? 0
  • +
  • -

#3 deepa_ubdt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 23-March 10

Re: How can I make exe(VC++: VS6.0) file run as administrator

Posted 07 February 2012 - 02:20 AM

Thanks a lot for your reply.

End user do not want to set these thing...so I have to give option either through manifest file or providing admin privildege through the code.

Added .RES file to the project.But getting warning as
Minium.res : warning LNK4059: PRJ.res already specified; additional resource file ignored

And also Iam not sure how to embed the manifest file in Visual basic 6.0 for VC++ project.
Please help me in resolving this issue..
Was This Post Helpful? 0
  • +
  • -

#4 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How can I make exe(VC++: VS6.0) file run as administrator

Posted 07 February 2012 - 03:48 AM

Have a look at this link (2nd post), see if that gives you what you need without a manifest file.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1