CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    1

    EXE Project without interface

    I have been tasked to write a program that will run during the installation of my companies software. Currently when installing our software a configuration program is launched and a form comes up with some options available. The user chooses which options they want and the program creates some settings in the registry. My boss wants this program rewritten and to run in the background during installation without any type of user interface. My question is this. Can I create a C# project that compiles to an exe without a user interface. The only option I see is to create a windows application and that is not what I want. Any suggestions on how I should handle this? As you can probably tell I am fairly new to programming. Thanks.

  2. #2
    Join Date
    Feb 2009
    Posts
    112

    Re: EXE Project without interface

    You may want to consider looking up information on running this as a service instead of a windows form.

    another option, this is probably a little more sloppy, but you can set the opacity of the form to 0% and set the ShowInTaskbar property to false. It will still be a windows form but you won't see it so it will seem like it's running in the background.

    I recommend looking up making it a service though.
    Last edited by vandel212; September 11th, 2009 at 11:49 AM.

  3. #3
    Join Date
    Jun 2008
    Posts
    2,477

    Re: EXE Project without interface

    If this is just to be a quick run during an install, why not make it a console app? The console will appear for a second or so, but that would be ok with me.

  4. #4
    Join Date
    Feb 2009
    Posts
    112

    Re: EXE Project without interface

    Quote Originally Posted by BigEd781 View Post
    If this is just to be a quick run during an install, why not make it a console app? The console will appear for a second or so, but that would be ok with me.
    that is true, I was assuming that it has to be ran in the background. I guess we know what happens when you assume.
    - It's a long way to the top if you want to rock n' roll - AC/DC

    Check out my band and support the music:
    www.blueruinmusic.com

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

Featured