Solved

PROBLEM with vs.net windows installer project / deployment

Posted on 2004-09-13
4
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 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