Mar 12, 2013 - 40 Comments - Virtual Vibes -

App-V 5.0 Standalone Mode – Adding and Publishing a Package

Deploying a package in standalone mode in App-V 5.0 is really really simple! I recommend having a standalone client somewhere to everyone I talk to regardless of infrastructure choices because it is the easiest way to quickly test a package before deploying to an environment.

There are two main steps to stand alone package delivery in App-V 5.0; adding and publishing.

Adding

Adding a package will register it with the client however will not make the package available to user or computer.

Firstly lets import the appvclient module:

Import-Module Appvclient

Then run Add-AppvClientPackage

Add-AppvClientPackage -Path C:\Packages\iTunes\iTunes.appv

The –Path parameter simply specifies where your .appv package exists.

Add-AppV

An additional parameter we can use when adding a package is –DynamicDeploymentConfiguration whereby we can specify the location of a dynamic configuration file.

Publishing

Next step is to now publish the package we have just added by running the following command:

Publish-AppvClientPackage -Name iTunes

As you will notice the command we issued publishes the package to the user. Now the application is ready to be used!

Published

Another switch we can use when publishing is –DynamicUserConfigurationPath which will allow us to specify a user configuration xml.

If we want to publish a package globally to a machine all we have to do is add a –Global to our command:

Publish-AppvClientPackage -Name iTunes –Global

global

services banner1

40 Responses to App-V 5.0 Standalone Mode – Adding and Publishing a Package

  1. Excellent

    Great post. Very useful for testing App-V packages.

    8 Apr 2014 - Reply
  2. Fred Duarte MSFT Employee

    This post has been particularly in helping me test sequenced applications.

    8 Apr 2014 - Reply
  3. Thamim Karim

    Thanks, great to know it has been useful!

    8 Apr 2014 - Reply
  4. me

    Thamim,

    For the life of me, i cannot get this to work. i keep getting a 0c80070057 error, application virtualization service failed to complete requested operation. operation attempted: configure appv package.

    Error module: streaming manager. internal error detail: 4c401c0c80070057. the forums at microsoft do not have a fix. these errors hardly come up on search engines. people still have this issue. i have no idea why i cannot get the clients to download and install update publish packages. clients are unsuccessful. ive taken every troubleshooting measure and applied it and still same result.

    8 Apr 2014 - Reply
    • Thamim Karim

      Hi,

      Can you confirm when you get this error? At add or at publish? Also are you using the -DynamicUserConfigurationPath argument?

      Please paste me the commands you are using so I can verify….

      8 Apr 2014 - Reply
  5. Pat Sheahan

    In App-v 4 there were some registry entrires that needed to be modified. Is this not the case with App-v 5.0? Also, is standalone mode supported for production use?

    8 Apr 2014 - Reply
    • Thamim Karim

      Hi Pat, your right that in App-V 4.x we had the “AllowIndependentFileStreaming” key in registry which had to be set to 1 in order to stream directly from a file location. This is no longer the case in 5.0. Standalone mode in App-V 4.x and 5.0 is fully supported for production use and we have seen some customers really embrace standalone mode beyond just testing packages.

      I know some customers using SCCM 2007 are using the methods described above to publish App-V 5.0 packages too.

      8 Apr 2014 - Reply
  6. Maheswaran 19

    Hi Thamim,

    I’m also got the same error “0c80070057 ” during installation.(standalone mode installation).any solution on this?

    8 Apr 2014 - Reply
    • Thamim Karim

      Can you confirm that this is for more than one package or is this issue package specific? Also have you installed the hotfix here: support.microsoft.com/…/2799153

      8 Apr 2014 - Reply
  7. Luke Maslany

    Hello Thamim,

    I too am getting the aforementioned 0C80070057 error.

    Commands so far:

    PS C:\Windows\system32> Set-ExecutionPolicy Unrestricted -Scope CurrentUser

    PS C:\Windows\system32> Import-Module Appvclient

    PS C:\Windows\system32> Add-AppvClientPackage -Path ‘\\domain\software\public\App-V 5.0 Packages\AppTest_1.10.0_x64\AppTest_1.10.0_x64.appv’

    Add-AppvClientPackage : Application Virtualization Service failed to complete requested operation.

    Operation attempted: Configure AppV Package.

    AppV Error Code: 0C80070057.

    Error module: Streaming Manager. Internal error detail: 4C401C0C80070057.

    Please consult AppV Client Event Log for more details.

    At line:1 char:1

    + Add-AppvClientPackage -Path ‘\\domain\software\public\App-V 5.0 Packages\App …

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : InvalidResult: (:) [Add-AppvClientPackage], ClientException

    + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientPowerShell.AddAppvPackage

    The package was sequenced using App-V 5.0 SP1 using a clean VM running a fully patched instance of Windows 7 Enterprise SP1 (64-bit).

    The ‘client’ machine is also a fully patched instance of Windows 7 Enterprise SP1 (64-bit) and is running the App-V 5.0 SP1 Client.

    So far as I can tell hotfix KB2799153 is superseded by SP1.

    Any nudges in the right direction would be gratefully received… 🙂

    8 Apr 2014 - Reply
  8. Luke Maslany

    PS: I did check the AppV Client Event Log but all it contained was:

    1008

    1

    2

    8

    0

    0x8000000000000100

    2

    Microsoft-AppV-Client/Admin

    win7sp1-x64

    <Security UserID="” />

    {3E2480EF-37C9-4B17-84BC-1B38A8D751EB}

    {47C75130-7167-4297-B60C-C7F2101F5B62}

    C:\ProgramData\App-V\3E2480EF-37C9-4B17-84BC-1B38A8D751EB\47C75130-7167-4297-B60C-C7F2101F5B62

    1279269900

    2147942487

    8 Apr 2014 - Reply
    • Thamim Karim

      Hi Luke,

      Is this application specific or are you seeing it across different packages?

      8 Apr 2014 - Reply
      • Luke Maslany

        So far I’ve just tried the one package: a small open-source application called Workrave (http://www.workrave.org)

        I chose it as I believed, perhaps erroneously, that it was a nice and simple application that I’d have no issues sequencing.

        I will try something even simpler and let you know how I get on.

        8 Apr 2014 - Reply
      • Luke Maslany

        Hmm… I’ve just sequenced a small utility I wrote (an executable and a manifest packaged as a .msi) and that seems to have worked just fine…

        PS C:\Windows\system32> Add-AppvClientPackage -Path ‘\\domain\software\public\MyIP_1.0_x86\MyIP_1.0_x86.appv’

        PackageId : 32aa1202-f82c-44ee-8095-aee6e34edc70

        VersionId : 37de4c04-a147-4b16-a1c1-c0bc25a40db2

        Name : MyIP_1.0_x86

        Version : 0.0.0.1

        Path : \\domain\software\public\MyIP_1.0_x86\MyIP_1.0_x86.appv

        IsPublishedToUser : False

        UserPending : False

        IsPublishedGlobally : False

        GlobalPending : False

        InUse : False

        InUseByCurrentUser : False

        PackageSize : 548047

        PercentLoaded : 50

        IsLoading : False

        HasAssetIntelligence : False

        PS C:\Windows\system32> Publish-AppvClientPackage MyIP_1.0_x86

        PackageId : 32aa1202-f82c-44ee-8095-aee6e34edc70

        VersionId : 37de4c04-a147-4b16-a1c1-c0bc25a40db2

        Name : MyIP_1.0_x86

        Version : 0.0.0.1

        Path : \\domain\software\public\MyIP_1.0_x86\MyIP_1.0_x86.appv

        IsPublishedToUser : True

        UserPending : False

        IsPublishedGlobally : False

        GlobalPending : False

        InUse : False

        InUseByCurrentUser : False

        PackageSize : 548047

        PercentLoaded : 50

        IsLoading : False

        HasAssetIntelligence : True

        Maybe the issue is with the application I am trying to package? I shall have to try a few others and see if I’ve just randomly picked one that has an issue…

        Luke

        PS: Thanks for taking the time to reply! 🙂

        8 Apr 2014 - Reply
        • Thamim Karim

          Now that’s interesting, I have just sequenced the same application and delivered it via standalone mode and hit the same exact error! Looks like this issue is specific to some apps, I will investigate further…

          8 Apr 2014 - Reply
  9. Mark Van Noy

    It probably does not help to chime in, but I am also seeing this with R 3.0.0. I have tried sequencing it three different times. Version prior to version 3.0.0 sequenced and streamed under App-V 4.6 without any problems. Under version 5 SP1 it chokes with the “AppV Error Code: 0C80070057” every time regardless of if I am streaming through SCCM 2012 SP1 or executing the Powershell commands interactively after copying the files to the local hard disk. In a seemingly related error, I am seeing Matlab 2013a fail to stream from SCCM 2012 SP1 with an error about a Stack Overflow, but when I interactively execute the Powershell after copying the files locally it runs just fine. I am starting to wonder if we have a sequencing issue and am tempted to try sequencing R 3.0.0 under App-V 4.6 then use the App-V 5 Powershell convert command to see if it runs correctly.

    8 Apr 2014 - Reply
    • Thamim Karim

      Mark, thanks for your comment, it really does help to know who else is facing this issue and with which packages. I have just downloaded and sequenced the same package and hit exactly the same issue. I am now investigating this internally to see if we can identify a root cause

      8 Apr 2014 - Reply
  10. Sambit

    Hi,

    While publishing a application getting the error like below, any idea ..

    Publish-AppvClientPackage : Application Virtualization Service failed to

    complete requested operation.

    Operation attempted: Publish AppV Package.

    Windows Error: 0x80004005 –

    Error module: Integration Manager. Internal error detail: 5C00122180004005.

    Please consult AppV Client Event Log for more details.

    At line:1 char:1

    + Publish-AppvClientPackage -Name

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : InvalidResult: (:) [Publish-AppvClientPackage],

    ClientException

    + FullyQualifiedErrorId : PublishPackageError,Microsoft.AppV.AppvClientPow

    erShell.PublishAppvPackage

    8 Apr 2014 - Reply
    • Thamim Karim

      Hi Sambit,

      Looks like a syntax error, can you share the commands you are running?

      8 Apr 2014 - Reply
  11. Thamim Karim

    Check out this post if you are facing the issues discussed: http://virtualvibes.co.uk/0c80070057-app-v-5-0-error-code/

    8 Apr 2014 - Reply
  12. MikeFryGM

    I am also getting this error on two different applications.

    The event log for App-V isn’t any help even after enabling all logs.

    8 Apr 2014 - Reply
    • Thamim Karim

      Is this issue package specific or is it affecting all applications? Does the add command work fine and the error occur for the publish?

      8 Apr 2014 - Reply
  13. Tiberivs

    Great post. To quickly test pacakges on a local client I use the following commandline

    Add-AppvClientPackage -Path “\\server\content\package.appv” | Publish-AppvClientPackage -Global | Mount-AppvClientPackage -Verbose

    This commandline, imports, published global and loads (streams) the package to 100%.

    8 Apr 2014 - Reply
    • Thamim Karim

      Thanks for sharing! A useful combination of PowerShell commands to quickly test packages.

      8 Apr 2014 - Reply
  14. Charo

    Dear Thamim,

    I am facing the Error Code: 100000000C when I am adding Office 2010 x86 package in Standalone mode.

    Other applications are working fine.

    In the event viewer, I can see the following error logs as well:

    Error 1008: Package {51461a66-3949-41ba-afc7-0d47752c9d9c} version {a34dc5b3-bac7-49be-ae66-b255599e8064} failed configuration in folder ‘C:\ProgramData\App-V\51461A66-3949-41BA-AFC7-0D47752C9D9C\A34DC5B3-BAC7-49BE-AE66-B255599E8064’ with error 0x79100E10-0xC.

    Error 4009: machine script for event AddPackage with command line: ‘”C:\ProgramData\App-V\51461A66-3949-41BA-AFC7-0D47752C9D9C\A34DC5B3-BAC7-49BE-AE66-B255599E8064\Root\..\Scripts\Integrator.exe”‘ exited with failure error code: Fatal error during installation.. Because Rollback is set to true in the script definition, the current AppV Client operation was rolled back.

    I already set the Execution Policy to unrestricted, but still the same issue.

    The package contains the Integrator.exe script.

    Office 2010 is sequenced using the same OS version as best practice.

    Please advise.

    Thank you.

    Add-AppvClientPackage -Path “C:\Office2010_x86_SP1\Office2010_x86_SP1_3.appv” -Dynami

    cDeploymentConfiguration “C:\Office2010_x86_SP1\Office2010_x86_SP1_3_DeploymentConfig.xml” | Publish-AppvClientPackage – Global

    Add-AppvClientPackage : Embedded Script process exited with an error code indicating failure (return code other than

    0). Please ensure that Embedded Script process can complete successfully and exits with 0.

    Operation attempted: Configure AppV Package.

    AppV Error Code: 100000000C.

    Please consult AppV Client Event Log for more details.

    At line:1 char:1

    + Add-AppvClientPackage -Path “C:\Office2010_x86_SP1\Office2010_x86_SP1_3.appv” -D …

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : InvalidResult: (:) [Add-AppvClientPackage], ClientException

    + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientPowerShell.AddAppvPackage

    8 Apr 2014 - Reply
  15. Arka Gayen

    I would like to know if there is any way to uninstall an AppV package manually. Thanks.

    8 Apr 2014 - Reply
    • Thamim Karim

      Of course Arka, you can use the unpublish-appvclientpackage and remove-appvclientpackage command to achieve this.

      8 Apr 2014 - Reply
  16. Suresh

    Nice post ,
    But when we want to publish the package and updated package on the client machine from the server .
    Can you please let me know the process and cmdlets for this process
    Tnq Inadvance !

    8 Apr 2014 - Reply
  17. App-V 5.0 Ramp up Guide | VirtualVibes

    […] App-V 5.0 Standalone Mode – Adding and Publishing a Package | Blog […]

    1 May 2014 - Reply
  18. nikhil

    Hi All,

    We are facing an issue in AppV 5.0.

    After creating AppV package when we edit the package to delete the junk file / junk registry, the package size is getting reduced.

    For E.g. My AppV package is having 200 files and 30 registry keys with size of 260 MB. When I edit the package -> delete 5 registry keys & 3 files from the package, the package size is getting reduced to 130 MB. This results in application failure

    Quick response will be appreciated…

    28 Oct 2014 - Reply
  19. Configuration Manager with App-V: Download and Execute or Streaming Delivery? | VirtualVibes

    […] which it will be added, published and then mounted into App-V cache ready for use. Users will actually have the ability to launch the application while […]

    14 Nov 2014 - Reply
  20. RequirePublishAsAdmin in App-V 5.0 SP3 | VirtualVibes

    […] Once enabled exactly what you expect takes effect, the next time a non admin user logs on, even if a package has already been added to the client they lose the ability to publish packages to themselves. To understand more about the difference between adding and publishing read here. […]

    14 Jan 2015 - Reply
  21. Multiple Dynamic Configuration XMLs with Configuration Manager and App-V | VirtualVibes

    […] the previous version is already there or not, the new deploymentconfig.xml will be applied at add time and the new userconfig.xml will be applied at publish time, no […]

    14 Jan 2015 - Reply
  22. 0C80070057 – App-V 5.0 Error Code | VirtualVibes

    […] since my blog on Adding and Publishing a Package in Standalone Mode I have noticed an increased number of people hitting this issue when trying to add/publish their […]

    14 Jan 2015 - Reply
  23. prit

    Thank you soo much for this.. had been struggling since long long..

    21 Oct 2015 - Reply
  24. The Microsoft App-V 5.0 Sequencer and Client Troubleshooting Guide | The World Simplified is a Virtual World

    […] App-V 5.0 Standalone Mode – Adding and Publishing a Package […]

    27 Apr 2016 - Reply
  25. R McD

    As someone who has been thrust into the world off APPV, with little to no prior knowledge, these scripts and posts have been invaluable to me.

    Thank you very much!

    30 May 2016 - Reply

Leave a Reply

Your email address will not be published. Required fields are marked *