• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1133
  • Last Modified:

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

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
AWestEng
Asked:
AWestEng
  • 10
  • 8
1 Solution
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
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
 
AWestEngAuthor Commented:
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
AkisCCommented:
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
 
AWestEngAuthor Commented:
<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
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
But when doing that, add "Primary Output" from "Project Output" It will also add all the dependencies (the dll files) auto.
0
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
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
 
AWestEngAuthor Commented:
the files are
policy_8_0microsft_vs80_atl_x86.msn

policy_8_0microsft_vs80_crt_x86.msn
0
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
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
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
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
 
AWestEngAuthor Commented:
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
 
AkisCCommented:
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
 
AWestEngAuthor Commented:
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
 
AkisCCommented:
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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now