if (File.Exists(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "InstallUtil.exe "))
{
if (File.Exists(iname + "gaswsh.exe"))
{
File.Copy(iname + "gaswsh.exe",System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "gaswsh.exe",true);
File.Copy(iname + "gaswsh.exe.config",System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "gaswsh.exe.config",true);
File.Copy(iname + "Genesis.ApplicationService.DLL",System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "Genesis.ApplicationService.DLL",true); System.Threading.Thread.Sleep(1000);
Process.Start(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "InstallUtil.exe ",System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "gaswsh.exe");
System.Threading.Thread.Sleep(10000);
}
else
{
MessageBox.Show(iname + "\\gaswsh.exe" + " Can not exit !");
}
}