Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Need some coding help 8 years 7 months ago #7980

  • Johan
  • Johan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Hello All,

I can't figure out on how to actually launch my exe with a local admin or AD admin account. I have created a program so the user at our company can make some changes on their systems, but however for these changes admin rights are required, i hoped that it would be possible to start this application in admin mode, but from within the code.

So enduser just clicks the exe and the exe start in local admin or domain admin mode. No other programs (runas) needed. Is this possible with pascal?

thanks for your feedback.
Johan

Please Log in or Create an account to join the conversation.

Need some coding help 8 years 7 months ago #7982

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Yes Sir you can
go to Project Option => Execution Level
set "require administrator (require Adminnistrator)"
with this windows we will run you project always as Administrator

more info here






Warning Set this projects option, only at "release" stage of your project.
Typhon IDE Debugger (gdb) can't debug "administration" programs

..
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Need some coding help 8 years 7 months ago #7984

  • Johan
  • Johan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Hi Thanks for theinfo, but that's not what I need the users aren't in the admin group. I actually want the application to launch with admin right (I can add the admin + password inside the code) and then launch this exe so it has directly admin privileges?
regards,

Please Log in or Create an account to join the conversation.

Need some coding help 8 years 7 months ago #7985

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Yes
or build a system service
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1