Run a silent .exe in c#

Multi tool use


Run a silent .exe in c#
I am needing some assistance in running a silent uninstaller in my code.
This is the two types I have so far.
Process process = new Process();
process.StartInfo.FileName = (@"C:ProgramDataPackage Cache{270ce95e-5e84-4b6a-8d58-f8905b0a3cfc}Jprosetup.exe /uninstall");
process.StartInfo.Arguments = "/Q";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit();
I also have this:
System.Diagnostics.Process.Start("C:\ProgramData\Package Cache\{270ce95e-5e84-4b6a-8d58-f8905b0a3cfc}\JproSetup.exe /uninstall /quiet");
Neither one work.
This is the line from Regedit that the silent uninstaller falls under...
C:ProgramDataPackage Cache{270ce95e-5e84-4b6a-8d58-f8905b0a3cfc}JproSetup.exe" /uninstall /quiet
Any help would be amazing!!
why did you put
/uninstall
argument in file name, while /q
in arguments?– Ilya Bursov
yesterday
/uninstall
/q
@Sach it says item not found.
– Anna Collins
yesterday
@IlyaBursov I tried two different items I found off the web. The one with uninstall is the actual quite uninstall file path from regedit
– Anna Collins
yesterday
So what happens when you put both the /install and /q arguments in the Arguments property instead of the way you have done it?
– Chris Dunaway
yesterday
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Neither one work. So what happens when you say it doesn't work?
– Sach
yesterday