Registry (vb.net)

  • Thread starter Thread starter Albert
  • Start date Start date
A

Albert

Hi,

anyone got an example of how to build an install of an application which has
to be started at startup? So the application has to be installed on the
server and together with the installation, the registry has to be changed so
it will launch at start-up
tx in advance

Albet
 
You mention that this is a server app - do you want it to run as a windows
service so it will run when no-one is logged onto the server or do you just
want it running when someone actually logs on?
 
I already built it as a windows service, but this doesn't work for three
reasons.

Nr 1,server app is also a management console, services run without a user
interface.
Nr 2, some of our clients, believe it or not, still have windows 98 machines
running as servers, on which services don't work.
Nr 3, the remote object initiates an com-object which we don't have the
source of (it is an object which translates vb to our developing language.)
initiating this object only works from within a "normal" application, don't
ask me why.

So I want this one to run all the time, but as a windows form ( i already
put it into an application context, so on the server you will only see an
icon in the systray, which can be double-clicked to initiate the actual
form.)
 
You will need to add a Registry entry action to add your application to this
registry location in the setup project
HKLM\Software\Microsoft\Windows\CurrentVersion\Run or
HKCU\Software\Microsoft\Windows\CurrentVersion\Run

or you can create a shortuct to your application and place it in the Startup
folder in Programs Menu.

All this can be done using the standard setup project that ships with VS.Net
 
Ok thanks for the assistance

Sijin Joseph said:
You will need to add a Registry entry action to add your application to this
registry location in the setup project
HKLM\Software\Microsoft\Windows\CurrentVersion\Run or
HKCU\Software\Microsoft\Windows\CurrentVersion\Run

or you can create a shortuct to your application and place it in the Startup
folder in Programs Menu.

All this can be done using the standard setup project that ships with VS.Net

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


changed
 
Windows 98 'server' - wow! Fair enough :-) - See the answer from Sijin
Joseph then

Steve
 
Back
Top