Before using this procedure, go to the <deployment name>\SMS_SCCM scripts folder and create an uninstallation batch file with ANSI encoding, following the instructions in the Product_Uninstall_Readme.txt file. You will use the resulting batch file <deployment name>_Uninstall.bat in this procedure.
To create a software uninstallation package using SCCM
- Click Start menu
All Programs
Microsoft System Center
Configuration Manager 2007
ConfigMgr Console.
- In the Configuration Manager Console window, expand Software Distribution.
- Right-click Packages
Distribute
Software.
- In the Distribute Software wizard, click Next.
- In the Package dialog box, select Create a New Package and Program without a Definition File. Click Next.
- In the Package Identification dialog box, enter the information for Name, Version, Publisher, Language and any comments. Click
Next.
- In the Source Files dialog box, make selections for where SCCM retrieves the batch file (<deployment name>_Uninstall.bat) and how it manages it. Select “Always Obtain Files from a Source Directory”. Click Next.
- In the Source Directory dialog box, specify the location of the source directory. Click Next.
- In the Distribution Points dialog box, select the distribution point(s). This is the location from which the software package
will be deployed to the target computers. Click Next.
- In the Program Identification dialog box, enter the name of your program. This is the name that displays in Add or Remove
Programs in the Control Panel. In the Command Line field, enter .\<deployment name>_Uninstall.bat . Click Next.
- In the Program Properties dialog box, Program Can Run drop-down list, select how you want your program to run. Your choices
are
- Only When a User is Logged On
- Whether or Not a User is Logged On
- Only When No User is Logged On
- In the After Running drop-down list, select an action to take after the program has run. Your choices are
- No Action Required
- Program Restarts Computer
- ConfigMgr Restarts Computer
- ConfigMgr Logs User Off
NoteSome products require a system restart after running.
Click Next.
- In the Advertise Program dialog box, select Yes to advertise the program to users. Click Next.
- In the Select a Program to Advertise dialog box, select the package you want to advertise. Click Next.
- In the Select Program
Advertisement Target dialog box, select the collection of people to whom you want to advertise, or create a new collection.
- In the Select Program
Advertisement Name dialog box, enter or change the name of your advertisement. Add any comments to further describe the advertisement.
Click Next.
- In the Select Program
Advertisement Subcollection dialog box, select one of the following options:
- Advertise this Program to an Existing Collection
- Create a New Collection and Advertise this Program to It
- Click Next.
- In the Select Program
Advertisement Schedule dialog box, if desired, set options to advertise your program at a specific date and time, or set
an expiration date. Click Next.
- In the Select Program
Assign Program dialog box, select one of the following options:
- If the installation process is mandatory, select Yes, Assign the Program.
- If the installation process is optional, select No, Do Not Assign the Program.
Click Next.
- In the Summary dialog box, verify your advertisement information. Use the back buttons to make any changes. To finish, click
Next.