473,386 Members | 1,758 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,386 software developers and data experts.

MSI or installutil

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 right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks in advance, greetings, regards

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 18 '08 #1
2 3103
I don't believe you have a choice of A or B (MSI or InstallUtil), but rather
you need to run A, then B (MSI, then InstallUtil). My understanding is that
in a custom action from the MSI, in the "after install" phase, you run your
InstallUtil command.

"Alhambra Eidos Desarrollo" wrote:
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 right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks in advance, greetings, regards

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Sep 18 '08 #2
Why do you care? What's the problem you're trying to solve?

An obvious way is to look at the process you're running in, it'll be
InstallUtil or msiexec.exe.

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"Alhambra Eidos Desarrollo"
<Al*********************@discussions.microsoft.com wrote in message
news:57**********************************@microsof t.com...
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 right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks in advance, greetings, regards

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 18 '08 #3

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...
0
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? ...
9
by: shaddock | last post by:
Hello, When trying to run the InstallUtil.exe, I get the error below. Any insights? 'installutil' is not recognized as an internal or external command, operable program or batch file. ...
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...
5
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...
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...
0
by: meo45 | last post by:
All i want to do is add a service line to the SCM. I searched the net to do this in code with C# but found no decent way to do this. The only workable way was to use the .net utility...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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
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,...
0
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...

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.