The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on December 11, 2010, 07:16:33 AM

Title: Autostart on Win7
Post by: Farabi on December 11, 2010, 07:16:33 AM
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?
Title: Re: Autostart on Win7
Post by: 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
Title: Re: Autostart on Win7
Post by: Vortex on December 11, 2010, 03:30:15 PM
Hi Onan,

Talking about Windows 7, does your application require elevated rights?
Title: Re: Autostart on Win7
Post by: redskull on December 11, 2010, 10:50:30 PM
Write it as a service; that way it will run regardless of who is (or isn't) logged in at the time

-r
Title: Re: Autostart on Win7
Post by: Farabi on December 12, 2010, 11:30:28 AM
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.
Title: Re: Autostart on Win7
Post by: Farabi on December 12, 2010, 11:31:38 AM
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?
Title: Re: Autostart on Win7
Post by: 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
Title: Re: Autostart on Win7
Post by: Farabi on December 13, 2010, 02:55:14 AM
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.
Title: Re: Autostart on Win7
Post by: 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.
Title: Re: Autostart on Win7
Post by: Farabi on December 14, 2010, 12:42:35 AM
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.