Hi,

I have a requirement to pass a user defined parameter to uninstall.exe from command line in unattended mode so that I can use this in uninstallation logic. How can I do this?

Thanks

asked 29 Jul '13, 05:42

SuryaSingh's gravatar image

SuryaSingh
126434349
accept rate: 55%


The uninstaller does not accept custom command line flags but you could wrap it in a bat file that will define the options as environment variables, and then use them inside the uninstaller as ${env(SOME_VAR)}. For example, if you want to call the uninstaller as:

  uninstaller savePreferences saveDocs

You could create a bat file uninstaller.bat:

   echo off
   set savePreferences=%1
   set saveDocs=%2
   uninstall.exe
link

answered 29 Jul '13, 17:34

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×83
×47
×36
×23

Asked: 29 Jul '13, 05:42

Seen: 1,415 times

Last updated: 29 Jul '13, 17:34