locked
appv5 scripting - confusions in script executions RRS feed

  • Question

  • What exactly is the difference between start virtual environment and start process. Which executes first

    Why the above script executions given in deployment config when we have user config xml which runs in context of user

    In deployment config file, I see publish/unpublish script in machine scripts and user scripts. What exactly is the difference


    • Edited by rvr_rvr Thursday, October 22, 2015 10:20 AM
    Thursday, October 22, 2015 10:07 AM

Answers

  • Why the above script executions given in deployment config when we have user config xml which runs in context of user

    It is not like you give only in deploymentconfig.xml file. It varies for scenario's and work environment. If you want changes happening to a machine, then we go with deploymentconfig.xml.If we need to make changes to only a user then we make use of userconfig.xml.

    In deployment config file, I see publish/unpublish script in machine scripts and user scripts. What exactly is the difference

    In machine scripts, the publish/unpublish will run in system context.In user scripts the publish/unpublish will run in user context.

    Note: User scripts will run in domain joined machines only.

    What exactly is the difference between start virtual environment and start process. Which executes first

    StartVirtualEnvironment - After a Virtual Environment (Package) is built.
    StartProcess - After a virtual application is started. We usually provide the shortcut exe  in <ApplicationId> tag that needs to trigger the script. When we click on the shortcut, the start process will run the script first and then launch the shortcut exe.



    (Please click on "Vote as Helpful" and/or "Mark as Answer", if it has helped you.)

    app2pack.blogspot.com: app2pack.blogspot.com

    • Marked as answer by rvr_rvr Thursday, October 22, 2015 4:33 PM
    Thursday, October 22, 2015 1:02 PM
  • When you do a global publish, only deploymentconfig.xml will be used.

    (Please click on "Vote as Helpful" and/or "Mark as Answer", if it has helped you.)

    app2pack.blogspot.com: app2pack.blogspot.com

    • Marked as answer by rvr_rvr Thursday, October 22, 2015 4:33 PM
    Thursday, October 22, 2015 1:29 PM

All replies

  • Here's some good blog post about scripting in app-v 5. 

    http://www.tmurgent.com/TmBlog/?p=1154

    http://blogs.technet.com/b/appv/archive/2012/12/10/scripting-and-embedded-scripting-for-appv-5-0-dynamic-deployment-and-user-configuration-scripting.aspx

    Thursday, October 22, 2015 11:49 AM
  • I have read through but still I am not getting why User scripts are present in Dynamic Deployment file.

    If we do a global publish in the machine, will it not refer user config file and only refer dynamic deployment file

    Thursday, October 22, 2015 12:28 PM
  • Why the above script executions given in deployment config when we have user config xml which runs in context of user

    It is not like you give only in deploymentconfig.xml file. It varies for scenario's and work environment. If you want changes happening to a machine, then we go with deploymentconfig.xml.If we need to make changes to only a user then we make use of userconfig.xml.

    In deployment config file, I see publish/unpublish script in machine scripts and user scripts. What exactly is the difference

    In machine scripts, the publish/unpublish will run in system context.In user scripts the publish/unpublish will run in user context.

    Note: User scripts will run in domain joined machines only.

    What exactly is the difference between start virtual environment and start process. Which executes first

    StartVirtualEnvironment - After a Virtual Environment (Package) is built.
    StartProcess - After a virtual application is started. We usually provide the shortcut exe  in <ApplicationId> tag that needs to trigger the script. When we click on the shortcut, the start process will run the script first and then launch the shortcut exe.



    (Please click on "Vote as Helpful" and/or "Mark as Answer", if it has helped you.)

    app2pack.blogspot.com: app2pack.blogspot.com

    • Marked as answer by rvr_rvr Thursday, October 22, 2015 4:33 PM
    Thursday, October 22, 2015 1:02 PM
  • When you do a global publish, only deploymentconfig.xml will be used.

    (Please click on "Vote as Helpful" and/or "Mark as Answer", if it has helped you.)

    app2pack.blogspot.com: app2pack.blogspot.com

    • Marked as answer by rvr_rvr Thursday, October 22, 2015 4:33 PM
    Thursday, October 22, 2015 1:29 PM
  • By default, AppV will not consider both Deployment Config or User Config.xml. We have to let the AppV Client know to use the Deployment Config or User Config using the -Dynamic Deployment Configuration or if you use Full Infra, there will be an option to edit default configurations.

    Posted AS IS with No Warranties. Mark as Answer if this answers your question, It will help other community members.

    Thursday, October 22, 2015 1:33 PM