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

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on stumbleupon

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:

Then run Add-AppvClientPackage

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:

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:

Leave a Reply.

40 thoughts on “App-V 5.0 Standalone Mode – Adding and Publishing a Package”

  1. 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.

    • 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….

  2. 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?

    • 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.

  3. Hi Thamim,

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

    • 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

  4. 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… 🙂

  5. 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

      • 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.

      • 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! 🙂

        • 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…

  6. 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.

    • 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

  7. 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. 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.

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

  9. 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%.

  10. 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

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

  11. 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 !

  12. 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…

  13. 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!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.