-1

i Need install software with switch silent install

Example:

Process process = new System.Diagnostics.Process();
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = "/C msiexec.exe /i " + My.Resources + "eav_nt64_enu.msi /qb";
process.Start();
process.WaitForExit();

So How i can add My.Resources in cmd command.

  • What is `My.Resources`? Do you mean that you store the exe inside your application resources and want to access it - https://support.microsoft.com/en-us/kb/319292? – Eugene Podskal Feb 23 '16 at 11:52
  • If it is the case then this question is the duplicate of http://stackoverflow.com/questions/864140/write-file-from-assembly-resource-stream-to-disk – Eugene Podskal Feb 23 '16 at 11:53

1 Answers1

0

Extract your resource to a temp file, if it a file or executable.

If your resource is just a string, you can add it directly to command line