Hello World - C# - System Tray - Reboot !

Hello,

I want to do a little comercial product with Visual C# Express

Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5

Installed Edition: C# Express

Microsoft Visual C# 2008   91910-152-0000061-60621
Microsoft Visual C# 2008

 

 

Starting my difficulties:

1) Never understood and dig much about .dll libraries into making a single .exe file ready to deploy for installation. I actually don't know how to create the most simple hello world with a 30 trial period and a serial thereafter.

2) I heard about Starter Kits but my Visual C# Studio doesnt seem to come with any of that template projects.

3) My main difficultie now is where about to bring my Icon (.ico) file to be placed choosed browsing from a directory where I have images. In Macromedia Flash I would just import my "thing" to the stage and convert it to one symbol. How then must I locate the file I want to use in my NotifyIcon ??

4) I want the aplication to start working always on boot unless turned off to do so. What is the best approach for that?

5) I want to compile the source code into a ready to a .exe file that automatically unpacks everything and instals it without any complications. If I press F5 after my Program.cs will I get my .exe file deployed and ready to upload? No. So, what exactly will I have to do?

 

Many thanks,
Daniel Alexandre

www.passaspot.com
" A curva de uma função nunca pode ser como a de uma mulher grávida de pé."
mymondexAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

icrCommented:
By the sounds of your needs (package into a single downloadable file and the need to set a registry key to add you're program to startup) you're going to need to package it into an installer. http://www.google.co.uk/search?q=free%20windows%20installer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ginadi_trofieldCommented:
As icr said, I'll just add the installer I recommand is Inno Setup with the helping hand of ISTool to create the setup scripts with ease. Now to add a program to startup using ISTool is by:
Registry > right click a field > new item
there fill in the following details:

Root: HKEY_LOCAL_MECHINE
Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value:
     Type: string
     name: <Your short app name>
     data:  {app}\<Your desired EXE name>

check "create value if  it doesn't exist" and "delete value on uninstall".

This program using ISTool is very easy and also add a context menu when u right click a compile
script file for easy recompiling a setup.


About 3), I didn't cleary understand the question your asking. Do you mean how to load a icon file from a  predefined dir? a user selected file?
Or did you mean after loading it, how to set it as a notify icon.

0
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.