473,503 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Registry (vb.net)

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
Jul 21 '05 #1
5 1576
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?

--
Steve Willcock (MCSD for Microsoft.NET)
http://www.willcockconsulting.com/

"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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

Jul 21 '05 #2
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.)

"Steve Willcock" <st***@N-O-S-P-A-Mwillcockconsulting.com> schreef in
bericht news:cf*******************@news.demon.co.uk...
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?

--
Steve Willcock (MCSD for Microsoft.NET)
http://www.willcockconsulting.com/

"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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


Jul 21 '05 #3
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
"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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

Jul 21 '05 #4
Ok thanks for the assistance

"Sijin Joseph" <si*********@hotmail.com> schreef in bericht
news:OZ**************@TK2MSFTNGP10.phx.gbl...
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
"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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


Jul 21 '05 #5
Windows 98 'server' - wow! Fair enough :-) - See the answer from Sijin
Joseph then

Steve

"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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.)

"Steve Willcock" <st***@N-O-S-P-A-Mwillcockconsulting.com> schreef in
bericht news:cf*******************@news.demon.co.uk...
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?

--
Steve Willcock (MCSD for Microsoft.NET)
http://www.willcockconsulting.com/

"Albert" <al****@informant.nl> wrote in message
news:cf**********@reader13.wxs.nl...
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



Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1801
by: Greg | last post by:
The following article from microsoft describes a workaroind for a bug in hte beta version of VISUAL PYTHON DOT NET ...
3
2604
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry...
10
24851
by: Brian Hanson | last post by:
Hi, I am trying to programmatically print a pdf file via an asp.net application. I have seen other postings that mention the following code used or something similar to it in a vb.net app. ...
6
485
by: Mike S. | last post by:
I'm using a SystemParametersInfo call to attempt to manage the screen saver. All I want to do is modify the ScreenSaveActive bit in the registry and have the OS recognize it (and occasionally set...
1
8944
by: Bruce | last post by:
The following message was a request made by sxbyl (sxbyl@netway.net.cn) on 2003-04-29 19:23:34 PST. I attempted to email this person but the email was non-delivered. >>>>>>>>> I have look at...
3
12486
by: caldera | last post by:
Hi, I write a windows service. In that service I create a new subkey for registry. But service install is call CreateSubKey() the program throw an exception to the event log said that Cannot write...
4
1882
by: dtdev | last post by:
Hi, Im working on a mobile-device, where i apparently need to use opennetCF to access the registry ? im doing my own configurator, and my first intention was to read & write all variables in the...
2
1647
by: Daniel Bass | last post by:
I've found this article on how to get ASP.Net to read/write from the server's registry, but it got heavily critted as being something that you should not do... ...
5
1160
by: aaj | last post by:
Hi all can I ask a genuine question (by that I mean I'm not trolling) We are a small company and for a few years we have been building internal web apps in ASP connecting to databases etc. ...
8
5463
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.