I am a complete noob on Wix (and installers in general), so please forgive me.
My goal is to be able to navigate the directory, search for all, say, * .exe files, and copy them to a predefined destination folder. The thing is, I donβt know what kind of files and their names are, so I canβt print them one by one in a wxs file ... therefore, wildcards.
Now I got something like this:
... <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='MyDir' Name='TestProj'> <Component Id='MyComponent' Guid='PUT_GUID_HERE'> <CopyFile Id="CopyFiles" DestinationProperty="DESTDIR" SourceName="*.exe" SourceProperty="SRCDIR" /> </Component> </Directory> </Directory> </Directory> ...
Well, that's fine if I only read from SRCDIR, but what if there are subfolders? How can I search for files with a specific extension? Or is there another way to do this ...?
Same thing with deleting the same files after installation ...
Thanks for any help you can give!
windows-installer wix wix3
callie16
source share