-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List directories with wilcards and nested DirFiles #439
Comments
Something like this? new Project("MyProduct",
new Dir(@"%ProgramFiles%\MyCompany\MyProduct",
new DirFiles(@"\\BuildServer\MyProduct\LatestRelease\*.*"),
new Dir("Docs",
new DirFiles(@"\\DocumentationServer\MyProduct\*.chm"), |
I don't really understand your code sorry... maybe it's better not to go into the code. So the matter is the following: can I create a install package with WixSharp which is able to create a folder tree into the installation folder without hard coding all the directories into the package definition? The idea is that if I add a new directory I don't have to modify the code. For example if I have a repository like c:\repository\dir1 And I want to have the same directory structure into the installation folder I have to write And if I add a new directory to repository I have to add new code like I'd like to automate this maybe with something like The first parameter of DirDirectories gives the pattern to match for the directory name and the second the pattern for the files. Marco |
Yes the implements exactly your use case. The sample is covering the case when the software release is build and the binaries of the solution are aggregated after the build in the dedicated folder. Then WixSharp discovers and includes the all files and the sub-directories into the built MSI: var project =
new Project("MyProduct",
new Dir(@"%ProgramFiles%\My Company\My Product",
new Files(@"..\Release Folder\Release\*.*")
. . . Have a look at the complete "ReleaseFolder" code sample for the details. |
Ok... thanks |
Great Oleg! It works perfectly |
Hi Oleg
this is not a bug but a request and maybe an idea for a new feature.
I'd like to create into the installation directory a variable number of directories reflecting a repository I have on my disc. Then for each directory select all the files which match a specific wild cards. Something like the following
Dirs("c:\temp*machine",
DirFiles("c:\temp*machine*.xml))
Which should mean:
What do you think about?
Best regards
Marco
The text was updated successfully, but these errors were encountered: