Bari.Plugins.InnoSetup.Tools.InnoSetupCompiler.Compile C# (CSharp) Method

Compile() public method

public Compile ( SuiteRelativePath scriptPath, TargetRelativePath targetPath, string version, Goal targetGoal ) : void
scriptPath SuiteRelativePath
targetPath TargetRelativePath
version string
targetGoal Goal
return void
        public void Compile(SuiteRelativePath scriptPath, TargetRelativePath targetPath, string version, Goal targetGoal)
        {
            var platform = targetGoal.Has("x64") ? "x64" : "x86";

            Run(suiteRoot,
                "/dVERSION="+version,
                "/dPLATFORM="+platform,
                "/dGOAL="+targetGoal.Name,
                "/o"+Path.GetDirectoryName(Path.Combine(suiteRoot.GetRelativePath(targetRoot), targetPath)),
                scriptPath);
        }