[wix-users] Need help with building msi with dynamic filenames in wix

Edwin Castro egcastr at gmail.com
Wed May 13 14:03:16 PDT 2020


Beware the component rules!

https://docs.microsoft.com/en-us/windows/win32/msi/what-happens-if-the-component-rules-are-broken


http://robmensching.com/blog/posts/2003/10/18/component-rules-101/

--
Edwin G. Castro

On Wed, May 13, 2020 at 10:15 AM david.jones--- via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> I have an angular project that uses dynamic files when deployed to
> production
>
> These files have hashes appended to them and are all stored in a folder
> called "dist"
>
>
>
> How can I build the wix config file(that packages these files into an MSI)
> with these dynamically named files?
>
>
>
> My current .wxs file looks similar to this
>
>
>
> <Component Id="Comp1" Guid="AF2333223-ADS23-123S-12313123123" WIN64="yes">
>
> <File Id="file2" Name="runtime.js" DiskId="1" Source="runtime.js" />
>
> <File Id="file3" Name="main.js" DiskId="1" Source=" main.js" />
>
> <File Id="file4" Name="scripts.js" DiskId="1" Source=" scripts.js" />
>
> <File Id="file5" Name="polyfills.js" DiskId="1" Source=" polyfills.js" />
>
> </Component>
>
>
>
> The files are dynamically named and would look like this
>
> runtime.12334323234.js
>
> main.4234jkdf2343243.js
>
>
>
> How can I setup my wix config file to grab dynamic files to copy into the
> MSI package instead of these hardcoded files? Will wix respond to wildcard
> characters? Like if I tell it to grab Source=" scripts.*.js" will it work?
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list