Deploying portable application using System Center Configuration Manager 2012 R2 SP 1

Posted: November 22, 2015 in SCCM
Tags:

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)

Untitled.png

 

 

Untitled

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

Untitled.png

 

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

Untitled1.png

Click Manually specify the application information

Untitled2.png

Give application name and (optionally) version number

Untitled3.png

Click Next

Untitled4.png

For deployement tipe click Add

Untitled5

Again,click manually

Untitled6.png

Specify app name and click Next

Untitled7.png

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

Untitled9

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

click Add Clause

Untitled10.png

 

 

 

Untitled11.png

Choose install for system and specify whether app should be installed if user is logged on

Untitled12.png

Now when CCleaner is published,we need to deploy it,right click on app and select Deploy

Untitled13.png

 

Untitled14.png

Choose Distribution Point

Untitled15.png

 

Untitled16.png

 

Untitled17.png

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

 

Untitled18.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s