I've created a windows service and tested it. It works the way I want
it to. I added a ProjectInstalle r and set the appropriate properties
in my Windows Service project. To install it, I went to a Visual
Studio Command Prompt and issued the appropriate InstallUtil
<path\executabl ecommand and the service runs perfectly on my
development machine. What I can't figure out is how to install on it
any other machine. Any pointers or links to information would be
appreciated, I've search the 'net and this newsgroup and haven't found
an answer. 6 1175
BK wrote:
I've created a windows service and tested it. It works the way I want
it to. I added a ProjectInstalle r and set the appropriate properties
in my Windows Service project. To install it, I went to a Visual
Studio Command Prompt and issued the appropriate InstallUtil
<path\executabl ecommand and the service runs perfectly on my
development machine. What I can't figure out is how to install on it
any other machine. Any pointers or links to information would be
appreciated, I've search the 'net and this newsgroup and haven't found
an answer.
This may not be what you want, but I used the code at this link: http://tinyurl.com/yexh6z to make my service self-installable. It adds
a /install and /uninstall switch to be able to install the service.
You can use this code and then add a step to your install project to
get the service to install itself.
Chris
^^^ What he says. :-)
I make every windows service self-installable now. Saves a lot of
hassle.
It is also possible to create a single exe that can be a service *and*
a stand alone app.
If you want to get super-creative you can make your exe also behave as
a console listener for the
service if the service is installed and running.
-Blake
On Dec 8, 9:25 am, "Chris Dunaway" <dunaw...@gmail .comwrote:
BK wrote:
I've created a windows service and tested it. It works the way I want
it to. I added a ProjectInstalle r and set the appropriate properties
in my Windows Service project. To install it, I went to a Visual
Studio Command Prompt and issued the appropriate InstallUtil
<path\executabl ecommand and the service runs perfectly on my
development machine. What I can't figure out is how to install on it
any other machine. Any pointers or links to information would be
appreciated, I've search the 'net and this newsgroup and haven't found
an answer.This may not be what you want, but I used the code at this link:http://tinyurl.com/yexh6zto make my service self-installable. It adds
a /install and /uninstall switch to be able to install the service.
You can use this code and then add a step to your install project to
get the service to install itself.
Chris
Thanks, this will get me started.
I was looking for a managed code solution, or even just a way to
manually install the service on another machine. This service will
only be used on one machine, perhaps a few machines at some point down
the road. For now, I need to find a way to install it on to a machine
easily, it doesn't even have to happen programatically . Thanks in
advance,
BK
Just write values to the registry....
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"DisplayNam e", "My Program Description"
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"ErrorContr ol", 1
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"ImagePath" , "C:\MyExe.e xe"
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"ObjectName ", "LocalSyste m"
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"Start", 2
"HKEY_LOCAL_MAC HINE\System\Cur rentControlSet\ Services\MyServ ice",
"Type", 272
The Grand Master
BK wrote:
I was looking for a managed code solution, or even just a way to
manually install the service on another machine. This service will
only be used on one machine, perhaps a few machines at some point down
the road. For now, I need to find a way to install it on to a machine
easily, it doesn't even have to happen programatically . Thanks in
advance,
BK
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ken Lindner |
last post by:
I have a need to become familiar with SQL Server 2000 for work.
Needless to say I am new to SQL Server any version, but not IT in
general. My employer has provided me with the SQL Server 2000
Personal disk from the SQL Server 2000 Enterprise kit as this is
reported here on the MSDN web site to be the version that is supported
on Windows XP. In fact so many of you kind people confess to having
succeeded in doing it.
I have tried...
|
by: Chris Halcrow |
last post by:
Hi
I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP.
I continually get the error 'cannot configure server' just at the end
of the installation. I've tried the following:
- Removing SQL server from 'Program Files' folder following an
unsuccessful attempt to re-install, and entirely removing the registry
entry 'HKEY_CURRENT_USER > SOFTWARE > Microsoft > MSSQLServer', as
well as the corresponding entry under...
|
by: Jeevan |
last post by:
Hi,
I am creating a Window Service in C-Sharp. The Window Service has a
reference to an OCX file created in VC++. In OnStart method I have created
an instance of the class, of the OCX file and called a method of the class.
Compilation was successful.
I created a Windows installer setup(.MSI), for installing the service. The
installation was successful. I started my service from the Services
Management Console. It started and stopped...
|
by: tshad |
last post by:
I have a small Windows Service program that just has a timer on it and it
built fine.
I try to install it using InstallUtil and I get the following message:
System.ComponentModel.Win32Exception: The account name is invalid or does
not exist, or the password is invalid for the account name specified
I am in the same folder my program is in (MyService.exe). I assume it has
to do with Logon Credentials.
|
by: Andrea Vincenzi |
last post by:
Help me please, I'm totally stuck!
My Visual Studio 2003 debugger stopped working after I installed
Windows XP Service Pack 2. Here is what happens (with any project,
even a "Hello, world" message): the first time I open a project and
try to start it in debug mode, Visual Studio hangs before executing
the first line of code. The only way to stop it is to kill the process
using the Task Manager.
If I open the same project a second time and...
| |
by: John |
last post by:
I currently have a Windows Service that runs Transactions that are very
Processor/Memory Intensive. I have a requirement to deploy multiple
instances of the Web service on the Same server. Each Instance needs to
run in its own process.
My current approach to this is to put all the logic into a separate
"Worker" assembly and install it into the GAC. I'm then going to create
Multiple Windows Services (i.e. MyService1, MyService2 etc..)...
|
by: Mukesh |
last post by:
Hi friends i wants to install a service (MS application Block)
on the server using a web application.
Can i do this if yes then how can i do this
I m using MS VisualStudio.net 2003, C#, .net1.1
Mukesh
Delhi India
|
by: Don |
last post by:
QUESTIONS:
1. Has anyone figured out how to successfully install the Office 97
Pro Service Release 2 patch in Vista?
2. Has anyone successfully installed an Office 97 Pro CD (SR2
version) in Vista?
DETAILS:
My setup: Dell Inspiron notebook with Vista Business edition
My CD: Office 97 Professional (Service Release 1) Upgrade
|
by: =?Utf-8?B?RWxpb3Ro?= |
last post by:
I try to install Windows Services but it show this error during the
installation process, "Insufficient System resources exist to complete the
requested service."
I created this Services in VB 2005.
I has other Windows Services installed on this machine. I try to install in
other computer with the same specification and its is OK.
Specification
|
by: ravitunk |
last post by:
hello all..i have a windows service which inserts a record into a table after every 24hours....while creating this windows service i selected 'Localsystem' as the account type in the properties windows of 'serviceProcessInstaller1'.....this windows service is working fine after installing in my machine(where this service is actually created)....but now i want the same windows service to install on a different machine........i could install the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |