accepting and EULA for a quiet install of an EXE c#

asuppa picture asuppa · Sep 18, 2013 · Viewed 10.5k times · Source

I am working on packaging up some installers, for internal use. I have the uninstall working fine with a passive switch.

as for installation the msi's with no eula work perfectly with the passive switch showing progress.

the exe's that contain an eula are the problem.

I am trying to find a way to accept the EULA without user input - note I do not have access to changing the public properties of the exe's to set the ACCEPTEULA=1

the base I am working with right now is...

                start = new ProcessStartInfo();
                start.WindowStyle = ProcessWindowStyle.Hidden;
                start.CreateNoWindow = true;
                start.Arguments = s.args; //curent argument /qn
                start.FileName = tempDir + "/" + s.executable;
                start.CreateNoWindow = true;

while this code works perfectly fine with the msi's it does not work with the exe's as they all contain eula's

this will be used as part of new setups in house.

Answer

Cemafor picture Cemafor · Sep 18, 2013

When using an exe you needed to preface /qn with /v making it:

setup.exe /v/qn