Replies: 3 comments
-
The Note if you can use <Package Name="$(var.ProductNameWithVersion)" ProductCode="$(var.ProductId)" Language="$(var.ProductLanguage)" Version="$(var.ProductVersion)" Manufacturer="$(var.ProductManufacturer)" UpgradeCode="$(var.ProductUpgradeCode)">
<Files Include="SourceDir\$(var.ProductVersion)\**">
<!--
Don't harvest the files because it needs manual authoring (below).
-->
<Exclude Files="SourceDir\$(var.ProductVersion)\product.exe" />
</Files>
<File Source="SourceDir\$(var.ProductVersion)\product.exe" /> PS: Why do you have so many define variables for your |
Beta Was this translation helpful? Give feedback.
-
I really have problems with the documentation. It has not helped me to solve any issue. I was not aware that there is a secret function behind the variable name INSTALLFOLDER. I give it a try. I'm typicall using this together to cleanup the folders on uninstall, but I'm fine with changing to INSTALLFOLDER if that helps something.
Why is your example above not inside a Is there any example project around that I can steal code from? Something ready that simply works and than I can use this as a starting point? Yes I'm using lots of variables. I have a central variables file that contains all definitions. The other issue I'm facing is with language files. I was just trying to solve the files issue first and see if this fixes the other. To me it looks like the laguage file it not used.
Why are you not adding a component around File? How should I reference this without a component in "Features"? |
Beta Was this translation helpful? Give feedback.
-
I cannot get it working with INSTALLFOLDER, too.
It ends with the warning
And the reason is - the real path is "D:\Build\Foo\v5\SourceDir\3.7.9" and the harvesting has added another "!(loc.ProductName)" subdirectory for unknown reasons. I do not know why the translation is not resolved. I configured and additonally I get this, as I have no component name for the files that should be harvested.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I'm trying to harvest a folder structure of a product, but I get the error - The Component element contains an unexpected child element 'Files'. I checked the full project to find examples how to implement it, but I cannot get it working. It is really frustrating as there is an example in test area that us using the same code without a component, but if I write the code without components I also get an error. Absolutly no idea what I'm going wrong.
Beta Was this translation helpful? Give feedback.
All reactions