Beispiel #1
0
        private string GetInsideMain()
        {
            string temp = "";

            temp += SignInstaller.GetSigningLine("msiproject");
            if (Options.GetMinimumNetVersion() != string.Empty)
            {
                temp += bootstrapper.GetBootStrapper("msiproject");
            }
            temp += $"{Environment.NewLine}return \"Successfully Created Script\";{Environment.NewLine}}} {Environment.NewLine}\tcatch (Exception ex) {Environment.NewLine}\t{{ return ex.Message; {Environment.NewLine}\t}}{Environment.NewLine}";
            return(temp);
        }
Beispiel #2
0
        private string GetBootstrapperSigning()
        {
            string temp = "";

            if (SignInstaller.GetSignInstaller())
            {
                temp += $"\tExternalTool ig = new ExternalTool();{Environment.NewLine}";
                temp += Utilities.AddIfNotEmpty("\tig.WellKnownLocations = @\"//INSERTTEXTHERE//\";", SignInstaller.GetWixWellKnownLocation());
                temp += $"\tig.ExePath = \"insignia.exe\";{Environment.NewLine}";
                //temp += $"\tig.Arguments = \" - ib {application.GetProductName().Replace(" ", "")}netfx.exe -o engine.exe\"; {Environment.NewLine}";
                temp += $"\tig.Arguments = \" - ib \"+OutputFile + \"netfx.exe -o engine.exe\"; {Environment.NewLine}";
                temp += $"\tig.ConsoleRun();{Environment.NewLine}\t";
                temp += SignInstaller.GetSigningLine("\"engine.exe\"");
                //temp += $"\tig.Arguments = \" -ab engine.exe {application.GetProductName().Replace(" ", "")}netfx.exe -o {application.GetProductName().Replace(" ", "")}netfx.exe\"; {Environment.NewLine}";
                temp += $"\tig.Arguments = \" -ab engine.exe \" + OutputFile + \"netfx.exe -o \" + OutputFile + \"netfx.exe\"; {Environment.NewLine}";
                temp += $"\tig.ConsoleRun();{Environment.NewLine}";
            }
            return(temp);
        }