Running the Uninstaller Noninteractively

You can run the uninstaller noninteractively. In this mode, you create an uninstaller initialization file, specifying the root folder of the installation you want to remove and the products you want to remove.

To run the uninstaller noninteractively, perform these steps:

  1. Create an uninstaller initialization file.

    The MathWorks provides a template for this file, named uninstaller.ini, located in the uninstall folder in your MATLAB installation folder. Make a copy of this template file, giving it any name you want.

    copy matlabroot\uninstall\uninstaller.ini C:\temp\my_uninstall.ini
    
  2. Open your copy of the initialization file, using any text editor, and enter all the required information. For example, use the directory parameter to specify the name of the root folder of the installation you want to remove.

    directory=C:\Program Files\MATLAB\R2007a
    

    In this initialization file, you can specify the name of the products you want to remove and other parameters. By default, the uninstaller removes all products. If your initialization file is missing a required parameter, the uninstaller stops and writes an error to the output log. Two optional parameters you might want to set are

  3. Save your changes to the file.

  4. Run the uninstaller (uninstall.exe), using the -if flag to specify the initialization file as a command-line argument.

    For example, click the Start button and select the Run option. In the Run dialog box, enter the uninstall command, specifying the full pathname of the initialization file as a command-line argument.

    uninstall.exe -if C:\temp\my_uninstall.ini
    


© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments