Solved

PROBLEM with vs.net windows installer project / deployment

Posted on 2004-09-13
4
163 Views
Last Modified: 2010-04-23
I have written 8 seperate applications which need to be installed on remote computers (a windows service, a systray app, and several utilities).  I have created a windows installer project which includes these programs in one deployment file and am able to successfully package the files, add short cuts to appropraite places, make registry entries, etc.  Basically I compiled each individual program, copied the compiled results to a common c:\test folder, and then created my deployment project off these files from c:\test.

The problem I am having is that one of the eight files is a windows service, and I can not figure out how to install it from within this installer.  I can install it individually, but can not figure out how to install it when bundled with these other 7 programs.

I package a .bat file and have created an .exe to call the bat file.  The bat file runs InstallUtil to register the service and start it.  I have tried putting the .exe under the install and commit actions, but when looking at the task manager I never see the cmd.exe running to show the batch file has been called.

suffice it to say the service is not installed and my systray app is not launched.

help me gurus.  Need a resolution ASAP!!

kap
0
Comment
Question by:kapcreations
4 Comments
 
LVL 2

Accepted Solution

by:
Mehrdad_Y earned 500 total points
ID: 12051685
Hello kapcreations;
I think first of all, you don't need to compile and copy each program to a place, instead, I think you have to Add a new Setup project to your solution, by the SETUP WIZARD, it will ask you, which project outputs you want to be included in your setup project. You can then select all the projects for your setup, even with their local resources and source code!

Any way, if you still need to install it in the way you have selected now, why don't you use the SHELL command in your exe file, to run your commands, and forget the batch file?
Just use : SHELL "YOUR COMMAND PATH"
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now