Can I pass user defined parameter to uninstaller.exe?

Comments

1 comment

  • Avatar
    juanjo

    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
    

Please sign in to leave a comment.