Windows 7 doest launch application on startup
-
I've a C# application, sort of monitoring application which must run as Admin. So I added manifest file in that. I tried many ways to do, added in registry, added shortcut in Startup directory, added in Task Scheduler. But nothing seems to be working. Any idea ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
I've a C# application, sort of monitoring application which must run as Admin. So I added manifest file in that. I tried many ways to do, added in registry, added shortcut in Startup directory, added in Task Scheduler. But nothing seems to be working. Any idea ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
And you have tried running the application logged on as Admin? Any UI components? Have you tried wrapping it as a service and installing as service?
"You get that on the big jobs."
RobCroll wrote:
And you have tried running the application logged on as Admin?
yes didnt work, but I want it with every user
RobCroll wrote:
Any UI components?
no
RobCroll wrote:
Have you tried wrapping it as a service and installing as service?
cant, service has some restrictions :(
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
RobCroll wrote:
And you have tried running the application logged on as Admin?
yes didnt work, but I want it with every user
RobCroll wrote:
Any UI components?
no
RobCroll wrote:
Have you tried wrapping it as a service and installing as service?
cant, service has some restrictions :(
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
You cannot do this. Every user is not going to have admin permissions ability. That means you cannot run the app as a normal user at all. Th eonly people who could run the app are those who are members of the Administrators group. You have no choice but to run this as a service under a dedicated admin account. What are you doing that requires admin priv's anyway?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You cannot do this. Every user is not going to have admin permissions ability. That means you cannot run the app as a normal user at all. Th eonly people who could run the app are those who are members of the Administrators group. You have no choice but to run this as a service under a dedicated admin account. What are you doing that requires admin priv's anyway?
A guide to posting questions on CodeProject[^]
Dave KreskowiakDave Kreskowiak wrote:
What are you doing that requires admin priv's anyway?
-Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
Dave Kreskowiak wrote:
What are you doing that requires admin priv's anyway?
-Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
Xmen W.K. wrote:
I don't know if any of above ...
with proper error handling and logging, you would know. :|
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
RobCroll wrote:
And you have tried running the application logged on as Admin?
yes didnt work, but I want it with every user
RobCroll wrote:
Any UI components?
no
RobCroll wrote:
Have you tried wrapping it as a service and installing as service?
cant, service has some restrictions :(
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup. If it has no UI, it probably should not have been posted here in the Windows Forms forum. Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service. Hope that helps
"You get that on the big jobs."
-
Xmen W.K. wrote:
I don't know if any of above ...
with proper error handling and logging, you would know. :|
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
it was written years ago and was working fine on xp, trying to save time by not going into source code.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup. If it has no UI, it probably should not have been posted here in the Windows Forms forum. Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service. Hope that helps
"You get that on the big jobs."
RobCroll wrote:
If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup.
that helped alot
RobCroll wrote:
If it has no UI, it probably should not have been posted here in the Windows Forms forum.
Its not console application, not service and it has UI but when on specific keys are pressed.
RobCroll wrote:
Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service.
why would I separate if I can run admin stuff :confused: and to grab screen no need to run on startup, just run it when need to grab. using service is just last option
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
it was written years ago and was working fine on xp, trying to save time by not going into source code.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
there is no excuse for not having proper error handling. not ever. :~
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
there is no excuse for not having proper error handling. not ever. :~
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
it is when the code is old and written by a newbie :)
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
RobCroll wrote:
If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup.
that helped alot
RobCroll wrote:
If it has no UI, it probably should not have been posted here in the Windows Forms forum.
Its not console application, not service and it has UI but when on specific keys are pressed.
RobCroll wrote:
Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service.
why would I separate if I can run admin stuff :confused: and to grab screen no need to run on startup, just run it when need to grab. using service is just last option
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
You said it had no UI and now you say it does! As mentioned to you before, a user can not run code that requires Administrator rights unless they have Administrator rights. That's why you need to separate that code and run it as a service. A service can run with Administrator rights regardless of the users rights. All the best.
"You get that on the big jobs."
-
You said it had no UI and now you say it does! As mentioned to you before, a user can not run code that requires Administrator rights unless they have Administrator rights. That's why you need to separate that code and run it as a service. A service can run with Administrator rights regardless of the users rights. All the best.
"You get that on the big jobs."
it has no UI until user press some combination of keys, which is quite rare.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
Dave Kreskowiak wrote:
What are you doing that requires admin priv's anyway?
-Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
Xmen W.K. wrote:
-Update network IPs
What does this mean exactly? Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis. The rest does not take an admin to do. The exception may be Shutdown/Restart because of policy settings.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Xmen W.K. wrote:
-Update network IPs
What does this mean exactly? Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis. The rest does not take an admin to do. The exception may be Shutdown/Restart because of policy settings.
A guide to posting questions on CodeProject[^]
Dave KreskowiakDave Kreskowiak wrote:
What does this mean exactly?
To make changes in network adapter settings
Dave Kreskowiak wrote:
Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis.
its for my home pc and app is kind of parental control :)
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can