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
Solved

PROBLEM with vs.net windows installer project / deployment

Posted on 2004-09-13
4
189 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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