Solved

PROBLEM with vs.net windows installer project / deployment

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

16 Experts available now in Live!

Get 1:1 Help Now