0% found this document useful (0 votes)
111 views11 pages

Deploying Portable Application Using System Center Configuration Manager 2012 R2 SP 1

This document provides instructions for deploying portable applications like CCleaner using System Center Configuration Manager 2012 R2 SP1. It describes copying the CCleaner folder and creating a batch script on the SCCM server to install CCleaner on client computers. The batch script checks if the installation folder exists and copies the files. The document then explains how to deploy CCleaner as an application from the SCCM console by specifying the installation path and batch file parameters. This allows CCleaner to be installed and its shortcut to be added to the desktop on client computers through the application catalog.

Uploaded by

shokax
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views11 pages

Deploying Portable Application Using System Center Configuration Manager 2012 R2 SP 1

This document provides instructions for deploying portable applications like CCleaner using System Center Configuration Manager 2012 R2 SP1. It describes copying the CCleaner folder and creating a batch script on the SCCM server to install CCleaner on client computers. The batch script checks if the installation folder exists and copies the files. The document then explains how to deploy CCleaner as an application from the SCCM console by specifying the installation path and batch file parameters. This allows CCleaner to be installed and its shortcut to be added to the desktop on client computers through the application catalog.

Uploaded by

shokax
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

geekdudes.wordpress.

com

Deploying portable application using


System Center Configuration Manager
2012 R2 SP 1
Posted: November 22, 2015 in SCCM

Tags: SCCM 2012

As example,i used CCleaner,from default location (C:\Program


Files\CCleaner) i created shortcut in installation folder, (Right click
CCleaner64.exe),if i were using x86 OS i would Right click
CCleaner.exe)
Copy whole CCleaner folder to shared empty folder on SCCM
server (i created empty folder install)

create batch script in install folder

Batch will take parameter (Install folder path),exported to %~1


variable,if that path doesn’t exist,it will be created

if not exist "%~1" mkdir "%~1"

rem ~dp0 is current directory (where .bat


exists),it will copy all from CCleaner folder to
path specified as .bat parameter (parameter will
be specified later on),and will copy shortcut to
user Desktop

copy /y "%~dp0CCleaner\*.*" "%~1"


copy /y "%~dp0CCleaner\ccleaner.lnk"
"%Public%/Desktop"

Don’t forget to share folder install and to give SCCM server


computer account Full Control NTFS permissions

You can now deploy CCleaner as Application or as a package


Package = “run a command”
Application = “keep a program installed on this system”

Software Center can deploy and manage both packages and


applications, but the Installed Software tab in Software Center only
shows applications (a package could be simply a script that was
run, not a real application that was installed). The Application
Catalog supports both packages and applications, but there is
limited information for a package that can be shown to users in the
application catalog.

I decided to deploy CCleaner as Application.

From SCCM console click Software Library-Applications-Create


Application

Click Manually specify the application information


Give application name and (optionally) version number

Click Next
For deployement tipe click Add

Again,click manually
Specify app name and click Next

Specify path to shared folder where bat file and CCleaner folder is
located,

in installation progam type bat file name and parameter (Path for
folder where CCleaner files will be located).

Script will check if folder specified in path (C:\Program


Files\CCleaner) exists,if not it first will create it and copy all files
from \install\CCleaner folder on SCCM server to C:\Program
Files\CCleaner on client computer

Specify how SCCM will check if program we want to deploy already


exists,

click Add Clause


Choose install for system and specify whether app should be
installed if user is logged on
Now when CCleaner is published,we need to deploy it,right click on
app and select Deploy

Choose Distribution Point


After wizard finishes,CCleaner is available in Application Catalog
on client computer,after click Install,it will create folder C:\Program
Files\CCleaner

copy all files from CCleaner folder on SCCM server to C:\Program


Files\CCleaner on client computer and will throw shortcut to
desktop also

You might also like