Results 1 to 5 of 5

Thread: Created an EXE

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    Created an EXE

    Finished my VB Project and created an exe, I then made an installer for it using Inno Tools. Anyway I'd like my EXE to run at the Windows XP Logon screen, i.e. Before a User logs on....How do I do this?

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Created an EXE

    Quote Originally Posted by Ergo
    Finished my VB Project and created an exe, I then made an installer for it using Inno Tools. Anyway I'd like my EXE to run at the Windows XP Logon screen, i.e. Before a User logs on....How do I do this?
    You cannot have applications running even before a User Logs in. To achieve that you will have to develop a windows service that can run even if the machine is logged off. And remember Windows Services should NOT have a User Interface attached to them. They can just run as a process.
    Last edited by Shuja Ali; Apr 4th, 2006 at 02:51 AM. Reason: corrected the typo
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Created an EXE

    Quote Originally Posted by Shuja Ali
    You cannot have applications running even before a User Logs in. To achieve that you will have to develop a windows service that can run even if the machine is logged off.
    You can create an application that starts up before a user logs in and is not a service. In fact, many anti-virus applications and firewalls do this.

    Don't ask me how though. I can't remember, lol.
    Quote Originally Posted by Shuja Ali
    And remember Windows Services should have a User Interface attached to them. They can just run as a process.
    Why should they have a UI attached to them? Most services DON'T have a GUI.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Created an EXE

    Quote Originally Posted by kasracer
    You can create an application that starts up before a user logs in and is not a service. In fact, many anti-virus applications and firewalls do this.

    Don't ask me how though. I can't remember, lol.
    Even those antivirus scanners run as Windows Services.

    Quote Originally Posted by kasracer
    Why should they have a UI attached to them? Most services DON'T have a GUI.
    Well actually they should not have a UI attached to them. The above was just a Typo.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Created an EXE

    Quote Originally Posted by Shuja Ali
    Even those antivirus scanners run as Windows Services.
    Actually, I've seen applications startup before login that did not have any services.

    After searching some more I found that you can make it so your application is run as a service, so it'll startup before login, but it won't be listed in the list of services like regular services or something like that. I can't find any code that shows how to do this though =/

    Using a service would be easier.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width