Hi all!
Hope you well!
I have an application, most of it done and all fanx to the good guys and daniweb! :)
I am curently using the setup project in VS2008 to create an installer for the application.
In my code on I have the following:
public frmMain()
{
InitializeComponent();
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
rkApp.SetValue("MyAppi", Application.ExecutablePath.ToString());
}
what I am trying to do is when the user install the application it writes to the registry so that on start up the application will start. Now I am testing the dang thing on Windows 7 - and well the only way I can get it to work is to open the file where the application was saved to (eg Program Files) double click the appliocation and then presto it works.
But knowing a user a bit - they wouldnt like i suppose.
So my question is what is a better more user friendly way to go about this?
Fanx everyone!
Go well and happy coding :)!