Feb 19

Conversie pachete app-v de la 4.6 la 5.0 + testare

Salut

 

Un mic articol de “how to” convertire pachete app-v 4.6 sp1 sau sp2 la 5.0.

Cerintele cu privire la masina client :

-app-v 5 sequencer trebuie sa fie instalat

-powershell 3.0 instalat

-drepturi de administrare

 

Deschidem Windows Powershell x86 cu drepturi de administrare

image001

 

Introducem urmatoarea comanda pentru a vizualiza lista completa de comenzi powershell pentru app-v5

Get-Module -ListAvailable

image002

 

 

Importam modulul :

Import-Module AppVPkgConverter

Alegem “y”

image003

 

 

Listam comenzile posibile pentru convertire:

Get-Command

-Module AppVPkgConverter

 

image004

Copiam pachetele pe care vrem sa le convertim intr-o singura locatie

In exemplu am folosit calea “c:\packages” pentru 2 pachete test Access2003 si Excel2003

image005

 

 

 

Executam urmatoarea comanda pentru a verifica pachetele inainte de conversie

“Test-AppvLegacyPackage  c:\packages\*”

Nota: Calea variaza in functie de alegerea facuta de voi :))

image006

 

 

 

Nota: Prin procesul de conversie nu se for procesa scripturile prezente in pachet! Acestea trebuie refacute:(

image007

Se foloseste urmatoarea linie pentru convertirea pachetelor

“Convert-From-AppvLegacyPackage” path for the packages

Se alege un “Destination Path”

image008

 

Procesul de conversie incepe

image009

image010

 

Conversie finalizata

image011

 

Noile pachete sunt gata, se pot adauga in interfata de management Silverlight App-V 5

image012

 

 

 

BONUS SCRIPTS:

Testarea\Convertirea tuturor pachetelor cu exceptia celor cu “warnings”

$Source = “Y:\Packages”

$Dest = “Y:\Packages.v5”

Get-ChildItem -Path $Source | Test-LegacyAppvPackage | Where-Object {$_.Errors.Count -eq 0 } | ConvertFrom-LegacyAppvPackage -Target $Dest

 

Testarea si convertirea tuturor pachetelor si mutarea lor in foldere:

## Convert a folder of legacy App-V packages to v5 format

# Source and destination folders

$Source = “Y:\Packages”

$Dest = “Y:\Packages.v5”

# Test legacy packages and convert those without errors to the new format

Get-ChildItem -Path $Source | Test-LegacyAppvPackage | Where-Object {$_.Errors.Count -eq 0 } | ConvertFrom-LegacyAppvPackage -Target $Dest

# Move packages and related files to a sub-folder per-package

$Packages = Get-ChildItem -Path $Dest -Filter “*.appv*”

foreach ($Package in $Packages) {

    $Name = $Package.Name.substring(0,($Package.Name.length – 5))

    $PackageItems = Get-ChildItem -Path $Dest -Filter “$Name*”

    New-Item -Path $Dest\$Name -Type Directory

    For ($n=0; $n -le $PackageItems.Count -1; $n++) { Move-Item $PackageItems[$n].FullName $Dest\$Name }

}

 

 

 

Leave a Reply

Your email address will not be published.