473,378 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

.NET Installutil.exe problems

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\insta llUtil.exe
C:\Projects\myservice\bin\myservice.exe username=testmachine\testUser
/password=test1 /unattended

Thanks in advance

Jamin
Nov 20 '05 #1
5 6182
* "Jamin Mace" <Ca*******@hotmail.com> scripsit:
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\insta llUtil.exe
C:\Projects\myservice\bin\myservice.exe username=testmachine\testUser
/password=test1 /unattended


Open the console, then type: "InstallUtil /?".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
yeah.. the /? shows three parameters /username, /password, /unattended. but
they don't see to do anything..I get no errors but it still prompts me.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Jamin Mace" <Ca*******@hotmail.com> scripsit:
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\insta llUtil.exe
C:\Projects\myservice\bin\myservice.exe username=testmachine\testUser
/password=test1 /unattended


Open the console, then type: "InstallUtil /?".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3

I have never used installutil.exe or tested what I am
about to say, but maybe you need a / infront of the
username such as:

C:\Projects\myservice\bin\myservice.exe /username=testmach
ine\testUser /password=test1 /unattended

Steve
-----Original Message-----
yeah.. the /? shows three parameters /username, /password, /unattended. butthey don't see to do anything..I get no errors but it still prompts me.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in messagenews:br************@ID-208219.news.uni-berlin.de...
* "Jamin Mace" <Ca*******@hotmail.com> scripsit:
> 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 username=testmachine\testUser > /password=test1 /unattended


Open the console, then type: "InstallUtil /?".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

.

Nov 20 '05 #4
* "Jamin Mace" <Ca*******@hotmail.com> scripsit:
yeah.. the /? shows three parameters /username, /password, /unattended. but
they don't see to do anything..I get no errors but it still prompts me.


For some reason it shows something very different on my machine. But
having a look at your initial commandline, you may want to include a "/"
in front of "username".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
ahh...yes you caught my error. Thanks for pointing out the parameter
problem. However, I tried once again and the install still does not work. I
really think this is a flaw in the framework. Perhaps Microsoft orignally
allowed the unattended install, but later decided it would be a security
hole and removed it without updating the documentation. This seems to be a
recurring problem in .Net

Thanks for the help

Jamin

"Steve" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...

I have never used installutil.exe or tested what I am
about to say, but maybe you need a / infront of the
username such as:

C:\Projects\myservice\bin\myservice.exe /username=testmach
ine\testUser /password=test1 /unattended

Steve
-----Original Message-----
yeah.. the /? shows three

parameters /username, /password, /unattended. but
they don't see to do anything..I get no errors but it

still prompts me.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at>

wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Jamin Mace" <Ca*******@hotmail.com> scripsit:
> 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 username=testmachine\testUser > /password=test1 /unattended

Open the console, then type: "InstallUtil /?".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

.

Nov 20 '05 #6

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

Similar topics

0
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...
3
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,...
8
by: TT (Tom Tempelaere) | last post by:
Hi there The following is a description to reproduce the problem. I do not know if this is a bug in the .NET environment/framework (I suspect it is), or if there is something that I am doing...
7
by: scarred wind | last post by:
when i run my program, an error message prompt me that i should add the installutil.exe. How do i checked for the installutil.exe? How can i add it to my Timer program? ...
3
by: Rob Meade | last post by:
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...
0
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...
3
by: Installutil System.BadImageFormatExcepti | last post by:
I've tried to make a Windows Service using the 2005 C# and when I go to use Installutil it returns with an System.BadImageFormatException error while intializing the installation. I've even gone as...
1
by: vovan | last post by:
My VB 6 program uses Windows Service I developed with VB 2005. Setup for VB 6 project, created in InstallShield 12, installs Framework 2 if it is not presented on the client machine. I ran setup...
2
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all people, everybody I create several windows services in VS 2005. The services can be installed by MSI, and too using installutil command. If the service has Installer class, all is...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.