News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Autostart on Win7

Started by Farabi, December 11, 2010, 07:16:33 AM

Previous topic - Next topic

Farabi

Hai,
Im maintaining about 40 computers on a highschool lab. I tried to install a software monitor to monitor the user activity, I want my app to autostart each the computer start. I tried to start the software by writing on the registry along with skype and Yahoo, but unfortunately my app is not autostart. I tried on WinXP and it is working, anyone know why?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

dedndave

is there a folder....

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

if you put a shortcut to your program in that folder, it will run each time a user logs in
you can put the program there, but usually better to place a shortcut

there are other ways to do it, too
you can create registry entries to make it happen
you can use Task Scheduler
you can put it in Autoexec.NT, i think

Vortex

Hi Onan,

Talking about Windows 7, does your application require elevated rights?

redskull

Write it as a service; that way it will run regardless of who is (or isn't) logged in at the time

-r
Strange women, lying in ponds, distributing swords, is no basis for a system of government

Farabi

Quote from: Vortex on December 11, 2010, 03:30:15 PM
Hi Onan,

Talking about Windows 7, does your application require elevated rights?
I dont understand what you mean, this is my first time using Win7.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

Quote from: dedndave on December 11, 2010, 03:14:36 PM
is there a folder....

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

if you put a shortcut to your program in that folder, it will run each time a user logs in
you can put the program there, but usually better to place a shortcut

there are other ways to do it, too
you can create registry entries to make it happen
you can use Task Scheduler
you can put it in Autoexec.NT, i think

I created a registry entry on HKEY_LOCAL_MACHINE but it does not start, but skype and Yahoo is started, you know why?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

frktons

Quote from: Farabi on December 12, 2010, 11:31:38 AM
I created a registry entry on HKEY_LOCAL_MACHINE but it does not start, but skype and Yahoo is started, you know why?

In Win7 there is a powerful internal language to do all these stuff, it's called Powershell 2.0.
Maybe it's time for you to have a look at it. Previous versions are also included in XP and Vista, so you can learn it
on any machine from 2001, and it is free and powerful, giving you access to everything in your
machine through the .NET framework.

If you plan to become a Sys Admin, it's a tool you should learn and use.

Frank
Mind is like a parachute. You know what to do in order to use it :-)

Farabi

Quote from: frktons on December 12, 2010, 11:51:19 AM
Quote from: Farabi on December 12, 2010, 11:31:38 AM
I created a registry entry on HKEY_LOCAL_MACHINE but it does not start, but skype and Yahoo is started, you know why?

In Win7 there is a powerful internal language to do all these stuff, it's called Powershell 2.0.
Maybe it's time for you to have a look at it. Previous versions are also included in XP and Vista, so you can learn it
on any machine from 2001, and it is free and powerful, giving you access to everything in your
machine through the .NET framework.

If you plan to become a Sys Admin, it's a tool you should learn and use.

Frank
Thanks.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Vortex

Hi Onan,

Windows 7 asks your permission to run some applications and displays a message. This what I meant.

Farabi

Quote from: Vortex on December 13, 2010, 06:19:44 PM
Hi Onan,

Windows 7 asks your permission to run some applications and displays a message. This what I meant.

Yeah it did, and I pressed yes, but it doesnot autostart when I rebooted it.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"