Comments (3)
The responsibility of the wild card based entities are aggregating files but not initializing them. That is why the current implementation does not allow assignment of the File properties. Though I do like your idea. Can you please log it as a dedicated enhancement request so it is not lost.
Until it's implemented please use the following technique:
project.ResolveWildCards();
project.AllFiles
.Where(f => f.Feature.Name == "Feature1")
.ForEach(f => f.AttributesDefinition = "File:DiskId=1;Dir:AnotherAttribute=Value");
project.AllFiles
.Where(f => f.Feature.Name == "Feature2")
.ForEach(f => f.AttributesDefinition = "File:DiskId=2;Dir:AnotherAttribute=Value");
As for Media
element it is currently encoded as a single element per product. This is a clear limitation and so I labeled your post as a bug.
Though I would rather encourage you to use MediaTemplate
instead of Media
as it seems to be a more attractive option:
project.WixSourceGenerated += doc =>
{
doc.Root.Select("Product")
.AddElement("MediaTemplate", "CabinetTemplate=cab{0}.cab, CompressionLevel=mszip");
};
from wixsharp.
Created issue for enhancement as required.
Please say me if it is too much detailed if you prefer only a single "question" for enhancement request, if I need to do an other one.
from wixsharp.
Don't worry. I have already processed your issue report and the fix was done even yesterday. It's all good. Txs
from wixsharp.
Related Issues (20)
- Close window can't exit? HOT 6
- [question] How to configure RemoveFiles Suppress=yes HOT 2
- Wix4: CustomUI background image not showing HOT 4
- Wix4: wix.exe not found if installed as local tool HOT 2
- wix-setup.exe being flagged by protection systems HOT 3
- Catch all exceptions in managed WinForms UI HOT 12
- C# WiX Custom Actions crash with "Could not load file or assembly" HOT 4
- Trying to configure a file in the install folder HOT 5
- Compiler.BuildMsi errors out when ran in Release mode (if CustomActions are added) HOT 4
- How to pass a session value to a deferred action HOT 3
- MSI installer file name missing in taskbar. HOT 5
- Project in WixSharp 2.1.0.0 HOT 3
- ID naming between 1.20.2 and 1.25 HOT 4
- Using PublishAot instead of SfxCA for custom actions HOT 12
- ShortCut Icon Tooltip HOT 9
- Add -sw1026 to default Wix4 argument options? HOT 8
- ProgressText with WiX 4 HOT 5
- Unable to find dotnet when building with dotnet cli HOT 3
- Installer crashes when using custom UIs with Features HOT 3
- Question How to deal with Bootstrapper in Wix V4. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wixsharp.