Hi,
We are in the process of automating the builds of Advanced Installer Projects. Could you please help on "How can I achieve the same from a C# Project"?
I have tried invoking the command line arguments from a C# Project. However it didn't worked, I am not sure where I am going wrong. I am attaching a project, could you please go through that and let me know where I am going wrong?
Here is the code which I am using in C#
Process p = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WorkingDirectory = @"C:\Program Files (x86)\Caphyon\Advanced Installer 17.7\bin\x86\";
startInfo.FileName = @"C:\Program Files (x86)\Caphyon\Advanced Installer 17.7\bin\x86\AdvancedInstaller.com";
startInfo.Arguments = @"AdvancedInstaller.com /edit ""\C:\Users\sandeep\Documents\Advanced Installer\Projects\Test.aip\"" / SetVersion 3.1.201";
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
p.StartInfo = startInfo;
p.Start();
string result = p.StandardOutput.ReadToEnd();
MessageBox.Show(result.ToString());
Regards,
Sandeep.
FOLLOW US
Get the latest news in Application Packaging