Click to See Complete Forum and Search --> : EXE Project without interface
mtnrunner
September 11th, 2009, 10:56 AM
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.
vandel212
September 11th, 2009, 11:46 AM
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.
BigEd781
September 11th, 2009, 12:27 PM
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.
vandel212
September 11th, 2009, 01:09 PM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.