12 KiB
title, description, author, ms.pagetype, ms.mktglfcycl, ms.sitesec, ms.prod
title | description | author | ms.pagetype | ms.mktglfcycl | ms.sitesec | ms.prod |
---|---|---|---|---|---|---|
Automatically update multiple apps at the same time using Microsoft Application Virtualization Sequencer (App-V Sequencer) (Windows 10) | How to automatically update multiple apps at the same time using Microsoft Application Virtualization Sequencer (App-V Sequencer). | eross-msft | mdop, appcompat, virtualization | deploy | library | w10 |
Automatically update multiple apps at the same time using Microsoft Application Virtualization Sequencer (App-V Sequencer)
Applies to
- Windows 10, version 1703
Updating multiple apps at the same time follows the same process as automatically sequencing multiple apps at the same time. However for updating, you'll pass your previously created app package files to the App-V Sequencer cmdlet for updating.
Starting with Windows 10, version 1703, running the New-BatchAppVSequencerPackages cmdlet or the App-V Sequencer interface captures and stores all of your customizations as an App-V project template. If you want to make changes to this package later, your customizations are automatically loaded from this template file.
Note
If you're trying to sequence multiple apps at the same time, see the Automatically sequence multiple apps at the same time using Microsoft Application Virtualization Sequencer (App-V Sequencer) topic.
Update multiple apps by using a PowerShell cmdlet
Updating multiple apps at the same time requires that you create a ConfigFile with info related to each round of updating. This file is then used by the cmdlet to start the VM at a "clean" checkpoint, to copy the installer from the Host device to the VM, and then to start the App-V Sequencer to monitor your specified app installations.
To create your ConfigFile for use by the PowerShell cmdlet
-
Determine the apps that need to be included in your app package, and then open a text editor, such as Notepad.
-
Add the following XML info for each app:
-
<Name>. The name of the app you're adding to the package.
-
<InstallerFolder>. The file path to the folder with the app installer.
-
<Installer>. The file name for the app executable. This will typically be an .exe or .msi file.
-
<InstallerOptions>. The command-line options required for the app installation.
-
<Package>. The file path to the location of your App-V packages. These packages were created when you sequenced your apps.
-
<TimeoutInMinutes>. The maximum amount of time, in minutes, that the cmdlet should wait for updating to complete. You can enter a different value for each app, based on the size and complexity of the app itself.
-
<Cmdlet>. Determines whether the sequencer uses the cmdlet or the App-V Sequencer interface. True tells the sequencer to use cmdlet-based updating, while False tells the sequencer to use the App-V Sequencer interface. You can use both the cmdlet and the interface together in the same ConfigFile, for different apps.
-
<Enabled>. Indicates whether the app should be sequenced. True includes the app, while False ignores it. You can include as many apps as you want in the batch file, but optionally enable only a few of them.
Example:
<?xml version="1.0"?> <Applications> <Application> <Name>Skype for Windows Update</Name> <InstallerFolder>D:\Install\Update\SkypeforWindows</InstallerFolder> <Installer>SkypeSetup.exe</Installer> <InstallerOptions>/S</InstallerOptions> <Package>C:\App-V_Package\Microsoft_Apps\skypeupdate.appv</Package> <TimeoutInMinutes>20</TimeoutInMinutes> <Cmdlet>True</Cmdlet> <Enabled>True</Enabled> </Application> <Application> <Name>Microsoft Power BI Update</Name> <InstallerFolder>D:\Install\Update\PowerBI</InstallerFolder> <Installer>PBIDesktop.msi</Installer> <InstallerOptions>/S</InstallerOptions> <Package>C:\App-V_Package\MS_Apps\powerbiupdate.appv</Package> <TimeoutInMinutes>20</TimeoutInMinutes> <Cmdlet>True</Cmdlet> <Enabled>True</Enabled> </Application> </Applications> </xml>
-
-
Save your completed file, using the name ConfigFile.
To start the App-V Sequencer interface and app installation process
-
Open PowerShell as an admin on the Host computer and run the following commands to start the batch updating:
New-BatchAppVSequencerPackages –ConfigFile <path_to_configfile> –VMName <name_of_vm> -OutputPath <path_to_your_output>
Where VMName is the name of the virtual machine (VM) with the App-V Sequencer installed, where you'll run the batch updating, and OutputPath is the full path to where the updated packages should be copied.
The cmdlet creates a "clean" checkpoint on the VM. Next, the cmdlet copies the first app installer listed in the ConfigFile from the Host computer to the VM, and finally a new session of the VM opens (through VMConnect) and updating of the app begins from the command-line. After completing updating and package creation for the first app on the VM, the package is copied from the VM to the Host computer, specified in the OutputPath parameter. The cmdlet then goes to the second app on your list, reverting the VM back to a "clean" checkpoint and running through all of the steps again, until the second app package is copied to your output folder. This process continues until all apps included in your list are done. After the last app, the VM is reverted back to a "clean" checkpoint and turned off.
Update multiple apps by using the App-V Sequencer interface
Updating multipe apps at the same time requires that you create a ConfigFile to collect all of the info related to each round of updating. This file is then used by the App-V Sequencer interface after creating a "clean" checkpoint on your VM.
To create your ConfigFile for use by the App-V Sequencer interface
-
Determine the apps that need to be updated and then open a text editor, such as Notepad.
-
Add the following XML info for each app:
-
<Name>. The name of the app you're adding to the package.
-
<InstallerFolder>. The file path to the folder with the app installer.
-
<Installer>. The file name for the app executable. This will typically be an .exe or .msi file.
-
<Package>. The file path to the location of your App-V packages. These packages were created when you sequenced your apps.
-
<TimeoutInMinutes>. The maximum amount of time, in minutes, the cmdlet should wait for updating to complete. You can enter a different value for each app, based on the size and complexity of the app itself.
-
<Cmdlet>. Determines whether the sequencer uses the cmdlet or the App-V Sequencer interface. True tells the sequencer to usea cmdlet-based updating, while False tells the sequencer to use the App-V Sequencer interface. You can use both the cmdlet and the interface together in the same ConfigFile, for different apps.
-
<Enabled>. Indicates whether the app should be sequenced. True includes the app, while False ignores it. You can include as many apps as you want in the batch file, but optionally enable only a few of them.
Example:
<?xml version="1.0"?> <Applications> <Application> <Name>Skype for Windows Update</Name> <InstallerFolder>D:\Install\Update\SkypeforWindows</InstallerFolder> <Installer>SkypeSetup.exe</Installer> <InstallerOptions>/S</InstallerOptions> <Package>C:\App-V_Package\Microsoft_Apps\skypeupdate.appv</Package> <TimeoutInMinutes>20</TimeoutInMinutes> <Cmdlet>False</Cmdlet> <Enabled>True</Enabled> </Application> <Application> <Name>Microsoft Power BI Update</Name> <InstallerFolder>D:\Install\Update\PowerBI</InstallerFolder> <Installer>PBIDesktop.msi</Installer> <InstallerOptions>/S</InstallerOptions> <Package>C:\App-V_Package\MS_Apps\powerbiupdate.appv</Package> <TimeoutInMinutes>20</TimeoutInMinutes> <Cmdlet>False</Cmdlet> <Enabled>True</Enabled> </Application> </Applications> </xml>
-
To start the App-V Sequencer interface and app installation process
-
Open PowerShell as an admin on the Host computer and run the following commands to start the batch updating:
New-BatchAppVSequencerPackages –ConfigFile <path_to_configfile> –VMName <name_of_vm> -OutputPath <path_to_your_output>
Where VMName is the name of the virtual machine (VM) with the App-V Sequencer installed, where you'll run the batch updating, and OutputPath is the full path to where the updated packages should be copied.
The cmdlet creates a "clean" checkpoint on the VM. Next, the cmdlet copies the first app installer listed in the ConfigFile from the Host computer to the VM, and finally a new session of the VM opens (through VMConnect) and updating of the app begins from the command-line. After completing updating and package creation for the first app on the VM, the package is copied from the VM to the Host computer, specified in the OutputPath parameter. The cmdlet then goes to the second app on your list, reverting the VM back to a "clean" checkpoint and running through all of the steps again, until the second app package is copied to your output folder. This process continues until all apps included in your list are done. After the last app, the VM is reverted back to a "clean" checkpoint and turned off.
Review the log files
There are 3 types of log files that occur when you sequence multiple apps at the same time:
-
New-BatchAppVSequencerPackages-<time_stamp>.txt. Located in the %temp%\AutoSequencer\Logs directory. This log contains info about the updating activities, such as "Copying installer to VM", "Scheduling updating task", and so on for each app. Additionally, if an app times out, this log contains the failure along with the checkpoint for troubleshooting the problem.
-
New-BatchAppVSequencerPackages-report-<time_stamp>.txt. Located in the OutputPath folder you specified earlier. This log contains info about the connections made to the VM, showing if there were any failures. Additionally, it briefly includes success or failure info for all of the apps.
-
Log.txt file. Located in the Output Package folder. This file contains all code included in the NewAppVSequencerPackage cmdlet, including the allowed parameters.
Related topics
Have a suggestion for App-V?
Add or vote on suggestions on the Application Virtualization feedback site.
For App-V issues, use the App-V TechNet Forum.