Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Files in InstallDir

$
0
0
Hi,

I have a project where I am setting the InstallDir property using a ManagedAction.
This is working fine.
But how do I add files to the InstallDir folder?
This should be easy, but I haven't managed to get it right:
var msiProject = new Project("My App",
                new Dir(@"[INSTALLDIR]",
                new File(@"ClientFiles\MyClient.exe")));
msiProject.Actions.Add(new ManagedAction("SetInstalldir",
                        Return.check,
                        When.Before,
                        Step.InstallFiles,
                        Condition.Always));
Best regards
Flemming

Viewing all articles
Browse latest Browse all 1354

Trending Articles