473,785 Members | 2,794 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems using InstallUtil

Hi all,

I've just followed an article regarding the creation of a windows service -
so far so good - right up until I try to do the install...

I get the following error message in the command prompt:

Exception occurred while initializing the installation:
System.IO.FileN otFoundExceptio n: File or assembly name Documents, or one of
its
dependencies, was not found..
The following is what I'm trying to run from the command prompt:

C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322> installutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visua l Studio Projects\ScanFo lder\bin\ScanFo lder.exe
Initially I had problems with the installutil thing saying it was a
recognised something or other, then it occured to me that I was trying to
run that from any old directory - hence changing the path to where it lives
in the Microsoft.Net directory.

Can anyone help me with this - I really want to know if the example I've
just been working on is going to work :)

Regards

Rob
Nov 18 '05 #1
3 3804
Put quotes around the path, thus
installutil "C:\Documen ts and Settings\ ......"
and give it a shot.

"Rob Meade" <ro********@N O-SPAM.kingswoodw eb.net> wrote in message
news:Wy******** ***********@new s-text.cableinet. net...
Hi all,

I've just followed an article regarding the creation of a windows service - so far so good - right up until I try to do the install...

I get the following error message in the command prompt:

Exception occurred while initializing the installation:
System.IO.FileN otFoundExceptio n: File or assembly name Documents, or one of its
dependencies, was not found..
The following is what I'm trying to run from the command prompt:

C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322> installutil C:\Documents and
Settin
gs\MeadeR\My Documents\Visua l Studio Projects\ScanFo lder\bin\ScanFo lder.exe

Initially I had problems with the installutil thing saying it was a
recognised something or other, then it occured to me that I was trying to
run that from any old directory - hence changing the path to where it lives in the Microsoft.Net directory.

Can anyone help me with this - I really want to know if the example I've
just been working on is going to work :)

Regards

Rob

Nov 18 '05 #2
"Chris Botha" wrote ...
Put quotes around the path, thus
installutil "C:\Documen ts and Settings\ ......"
and give it a shot.


Hi Chris,

Thanks for the reply, I got it working in the end by copying me .exe into
the microsoft.net folder etc and running from there - I'll give your idea a
go on the next build...cheers :o)

Rob
Nov 18 '05 #3
As above Chris - many thanks (although I did have to change the permissions
on my directory to get the service to start etc)..

Thanks again

Rob
Nov 18 '05 #4

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

Similar topics

0
2187
by: Mike R | last post by:
I have 2 questions about custom options in InstallUtil. The help screen for InstallUtil says this: --- quote --- Options take the form /switch= <...a list of options follows...> Individual installers used within an assembly may recognize other options. To learn about these options, run InstallUtil with the paths of the assemblies
3
1081
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service, then I configured the properties of the installers When I run InstallUtil on the executable, it fails with the following message "An exception occurred while trying to find the installers in the c:\...\obj\debug\MyService.exe assembly...
4
2057
by: Claire | last post by:
Hi, I know this isn't strictly C# language related, but my service IS written in c# and I checked out the list of microsoft newsgroups for win2000 and couldn't really see one that applies. I'm trying to test my service on a remote win2000 server machine, accessing the machine as user "administrator" on remote desktop. Im just at the install stage and using the installutil.exe to register the service on the server. The install appears to...
0
934
by: Claire | last post by:
Ive built a service using visual studio c#. I'm trying to install the service on a win 2000 server machine using installutil.exe logged in as administrator. We get no errors from installutil, or in event log, but when we go into the services list it's not listed. Doing a search through the registry, there's no sign of it there either. Dot net is installed, the application runs fine when the important bits are extracted and compiled into a...
0
2646
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
2
2055
by: tshad | last post by:
I have been running into all kinds of problems with VS2003 and handling Windows services. One of the main problems is trying to uninstall services. It doesn't work half the time. Mainly it seems that is the case if you you try to change the service name (which it wants to force as Service1). If you change the name, it installs OK and sort of works. But if you try to uninstall it, it says you are missing something. C:\Documents and...
5
6204
by: Jamin Mace | last post by:
I'm trying to create a batch script that will allow me to use the .Net installutil.exe to install a windows service. I want to be able to specify the username and pasword in my script so that I don't get prompted. Here is an example of my script. No matter what I still get prompted. Does anyone have any Ideas? C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installUtil.exe C:\Projects\myservice\bin\myservice.exe...
3
1271
by: Giulio Petrucci | last post by:
Hi there, I have to installa a Windows service on a machine which has only the fw1.1 installed. I did the following: - Create a WindowsService application (using the VisualStudio template); - Create the ServiceInstaller; - Imported a .dll in the solution (which is the logic of my application); - Build the solution using MSBee to target with the fx1.1 - Run the InstallUtil.exe for the v1.1.etc of the framework...
4
3699
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, I continue with installation. I create three windows services. Each service has a Installer class.
0
9480
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,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
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 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...
1
7500
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 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...
0
6740
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();...
0
5381
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
3
2880
bsmnconsultancy
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...

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.