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); }
private string GetBootstrapperInfo() { string temp = Utilities.AddIfNotEmpty("\tbootstrapper.Condition = \"NOT //INSERTTEXTHERE//\";", Options.GetMinimumNetVersion()); //temp += $"\tbootstrapper.Version =Tasks.GetVersionFromFile(msiproject);\n"; temp += Utilities.AddIfNotEmpty("\tbootstrapper.Version = new System.Version(\"//INSERTTEXTHERE//\");", application.GetVersion()); temp += Utilities.AddIfNotEmpty("\tbootstrapper.UpgradeCode = new System.Guid(\"//INSERTTEXTHERE//\");", application.GetBootstapperGuid()); temp += Utilities.AddIfNotEmpty("\tbootstrapper.Manufacturer = \"//INSERTTEXTHERE//\";", application.GetPublisher()); temp += Utilities.AddIfNotEmpty("\tbootstrapper.HelpUrl = \"//INSERTTEXTHERE//\";", application.GetLink()); temp += Utilities.AddIfNotEmpty("\tbootstrapper.IconFile = @\"//INSERTTEXTHERE//\";", application.GetIcon()); // temp += Utilities.AddIfNotEmpty("\tbootstrapper.OutFileName = \"//INSERTTEXTHERE//netfx\";", application.GetProductName().Replace(" ", "")); temp += $"\tbootstrapper.OutFileName = OutputFile +\"netfx\";{Environment.NewLine}"; return(temp); }