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

Nick Elmer NElmer at veriato.com
Thu May 14 06:00:47 PDT 2020


You can have the webpack config remove hashes so that you have just the static file names.
https://stackoverflow.com/questions/59367080/angular-7-build-how-to-remove-output-hash-and-defaultview1module1-file


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Edwin Castro via wix-users
Sent: Wednesday, May 13, 2020 5:03 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Edwin Castro <egcastr at gmail.com>
Subject: Re: [wix-users] Need help with building msi with dynamic filenames in wix

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/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list