Deploying SCCM 2012 Part 11 – Deploying Applications Using SCCM 2012

Deploying Applications Using SCCM 2012

Deploying Applications Using SCCM 2012 In this post we will see the ways for deploying applications using SCCM 2012. Before we start deploying applications, lets see what’s new about application deployment in SCCM 2012. An application in Configuration Manager contains the files and information required to deploy a software package to a device and the information about the software that all deployment types share. Applications are similar to packages in Configuration Manager 2007, but contain more information to support smart deployment. When you make changes to an application, a new revision of the application is created. Previous versions of the application are stored, and you can retrieve them at a later time.

When we deploy applications, we will come across few of the elements of applications :
1) Application Information – This provides general information about the application such as the name, description, version, owner and administrative categories. Configuration Manager can read this information from the application installation files if it is present.

2) Application Catalog – Provides information about how the application is displayed to users who are browsing the Application Catalog.

3) Deployment Types – A deployment type is contained within an application and contains the information that is required to install software. A deployment type also contains rules that specify if and how the software is deployed. A single application can have multiple deployment types that use the same technology. There are multiple deployment types available in CM2012.

a) Windows Installer – Creates a deployment type from a Windows Installer file. Configuration Manager can retrieve information from the Windows Installer file and related files in the same folder to automatically populate some fields of the Create Deployment Type Wizard.

b) Microsoft Application Virtualization – Detects application information and deployment types from a Microsoft Application Virtualization 4 manifest (.xml) file.

c) Windows Mobile Cabinet – Creates a deployment type from a Windows Mobile Cabinet (CAB) file.

d) Nokia SIS file – Creates a deployment type from a Nokia Symbian Installation Source (SIS) file.

When you deploy an application in CM 2012 you come across 2 things, Deployment Action and Deployment Purpose. Both of these are really important.

Deployment Action – Deployment Action includes “Install” or “Uninstall“. We can install an app or uninstall an app by providing relevant information in deployment action.

Deployment Purpose – This is really important, you have an option to specify Deployment purpose as “Available” or “Required“. If the application is deployed to a user, the user sees the published application in the Application Catalog and can request it on-demand. If the application is deployed to a device, the user sees it in Software Center and can install it on demand.

Now lets go ahead and deploy an application to a device in configuration Manager 2012. The first step would be creating an application. We will first download an application named 7-zip x64 for here : Download 7-zip. We will place the setup file in folder called softwares and share the folder.

Deploying SCCM 2012 Part 11 Snap 1

On the SCCM machine login with the user account sccmadmin and launch the configuration manager console. Select Software Library, Under Application Management select Applications.

Deploying SCCM 2012 Part 11 Snap 2

Right click Applications and select Create Application. Select Automatically detect information.. and choose the type as Windows Installer (Native), Specify the location of 7zip.msi file.

Deploying SCCM 2012 Part 11 Snap 4

We get to know that CM 2012 couldn’t get the details about the publisher of 7zip setup file. We will import the file by clicking Yes.

Deploying SCCM 2012 Part 11 Snap 3

Click Next.

Deploying SCCM 2012 Part 11 Snap 5

On the next screen, lets specify some details about the software and for Install behavior select Install for a system if resource is device, otherwise install for user. Click Next.

Deploying SCCM 2012 Part 11 Snap 6

Click Next.

Deploying SCCM 2012 Part 11 Snap 7

The Application has been created successfully , click Close.

Deploying SCCM 2012 Part 11 Snap 8

The Applications that are created can be seen by clicking Applications under Application Management. Since we have not deployed this application to any device or collection we see “0” under deployments. Once we deploy this application the count should increment.

Deploying SCCM 2012 Part 11 Snap 9

Right click the application and click Deploy.

Deploying SCCM 2012 Part 11 Snap 10

Click Browse and specify the collection as All Systems. Click Next.

Deploying SCCM 2012 Part 11 Snap 11

To add the Distribution Points, click in Add and choose your distribution point.

Deploying SCCM 2012 Part 11 Snap 12

Choose Action as “Install” and Purpose as “Required“.

Deploying SCCM 2012 Part 11 Snap 13

The application will be available once you distribute the content to content servers. If you want to schedule the availability of application, then select “schedule the application to be available at“. We will not schedule the application availability and distribute the content immediately to the Content servers. Select the Installation deadline “as soon as possible“. Click Next.

Deploying SCCM 2012 Part 11 Snap 14

For the User Notifications, select Hide in Software Center and all notifications. Click next.

Deploying SCCM 2012 Part 11 Snap 15

Do not select anything here, click next twice.

Deploying SCCM 2012 Part 11 Snap 16

We see that the deploy Software Wizard has completed successfully. Click Close.

Deploying SCCM 2012 Part 11 Snap 17

Now under Deployments we see the value is “1” which was previously “0“. Since we have deployed the application to a collection, the value is changed.

Deploying SCCM 2012 Part 11 Snap 18

Lets check whether the application has been deployed in the one of the computers. We will check in the machine named “CLIENT.PRAJWAL.LOCAL”. Wow, the application can be seen in the start menu

Deploying SCCM 2012 Part 11 Snap 19

Lets Check from the SCCM console to find more information about the deployment of application. On the Left hand side of console Select Monitoring , select Deployments. We get a lot of information about the application that we deployed. Total Asset Count = 2 which means the application was installed on 2 devices.

Deploying SCCM 2012 Part 11 Snap 20

Double click the application, we get to see the Asset Details here. We see that the application 7zip was installed on 2 devices, SCCM and CLIENT. If the deployment is unsuccessful you can get to know what went wrong by clicking Error tab.

Deploying SCCM 2012 Part 11 Snap 21

 

78
Leave a Reply

avatar
35 Comment threads
43 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
newest oldest most voted
Janardhan
Guest
Janardhan

Do we similar article for deploying packages to users?

Radu Bogdan
Guest
Radu Bogdan

Hi Prajwal, How to you redeploy an application? I have a PowerShell script that checks the registry for the monitor details. Then it creates a new WMI class so that SCCM can read it. I’ve created an application, and I pointed it to the script. I deployed the application to a specific collection but the script doesn’t run (even if I’ve invoked “Set-ExecutionPolicy Bypass” in the script). I assume the script doesn’t run because the script is invoked from a network share (even if all users have proper read and modify permissions to that network share). When I run the… Read more »

somvir
Guest
somvir

Hello Prajwal,

I have deployed a couple of exe application, but having issues with the status of applications while trying to install it on the client machine, it shows failed though application gets successfully installed.

could please suggest..

Nazar Hussain
Guest
Nazar Hussain

I am big fan of your articles. I need your help in the following:

I want to deploy application immediately to 20 machines in the lab. What is the best method? At the moment, I have to run the action from client machine (Configuration Manager) to get the application immediately. Is there any way from the server to push it immediately?

Khalid
Guest
Khalid

I am trying to delete or remove from SCCM, but unable, the button is off, and says in windows App Revision History “Revisions cannot be deleted unless there are no other objects referring to that version.

can you help me please.

moganaraj thavaraj
Guest
moganaraj thavaraj

Hi Prajwal,

Can you please explain, how can I deploy .msi application and I need to do some registry setting for this app on client pc?

Thanks,
Moe

Sri Nivas LE
Guest
Sri Nivas LE

Please provide the information about how to install package (.exe) from sccm 2012.
Content is downloading successfully from distribution points but not installing on machines.

Thank you.

Martin L
Guest
Martin L

Create a collection and put your single device there.

Matt North
Guest
Matt North

I have an application I have created and pushed out to a few hundred users. An unexpected error occurred that did not happen during testing, so we needed to make a change to some of the installation files. I edited a batch file that calls a few MSI installations, after it calls an executable that uninstalls the program that was previously pushed out. How do I now force devices that are compliant with the original deployment, so that the members of that collection reinstall the new application that include the adjustments I have made?

twenty94470 .
Guest
twenty94470 .

Hello it’s possible to deploy application with a scheduling like package ” Occurs every 1 days ” and the option “Always rerun program” ?
Thanks you

Parth Dholakia
Guest
Parth Dholakia

How do we deploy an application to a single device instead of the entire collection of devices?

Raghavendra Rao
Guest
Raghavendra Rao

Thanks for sharing the info Prajwal.

Can you please provide step by step troubleshooting process of Application Deployment.

Alex Raddle
Guest
Alex Raddle

Hi Prajwal,

I’d like to know your opinion on the new deployment tools that have renetly appeared on the market. Products like Total Software Deployment and Lansweeper look quite promising as a new alternative to SCCM. They may still lack some “must have” features, but they provide some versatility for sure.

Phoenix
Guest
Phoenix

Hey Prajwal,
I want our applications to automatically install. Right now they just sit there doing nothing until a user clicks install. What settings do we need to set so the application will just install automatically without the user having to do anything? Thank you for your help!

Raja Qamar Aslam
Guest
Raja Qamar Aslam

Hi Prajwal, I followed your steps but in the ” Purpose ” I have Chosen “Available” . i want to a user to request and install from “Software Center “. I have three Questions below . 1) Which log file is associated with deployment issues. if a user requested and somehow failed to install.? 2)How can i see the deployment Que and stop it and make a new deployment run for the same App”. either ” Edit ” the running task . 3) Please share link ” How to make a “Custom Collection of devices” or by IP range i… Read more »

Prajwal Desai
Guest
Prajwal Desai

Why do you want the users to be notified. In most of the organizations the user are unaware of the deployments that happen. When you deploy the software to a collection, the users can see a notification in the system tray. System center does it for you. Regarding bringing up the pop up for users, this is something that i am really not sure of.

Pankaj Rana
Guest
Pankaj Rana

Hi Prajwal,
Need one help we are deploying Office 365 in our org using sccm application method, we need to notify users before installation office and after successful installation as well. we have some script which can give a popup message to notify users, challenge is that how to run pop script after successful installation of sccm application.
we have already enabled all Software Center notifications but these stay for few seconds only , please help if you can.
Also let us know can we use Orchestrator to send automatic email if installation is success.

Nakul
Guest
Nakul

hi Prajwal,

I have pushed one EXE on the systems but it is stuck on 0% downloading. Checked permissions in IIS as well, the account to deploy the app is also OK. What I am missing here.

Prajwal Desai
Guest
Prajwal Desai

There could be lot of things that you need to check. Check if you have configured the boundary and boundary group. Also what does execmgr.log file says ?.

flyppster
Guest
flyppster

Hello Mr. Desai and Nakul: Was this resolved? I’m struggling with the same issue, but I’m deploying a BAT file; instead of, an EXE. I did not set up our SCCM 2012 and not too familiar with boundaries. From what I read, it looks like boundary group is setup correctly. If the boundary is incorrectly setup, it should affect all deployments, right? We are able to deploy MSI’s just fine. There is a discrepancy that I found with a boundary and boundary groups, but I don’t think it’s critical. A boundary was named, “Sacramento”, and a boundary group is misspelled,… Read more »

Ganesh Prajapati
Guest
Ganesh Prajapati

Hi Prajwal,

I am using SCCM 2012 R2 with all latest updates.

Now I am facing issue with application deployment. The application keep deploying even after successful application deployment on client system.

Am I missing anything? I am following the same way as you describe in your post.

Thanks,
Ganesh Prajapati

Prajwal Desai
Guest
Prajwal Desai

How did you check the software is getting re-deployed ?

Ganesh Prajapati
Guest
Ganesh Prajapati

We are using Lansweeper where we can get details for last 7 days and 24 hours software changes.

And I can also see notification on client system when it start deployment.

Please see the attached screenshot.

Thanks,
Ganesh P

Ganesh Prajapati
Guest
Ganesh Prajapati

We are using Lansweeper where we can check software changes for last 7 days and last 24 hours.
Please see the attached screen shot. And I have also notice the same by enabling the notification for deployment.

I can see deployment notification on client system.

Thanks
Ganesh P

manish nair
Guest
manish nair

hi,
msi is in E drive. there will b a C drive too. how in the unc path, there is no mention of drive letter, how sccm identifies its in which drive ? if my msi is in c drive then also the path given above wil work ?

Prajwal Desai
Guest
Prajwal Desai

In the UNC path you always provide the path along with the folder where the software is stored.

manish nair
Guest
manish nair

directly after server name, u mentioned folder path without mentioning the drive. thts my doubt. i m gettin error tht there is no such file/path. i tried all types of unc. my msi is directly under C:

Prajwal Desai
Guest
Prajwal Desai

@Manish – Share the folder with least permissions so that it shows up in the UNC path. SCCM has to know where have you placed the .msi or .exe file.

Naveen Punj
Guest
Naveen Punj

Good work…

Osama
Guest
Osama

when i trying to add distribution point i cant find that so please help me.

Naveen Punj
Guest
Naveen Punj

Check distmgr.log
Ccmsetup.log
Cas.log
Ccm log

Ravikant Soni
Guest
Ravikant Soni

Hi Prajwal,

Thanks for the link, this might help me…I’ll update soon on this..I know being selfish is not good thing…but can you just make me understand If I want to install notepad++ on some windows machine what exact command I need to shoot on target machine…!!!

At first glance I couldn’t figure out the command out of the link.

Ravikant Soni
Guest
Ravikant Soni

Hi Prajwal,

I work on IBM tools, and I have given to integrate IBM SCCD with SCCM, what I just want to know is:

1. How do we use soap connectivity of SCCM
2. Is there any way to deploy software on client machine using command line let say I want install notepad on one of the target machine, and I have following details with me

a. Asset (target machine)
b. Owner of the asset (target machine)
c. Software to be deployed

Hence, can I use above info and instruct SCCM to install the software.. Your suggestions would be really helpful.

Selene
Guest
Selene

This is the only post where i got actual step by step method to deploy applications using sccm… Can you also show us how to deploy other apps ?

Suparno
Guest
Suparno

Hi Prajwal, Need your advice and help. Requirement – I have to create an application of the below PowerShell script and run this script in admin mode in SCCM 2012 as a dependency with my UE-V Agent application (this msi package has been tested successfully). Now how do I create an application of the below program and run this program in PowerShell admin mode in SCCM 2012. Should I do it with a small task sequence or should I use simple dependency feature. Program to force Offline Files to be enabled – $exists = Test-Path HKLM:\SYSTEM\CurrentControlSet\Services\CSC if ($exists) { $startvalue… Read more »

Ravindra
Guest
Ravindra

Hi Prajwal,

I was curious. How long does it take for the software deployment to start after you choose “as soon as possible”? Is there a way to force the deployment to start right away?

Suparno
Guest
Suparno

Hi Prajwal,

Have you encountered this before. I need your opinion. I have installed the SCCM Configuration Client on my target computer. But the client certificate is None (should be PKI). The CCM Notification Agent is Disabled (should be enabled). Actions should be more (Discovery Data Collection cycle, Software inventory cycle and others missing). What do you think is the issue.

Trouble-shooting steps tried –
1) I have re-installed the agent (ccmsetup.exe /usepkicert SMSSITECODE=),
2) Host file is correct
3) Checked the logs on failed client – ccmsetup.log, ClientIDManagerStartup.log.
4) Requested for a new certificate from AD.
5) Modified the installation command as ccmsetup.exe /NoCRLCheck /UsePKICert /mp:sccm2012sp2.OCEANIA.local /logon SMSSITECODE=

Thanks and Regards,
Suparno

Suparno
Guest
Suparno

Hi Prajwal,

You are correct. I was thinking how to resolve the issue and this is what I did.

1) Enabled Offline Files by GPO. (Computer configuration – Administrative templates – Network – Offline Files and select “Allow or Disallow use of the Offline Files feature” and click Enable. Machine restart is needed).

2) SCCM 2012 silently installs the UE-V agent to user computer. (Machine restart is needed).

We need to test what happens if a machine restart does not happen between 1 and 2, but does happen after 2. If that succeeds that will be good. What do you think.

Thanks and Regards,
Suparno

Suparno
Guest
Suparno

Hi Prajwal,

The system account has full rights to the machine. (So ideally we don’t need a different account) What do you think.

Thanks and Regards,
Suparno

Suparno
Guest
Suparno

Hi Prajwal, I do not know so it is best to ask the master. You may think me as complete muppet. I am very new to SCCM 2012 (4 days old). This is what I have completed till now – 1) Created the UE-V Agent application in Configuration Manager 2) Distributed the UE-V Agent Application 3) Deployed the UE-V Agent Configuration Manager application Confused – Now how do I use the command line sc config CscService start=auto OR Get-WmiObject -Query “Select * From Win32_Service Where Name=’CSCService'”|ForEach-Object{$_.ChangeStartMode(“Automatic”) $_.StartService()} to enable the Offline Files as a pre-requisite to installing the application. What… Read more »

Suparno
Guest
Suparno

Hi Prajwal, I progressed a little after writing to you. Now I have a doubt. How do I link a package to an application in Configuration Manager 2012. To explain in details – 1) I have created one package that contains and runs the Offline files enabling command (sc config CscService start=auto). (We can also use like Get-WmiObject -Query “Select * From Win32_Service Where Name=’CSCService'”|ForEach-Object{$_.ChangeStartMode(“Automatic”) $_.StartService()}) 2) Created one application for UE-V Agent installation. (msiexec /i “AgentSetupx64.msi” /quiet /norestart /l*v “C:\UEVagentLog.txt” SyncMethod=OfflineFiles SyncEnabled=True SettingsTemplateCatalogPath=”\\server \SettingsCatalog” and msiexec /i “AgentSetupx86.msi” /quiet /norestart /l*v “C:\UEVagentLog.txt” SyncMethod=OfflineFiles SyncEnabled=True SettingsTemplateCatalogPath=”\\server\SettingsCatalog”) Confusion – How do… Read more »

Suparno
Guest
Suparno

In fact I went to dependencies – clicked on add dependency – it says specify the required application. Now problem is I want to add a package as dependency to the application. Any way to use a work-around. What do you think.

Suparno
Guest
Suparno

Hi Prajiwal,

This may help someone like me. I think there is no way to link package with application. So here is what i did –
1) Created the script with the application model..
2) Linked it to the agent application as dependency.
3) Deployed the agent application to client computers.

Thanks and Regards,
Suparno

Suparno
Guest
Suparno

Hi Prajwal,

That would be fantastic. Is there any of your sites where I can follow this step for adding it as an item in the uev agent package installation (enabling offline files and then install the agent)

Thanks and Regards,
Suparno

Suparno
Guest
Suparno

Hi Prajwal, Thank you for your response. Let me explain the details. I am deploying the recent released UE-V 1.0.5 Agent to client computers. I saw that the Offline Files Service (CscService) needs to be running before the installation will run. It seems that the Offline Files Service on Windows 8, by default, is set to Automatic (Trigger Start), which means that it’s not running during the deployment. So I am using the sc.exe tool to enable Offline Files from a command line. To enable the Offline Files feature using the sc.exe command, I need to run the following from… Read more »

Suparno
Guest
Suparno

Hi Prajwal,

Tell me something. Can I resolve like this. What do you think.
If I go through the Software Library > Overview > Operating Systems > Task Sequences > Command Line and fill in as Powershell.exe Start-Service CscService and then Add > General > Install Application.
I am confused if this is the correct way of resolving this. I do not want to add this in operating system deployment sequence..just want to sequence my Powershell.exe Start-Service CscService and then deploy my UE-V agent application. Is this the correct way.

Suparno
Guest
Suparno

Hi Prajwal,

How do I run a Service Controller (sc.exe) command from an elevated command prompt on my clients BEFORE I deploy an application through Configuration Manager 2012. Any help is highly appreciated.

Thanks and Regards,
Suparno

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More