Jump to content


anyweb

using SCCM 2012 beta 2 in a LAB - Part 4. Application Installation

Recommended Posts

Am i the only one where uninstall not are working on the client side?

 

Or are it a beta bug :)

 

I got this in my AppProvider.log:

 

<![LOG[ App enforcement environment:

Context: Machine

Command line: msiexec /i "XmlNotepad.msi"

Allow user interaction: No

UI mode: 0

User token: null

Session Id: 1

Content path: C:\Windows\ccmcache\Content_7ca38eaa-6a88-4471-b577-349e8b16a005.1.System

Working directory: ]LOG]!><time="09:00:20.226-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appcontext.cpp:64">

<![LOG[ Prepared working directory: C:\Windows\ccmcache\Content_7ca38eaa-6a88-4471-b577-349e8b16a005.1.System]LOG]!><time="09:00:20.227-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appcontext.cpp:179">

<![LOG[Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe]LOG]!><time="09:00:20.229-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="executility.cpp:187">

<![LOG[ Prepared command line: "C:\Windows\system32\msiexec.exe" /i "XmlNotepad.msi" /qn]LOG]!><time="09:00:20.230-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appcontext.cpp:255">

<![LOG[ Executing Command line: "C:\Windows\system32\msiexec.exe" /i "XmlNotepad.msi" /qn with user context]LOG]!><time="09:00:20.230-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:197">

<![LOG[ Working directory C:\Windows\ccmcache\Content_7ca38eaa-6a88-4471-b577-349e8b16a005.1.System]LOG]!><time="09:00:20.231-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:209">

<![LOG[ Post install behavior is BasedOnExitCode]LOG]!><time="09:00:20.234-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appcommon.cpp:1054">

<![LOG[ Waiting for process 5352 to finish. Timeout = 30 minutes.]LOG]!><time="09:00:20.238-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:1643">

<![LOG[ Process 5352 terminated with exitcode: 0]LOG]!><time="09:00:20.597-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:1652">

<![LOG[ Looking for exit code 0 in exit codes table...]LOG]!><time="09:00:20.598-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:307">

<![LOG[ Matched exit code 0 to a Success entry in exit codes table.]LOG]!><time="09:00:20.598-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appexcnlib.cpp:386">

<![LOG[ ActionType - Install will use Content Id: Content_7ca38eaa-6a88-4471-b577-349e8b16a005 + Content Version: 1 for AppDT "XML Notepad 2007 - Windows Installer (Native)" [scopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e], Revision - 2]LOG]!><time="09:00:20.640-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="6808" file="appprovider.cpp:1434">

<![LOG[++++++ App enforcement completed (4 seconds) for App DT "XML Notepad 2007 - Windows Installer (Native)" [scopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e], Revision: 2, User SID: ] ++++++]LOG]!><time="09:00:20.653-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appprovider.cpp:2361">

<![LOG[Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e" AND Revision = 2)"]LOG]!><time="09:00:35.774-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appprovider.cpp:394">

<![LOG[ Performing detection of app deployment type XML Notepad 2007 - Windows Installer (Native)(ScopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e, revision 2) for system.]LOG]!><time="09:00:35.781-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appprovider.cpp:2089">

<![LOG[+++ Application not discovered. [AppDT Id: ScopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e, Revision: 2]]LOG]!><time="09:00:40.277-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="localapphandler.cpp:291">

<![LOG[+++ Did not detect app deployment type XML Notepad 2007 - Windows Installer (Native)(ScopeId_54410AB1-899E-4CA7-B3B6-E4E15E7ED427/DeploymentType_6fd9b1f3-5ff4-4e16-bb33-68c498738f1e, revision 2) for system.]LOG]!><time="09:00:40.278-120" date="09-08-2011" component="AppProvider" context="" type="1" thread="5716" file="appprovider.cpp:502">

Share this post


Link to post
Share on other sites

Hi Niall,

 

Firstly, thank you for taking the time to create these guides, they've been really useful given that the current CM2012 documentation is sorely lacking.

 

I have a quick question about one of the settings for application deployment. I've tried various permutations of the setting but it seems to have no affect!

 

During the 'Create Application' stage (Step 1), we select 'Install for user or system = Install for system'.

Then, during the deployment creation phase (Step 3) we choose 'Install for system' the first time (and then advertise to device collections) and 'Install for user' the second time (and then advertise to user collections).

 

so my question is, what's the purpose of the initial setting 'Install for user or system = Install for system' when creating the application?

 

Does it impact the installation in any way? Or is it used when defining rules about what to deploy to where? (primary device for example).

 

Also, once I've created a deployment, I can't go back and change it, for example from Available to Required. is this correct?

 

Thanks for the help!

Dan.

Share this post


Link to post
Share on other sites

hi Dan,

thanks for the kind words !

 

i think the Technet documentation is actually fantastic but it's not all there obviously,

 

however in relation to what you are asking see below (from Technet, how to create an Application)

  • Install for user or System – Specify whether the applications deployment type will be installed for the currently logged on user or for all users. You can also specify that the deployment type will be installed for all users if it is deployed to a device or to a user only if it is deployed to a user.

Configmgr 2012 application installation is all about the User so in the examples above we are just experimenting with the different options available to us,

 

 

as regards Deployments yes some settings are not changeable after they are created (like most of the deployment settings, some of the general settings like collection/software), perhaps this might change in future releases i don't know

Share this post


Link to post
Share on other sites

Hi Niall,

Thanks for the quick response.

 

I agree the technet docs are pretty good if I'm honest, but got very frustrated with the amount of pages saying 'Placeholder..' when it was specifically the bit I wanted to read! lol.

 

Anyway with regards to the User/System settings, I had read the page you referenced, but hadn't really put the two together, as they don't really marry up. I guess with hindsight they kind of do..

 

So

'Install for System' = All users

'Install for user' = Current User, so therefore can only be used A) When someone's logged on and/or B)Initiates the install via the software catalog.

 

making the third option 'Install for System if resource is device; otherwise install as user' a bit confusing as the documentation says: 'The term “device” in Configuration Manager 2012 applies to a computer or a mobile device such as a Windows Mobile Phone '.. so when would the app be installed as a user?

 

I'm really enjoying working through all the new features, some of them are a real god send! (Collection management for example), but I'm just struggling with the new Application delivery concepts. I can see the potential for sure, with deployment types, conditions, dependancies and supersedence all giving control, but also a potential troubleshooting nightmare..

 

Thanks again for your help. Keep up the great work.

Dan.

Share this post


Link to post
Share on other sites

well it's a bit confusing but we'll get used to it soon enough, to add to this, when you get to Deploying applications in a Task Sequence (for OSD) you'll see that the application will need a deployment type for this application and that the deployment type should be set to Install for System or Install for System if resource is device; otherwise install as userotherwise the application will not be able to be added to the Install Applications step

Share this post


Link to post
Share on other sites

i get an error when i try to go to my website. as shown in the picture,

 

post-5927-0-38066600-1318514461_thumb.jpg

 

I have followed the setup as in the guides and did have it working last night but today when i came in and checked it it displayed an error. i basically got XML editior 2007 to install with the pop up but when he said to "Open the Software Catalog, and refresh the page, notice anything " i got the error that you seen. now i do have the DB on a remote SQL not sure if that is why but the site role is installed on the local sccm server. i also went into the IIS manager and see the Anonymous is turned on but windows aauthentication isnt..

post-5927-0-17767700-1318514244_thumb.jpg

 

Any ideas that can help me out?

Share this post


Link to post
Share on other sites

I am having problems trying to install the Lync 201 client via the msi file. I have successfully deployed the XML Notepad msi file, so I know the system works. I have setup the Lync 2010 Client exactly as the XML Notepad, and I get the error attached in this screen shot. The user that is logged into the computer I am trying this on, Windows 7 X64 Ent., is just a domain user account. Since this is what it will be when I push it out to the masses, I wanted to replicate this in my test environment. So, what am I doing wrong that I get this error message? Thanks.

post-11641-0-25728600-1318857299_thumb.png

Share this post


Link to post
Share on other sites

I am having problems trying to install the Lync 201 client via the msi file. I have successfully deployed the XML Notepad msi file, so I know the system works. I have setup the Lync 2010 Client exactly as the XML Notepad, and I get the error attached in this screen shot. The user that is logged into the computer I am trying this on, Windows 7 X64 Ent., is just a domain user account. Since this is what it will be when I push it out to the masses, I wanted to replicate this in my test environment. So, what am I doing wrong that I get this error message? Thanks.

post-11641-0-81778400-1318861417_thumb.png

Share this post


Link to post
Share on other sites

Hi everyone...

I'm new to SCCM , I am having some issues here with the Application Catalog, it says " There is a problem Connecting with the Server ", Any Help or some directions would be appreciated !!

 

In the Event Viewer on the SCCM server I came across this error

 

"WebHost failed to process a request.

 

Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/23318221

Exception: System.ServiceModel.ServiceActivationException: The service '/CMSoftwareCatalogSvc/ApplicationOfferService.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme https. There can be at most one address per scheme in this collection.

Parameter name: item. ---> System.ArgumentException: This collection already contains an address with scheme https. There can be at most one address per scheme in this collection.

Parameter name: item

at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)

at System.Collections.Generic.SynchronizedCollection`1.Add(T item)

at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)

at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)

at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)

at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

--- End of inner exception stack trace ---

at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

Process Name: w3wp

Process ID: 4588

"

 

 

111.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.