Run a silent .exe in c#

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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!!





Neither one work. So what happens when you say it doesn't work?
– Sach
yesterday





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.

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

How to scale/resize CVPixelBufferRef in objective C, iOS