I have a WindowsForm Application
and in Form2
I have an install button
. I want to do an event, when I make click on install
to play the executable file
who have the location here : D:\Mat\R2008a\win64
and the name setup.exe
. The extra condition is : I want this exe
to play with installer.ini
setup who is here :
string path = AppDomain.CurrentDomain.BaseDirectory.ToString();
string installerfilename = path + "installer.ini";
I want to make my application like an installer.
I tried to use this code, but doesn't works:
private void Install_Click(object sender, EventArgs e)
{
string desktopPath = @"D:\Mat\NSIS\R2008a\win64";
ProcessStartInfo psi = new ProcessStartInfo();
psi.Arguments = "/s /v /qn /min";
psi.CreateNoWindow = true;
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.FileName = desktopPath + "\\" + "setup.exe";
psi.UseShellExecute = false;
Process.Start(psi);
this.Visible = false;
}
I want to run the setup.exe
with installer.ini
file .