Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / September 2004

Tip: Looking for answers? Try searching our database.

Setup Project Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alireza Haghshenass - 11 Sep 2004 08:15 GMT
Dear All,
I just wanted to know, how can I register a service using Visual studio
setup project. I can create a Setup Project successfully, it installs all
the program, but I need a hint on how to run "InstallUtil.exe
<ApplicationDirectory>\ApplicationName.exe" in order to install and register
the service. And of course how can I unRegister the Service when
uninstalling the application.
I look forward to hearing from you.
Alireza Haghshenass
Peter Macej - 11 Sep 2004 13:35 GMT
I don't know much about registering services, but generaly, you can use
custom actions to run the program on install and uninstall.

1. In Solution Explorer, select your setup project.
2. On the View menu, point to Custom Actions.
3. Add Custom action in Install and Uninstall. In Properties window, you
can specify the application to run and the arguments in Arguments field.

Signature

Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code

Alireza Haghshenass - 11 Sep 2004 16:09 GMT
Here is the information about Installing Services :
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil ServiceExeFile.exe
and for Uninstalling Services :
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil /u
ServiceExeFile.exe
How can I implement this?
Thanks in advance.
> I don't know much about registering services, but generaly, you can use
> custom actions to run the program on install and uninstall.
[quoted text clipped - 3 lines]
> 3. Add Custom action in Install and Uninstall. In Properties window, you
> can specify the application to run and the arguments in Arguments field.
Peter Macej - 12 Sep 2004 20:12 GMT
I think in custom action you cannot call external file which is not part
of your deployment project, such as
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil.
If such file is part of your setup project you can call it as I
described before:
1. In Solution Explorer, select your setup project (click on its name).
Right click, context menu appears.
2. Click the View submenu and select Custom Actions.
3. Right click Install in the tree and Add custom action. You can select
a file to execute and its arguments. You can do the same in Uninstall
section.

But for you there is still an easy way. VS .NET has predefined custom
actions including registration of services. I don't know much about it
but you can check the following help topic:
ms-help://MS.VSCC/MS.MSDNQTR.2003FEB.1033/vsintro7/html/vbconpredefinedcustomactions.htm
(type the whole line including ms-help: prefix in the URL bar in VS .NET
or just search for "Adding Predefined Custom Actions in the Custom
Actions Editor" in VS .NET help)
Sorry I cannot help you more on this topic.

Signature

Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.