Solved

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

Posted on 2008-10-09
18
1,087 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
ID: 22687389
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
ID: 22688232
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
ID: 22688267
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 11

Expert Comment

by:AkisC
ID: 22690752
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
ID: 22690933
<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
ID: 22691053
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
ID: 22691123
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
ID: 22691150
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
ID: 22694381
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
 
LVL 1

Author Comment

by:AWestEng
ID: 22694417
the files are
policy_8_0microsft_vs80_atl_x86.msn

policy_8_0microsft_vs80_crt_x86.msn
0
 
LVL 11

Expert Comment

by:AkisC
ID: 22695492
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
ID: 22695666
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
ID: 22696572
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
ID: 22696959
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
ID: 22697680
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
ID: 22698276
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
ID: 22698349
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
ID: 22698869
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

837 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