i have an application which requires admin rights due to handling process killing -
i need it to start when the user logs-on
ive tried:
-
taskschedueler - but i have a few problems with the command line not being efficient enough
schtasks /create /tn mytaskname /tr "myfilelocation" /RL Highest /sc ONLOGON
- since it still checks the "ac-adapter" checkmark amongst others (and /RL doesnt work on win-xp machines)
- regedit
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
this wont start the winform
even tried -
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit]
still to no avail.
i was thinking about creating a windows service - this seems a bit overkill really.
so my question is - is there any other way - besides taskschedueler, regedit and creating a windows service, that will allow me to start the winform with admin rights at startup
(manifest doesnt help accomplish this btw)