Beispiel #1
0
	private static void RunWixScriptBuilder(string[] argv)
	{
		if (3 != argv.Length)
			throw new ArgumentException("WixBuilder <src dir> <wix parameters file> <target file>");

		string srcDir = argv[0];
		string parametersFile = argv[1];
		string targetFile = argv[2];

		using (StreamWriter stream = new StreamWriter(targetFile))
		{
			WixScriptBuilder builder = new WixScriptBuilder(stream,
			                                                srcDir,
			                                                WixBuilderParameters.FromFile(parametersFile));
			builder.Build();
		}
	}
Beispiel #2
0
    private static void RunWixScriptBuilder(string[] argv)
    {
        if (3 != argv.Length)
        {
            throw new ArgumentException("WixBuilder <src dir> <wix parameters file> <target file>");
        }

        string srcDir         = argv[0];
        string parametersFile = argv[1];
        string targetFile     = argv[2];

        using (StreamWriter stream = new StreamWriter(targetFile))
        {
            WixScriptBuilder builder = new WixScriptBuilder(stream,
                                                            srcDir,
                                                            WixBuilderParameters.FromFile(parametersFile));
            builder.Build();
        }
    }