[wix-users] Transform for HarvestDirectory Visual Studio{

KONDURU Pavan Pavan.KONDURU at 3ds.com
Fri Oct 30 10:41:47 PDT 2015


Hi Steve,

What I do in VS is declare the Preprocessor variables in the "Build" tab(in the properties window of VS for the WIX project). You can declare multiple variables by ";" separation.
Then I add a BeforeBuild target in the .wixproj. Here is an excerpt my existing project which works:

<Target Name="BeforeBuild">
    <HeatDirectory NoLogo="$(HarvestDirectoryNoLogo)" SuppressAllWarnings="$(HarvestDirectorySuppressAllWarnings)" SuppressSpecificWarnings="$(HarvestDirectorySuppressSpecificWarnings)" ToolPath="$(WixToolPath)" TreatWarningsAsErrors="$(HarvestDirectoryTreatWarningsAsErrors)" TreatSpecificWarningsAsErrors="$(HarvestDirectoryTreatSpecificWarningsAsErrors)" VerboseOutput="$(HarvestDirectoryVerboseOutput)" AutogenerateGuids="$(HarvestDirectoryAutogenerateGuids)" GenerateGuidsNow="$(HarvestDirectoryGenerateGuidsNow)" OutputFile="myProj.wxs" SuppressFragments="$(HarvestDirectorySuppressFragments)" SuppressUniqueIds="$(HarvestDirectorySuppressUniqueIds)" Transforms="HeatXSL.xslt" Directory="C:\staging_dir " ComponentGroupName="ComponentGroupHelp" DirectoryRefId="MY_DIR" KeepEmptyDirectories="false" PreprocessorVariable="var.staging_help" SuppressCom="%(HarvestDirectory.SuppressCom)" SuppressRootDirectory="true" SuppressRegistry="%(HarvestDirectory.SuppressRegistry)">
    </HeatDirectory>
  </Target>


So here my pre-processor variable that I declared is "staging_help".

--Pavan

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steven Packer
Sent: Friday, October 30, 2015 10:26 AM
To: WiX Toolset Users Mailing List
Subject: [wix-users] Transform for HarvestDirectory Visual Studio{

Hi,



I have created a VS .wixproj and have added a Harvestdirectory to the Target of the project.  I have been successful in harvesting the files and building the msi.  However I am using PreprocessorVariable of wix.mysource which generates

!(wix.mysource)\???.



I am trying to write a transform that will substitute !(bindpath. For !(wix.
I am having a great deal of trouble figuring out how this is done.  I am new to wix and .xsl.  Can anyone give me an example of how I might accomplish this task?



Steven




____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer



More information about the wix-users mailing list