Click here to Skip to main content
13,766,591 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I am trying to create a setup project with the Visual Studio Setup Project - my problem is that I want to install everything that is inside an output directory that I have defined in an MS Build file as ApplicationTargetDir:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>

    <!-- Application directory -->
    <ApplicationTargetDir Condition="$(ApplicationTargetDir) == '' Or $(ApplicationTargetDir) == '*Undefined*'">$(SolutionDir)$(Configuration)\</ApplicationTargetDir>

    <!-- Plugins directory -->
    <PluginsTargetDir Condition="$(PluginsTargetDir) == '' Or $(PluginsTargetDir) == '*Undefined*'">$(ApplicationTargetDir)Plugins\</PluginsTargetDir>

    <!-- Determines if project is a plugin and it needs to be deployed to the solution application plugins folder -->
    <DeployPlugin Condition=" '$(DeployPlugin)' == '' ">false</DeployPlugin>

    <!-- Determines if project is the main application and it needs to be deployed to the solution application folder -->
    <DeployApplication Condition=" '$(DeployApplication)' == '' ">false</DeployApplication>
  </PropertyGroup>


Is it possible to hand this variable over to Visual Studio Setup Project and have it setup all files inside that folder? I could also use a static folder name (although thats no so nice) but all the tutorials I find describe the main project output as the source for the setup but my use case is different because the main output comes from the msbuild task...

What I have tried:

I have tried installing all files (selecting all files manually) from the output folder but that did not generate a setup at all. Also tried to select all folders and mix it with the project output from the executeable (which does not contain all assemblies) but that did not work either because some files occured in both sources and the project just highlighted some files red without giving a hint of how to resolve this ...

Using a search engine in this case is difficult as I usually find articles about installing Visual Studio instead of articles about the VS Setup project :-(

The complete project and ms build file can be found on GitHub.
Posted 9-Nov-18 12:56pm
Updated 10-Nov-18 0:45am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181114.1 | Last Updated 10 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100