Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am uninstalling Citrix client using a batch file. The batch initiates the uninstall successfuly, but I need to input YES (for confirmation) automatically. How can I do this in the batch file?

share|improve this question
    
Do you knwo what's asking? maybe a snippet of the batch file. How you automate it depends on what you're automating. –  Deanna May 14 '13 at 10:48

2 Answers 2

You use echo to send yes to the application. Here's a small demo:

echo yes | findstr "^"
share|improve this answer
    
it is an exe file. echo yes | ... is not working here is the command I am using: echo yes | C:\WINDOWS\system32\ctxsetup.exe /uninst -y C:\PROGRA~1\Citrix\icaweb32\uninst.inf . –  Ron May 14 '13 at 12:09

You can try below code:

msiexec /x mps.msi /L*v c:\output.log CTX_MF_FORCE_SUBSYSTEM_UNINSTALL=Yes

Note: mps.msi is the name and location of the msi package.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.