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

Benny Bürger buerger at simba.de
Wed May 13 10:32:49 PDT 2020


You should have a look here:
https://wixtoolset.org/documentation/manual/v3/overview/heat.html



-----Ursprüngliche Nachricht-----
Von: wix-users <wix-users-bounces at lists.wixtoolset.org> Im Auftrag von david.jones--- via wix-users
Gesendet: Mittwoch, 13. Mai 2020 19:15
An: wix-users at lists.wixtoolset.org
Cc: david.jones at kaddatechnologies.com
Betreff: [wix-users] Need help with building msi with dynamic filenames in wix

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