2 Replies - 1251 Views - Last Post: 20 March 2007 - 11:47 PM Rate Topic: -----

#1 jincymz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-March 07

Running an application when windows starts

Posted 19 March 2007 - 11:35 PM

Hi,

I have made an application to execute when windows starts.I did it by using the code

Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("MyExecutable", "C:\MyExecutable.exe")
regKey.Close()


which i get it from this site itself.My qn is i just want to install this application to another machine.how can i make this application to run in system tray in that machine.The path will be set only when we run i right?I am just a beginner so pls help me...

Is This A Good Question/Topic? 0
  • +

Replies To: Running an application when windows starts

#2 jjuneau  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 16
  • Joined: 15-February 07

Re: Running an application when windows starts

Posted 20 March 2007 - 04:09 PM

What are you trying to do? Make a program like BackOrifice?
Was This Post Helpful? 0
  • +
  • -

#3 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Running an application when windows starts

Posted 20 March 2007 - 11:47 PM

If you include it in a procedure that is called when a program is loaded, the registry code will be executed as well.
As far as the System tray part goes, you'll need to use separate API Functions and not mere Registry Additions.

Adding Programs to Startup is a very common.
That doesn't make it a Trojan.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1