Solved

Deployment project: 10 exe projects in the same Setup Deployment project

Posted on 2008-10-09
18
1,073 Views
Last Modified: 2013-11-07
Hi!

I have 10 diffrent server applicaitons in my solution. I want to make one Deployment Setup Project for all 10 projects,

 there are also about 10 diffrent dll project that are used by the 10 server projects..

Pronblem:
I created a new deployment project I then added the Primary Output from "Server1_App" in a fodler called "Server1" in "Application Folder" then I added Primary output from "Server2_App in folder "Sever2" then I got a problem, I got this waring mess.
"Two or more objects have the same target location ('[policydir]"

So how do I make a Deployment for 10 diffrent exe applicaiton?

I probably can add all the files manually, to one root folder but how do I sort them up in diffrent folders and still keep the links to the dlls. Is that possible? or must I have all the files in the same folder?
0
Comment
Question by:AWestEng
  • 10
  • 8
18 Comments
 
LVL 11

Accepted Solution

by:
AkisC earned 500 total points
Comment Utility
It is advisable to install all project.output to the application folder. Why do you want different folders?
Dispite the warnings the MSI will work fine.

0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
okt thx. I get these error now
Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')  
Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')
 
Visual C++ 8.0 ATL (x86) WinSXS MSM
Visual C++ 8.0 CRT (x86) WinSXS MSM
Visual C++ 8.0 ATL.Policy (x86) WinSXS MSM
Visual C++ 8.0 CRT.Policy (x86) WinSXS MSM
Do I need all 4 merge modules?
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
And when adding the  second Primary output
I also get this error
Configuration file 'C:\Users\......\Desktop\Test.Sources.v1\Test\C02_Server\app.config' is being used to configure all executables C:\Users\....Desktop\Test.Sources.v1\Test\H04_Server_Setup\H04_Server_Setup.vdproj H04_Server_Setup
 
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
As I understand 2 or more of your projects use the same dll? Is that correct?
Also, I guess you know, that all 10 project will load and execute when you load the main project

If same dll is used you only need one instance. You should only add project.output to Application folder and create a dll folder under it adding the necesarry dlls once
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
<As I understand 2 or more of your projects use the same dll? Is that correct?>
That is correct I have about 10 project that I need to add to the deplyment project and  these 10 projects also uses 10 dll projects.
So When adding the first project alomst every dll files are also added, and when adding project number 2 we got some problems.
 
<You should only add project.output to Application folder and create a dll folder under it adding the necesarry dlls once>
What do you men with  project.output? Only the exe file?
 
But how about the app.config files that alomst every exe project has, I got a waring about that to.
guration file 'C:\Users\......\Desktop\Test.Sources.v1\Test\C02_Server\app.config' is being used to configure all executables C:\Users\....Desktop\Test.Sources.v1\Test\H04_Server_Setup\H04_Server_Setup.vdproj H04_Server_Setup
 
 
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
Ok. What I mean with proj.outp is
What I do creating a setup project.
Click on setup project.
  From the Solution Explorer select File system editor
  Now on the Application folder->right click->Add->Project Output...
  On the window opened Select a project:from the combo box and click ok
   -then- repeat this for all projects
This way I have the exe(s) installed on application folder (program files\.... [Properties-DefaultLocation])

After Application folder->right click->Add->Folder
-rename New Folder #1 to whatever e.g. dlls
 now right click dlls->Add->File and include your dlls

I beleive you should not get any errors and the .msi will work fine




0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
But when doing that, add "Primary Output" from "Project Output" It will also add all the dependencies (the dll files) auto.
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
Ok. So you are adding the project.output and get the errors
Now on the dependencies where you have the same dll in the same folder disable the duplicate ones.
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
Ok, I now add all "Primary outputs" into the "Application Folder" that seems to work just fine now, no complains about the dll files anymore.
 But it complains on some of the merge modules

Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')  
Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')

But there are only one copy of each merge modules in the Deployment project so strange.. ????!!!!!
 and I aslo got a waring on the app.config file
warning "app.config' is being used to configure all executables"
 I have a app.config in all projects
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:AWestEng
Comment Utility
the files are
policy_8_0microsft_vs80_atl_x86.msn

policy_8_0microsft_vs80_crt_x86.msn
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
What do you mean by 'merge modules'
-also- app.config should not be added in any folder
The only thing you add is project.output, dlls and databseses or any files you have created and your projects look for

0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
The merge modules is added automatic (http://msdn.microsoft.com/en-us/library/aa369820(VS.85).aspx)
the app.config is not added and I can't see the file in the deployment project but is still complains about it. as soon as the second project is added
And the only thing I do is adding Primary outputs, nothing else.
check the picture I  have attached
 

deploy.jpg
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
Ok. I see that the dll files are added as dependencies to the project automatically
-so- you do not have to add them to the application folder, they will be added as dependencies
Just the proj.output will do

also take a look at http://msdn.microsoft.com/en-us/library/zhx4ah11(VS.80).aspx
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
I have read that before  It won't work
It says you should "Double-click the error in the Task List to go to the file in the File System Editor." but that dosen't work at all.
and it also says
Delete the duplicate file, or select the Condition property in the Properties window for each copy of the file and enter a unique condition for each
 That dosen't work either
 If I exclude the
policy_8_0microsft_vs80_atl_x86.msn module
 
Almost all warings will disapear but NOT the app.config waring.
any tips on the app.config file waring?
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
Solution> app.config.
I Have read from msdn that the only way to sove this is to create a setup for each project or remove the app.config file,
the app.config file in the exe project is created beacase there are a confilcit in the GAC, there are two dll files with the same name but diffrent version. so the waring with the app.config file I have to live with if I want to use one deployment project. And I can't uninstall the other dll files in a easy way, so I let that be,
 ----------------------------------------
Solution>  merge mudules
about the merge mudules
policy_8_0microsft_vs80_atl_x86.msn module

policy_8_0microsft_vs80_crt_x86.msn module
both modules seems to consists of the same policy files so It should be ok to just exclude on of them.
 These are the best explanations I have found for a solution of my problmes, any thoughts about that?
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
I can give it a last shot.
If your project can be zipped and uploaded I could try to see the problem

You may ask to close the question and ask another one so someone else might give you some more insight
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
It's ok,  thx anyway. the most problems was solved when you told be about the primary outputs, that they all should be in the root of Application Folder.
 Thx AkisC :)
0
 
LVL 11

Expert Comment

by:AkisC
Comment Utility
Thanks for the points.
I enjoyed the conversation. After all we all do it for fun!

There is another open question (Queue) we have and I'm cathing it soon

Have fun coding... :)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

9 Experts available now in Live!

Get 1:1 Help Now