public static void Main(string[] args)
{
var project =
new Project("MyProduct",
new Dir(@"%ProgramFiles%\My Company\My Product",
//new Dir("Documentation", new Files(@"\\BUILDSERVER\My Product\Release\Documentation\*.*")), //uncomment if you have a real remote files to install
new Files(@"..\Release Folder\Release\*.*",
f => !f.EndsWith(".obj") &&
!f.EndsWith(".pdb")),
new ExeFileShortcut("Uninstall My Product", "[System64Folder]msiexec.exe", "/x [ProductCode]")));
project.SourceBaseDir = @"E:\Galos\Projects\WixSharp\src\WixSharp.Samples\Wix# Samples\Release Folder";
project.GUID = new Guid("6f330b47-2577-43ad-9095-1561ba25889b");
project.ResolveWildCards(ignoreEmptyDirectories: true)
.FindFile((f) => f.Name.EndsWith("MyApp.exe"))
.First()
.Shortcuts = new[] {
new FileShortcut("MyApp.exe", "INSTALLDIR"),
new FileShortcut("MyApp.exe", "%Desktop%")
};
Compiler.PreserveTempFiles = true;
Compiler.EmitRelativePaths = false;
Compiler.BuildMsi(project);
}