Centennial Project–Premiers Tests


Bon, une fois installé, et vos sources applicatives pretes à etre “repackagées “ au format APPX, voila ce que la documentation MSDN nous dis..

par exemple pour un MSI (IsoCreator.msi) voila la syntaxe préconisée:

image

et hop….voila le transcript des logs, en mode verbose, mais qui montre bien les différentes étapes par lequel le systeme passe pour effectuer la conversion:

 

PS C:\Users\pierre.CORP\Documents\_ISO\Centennial\DesktopAppConverter> .\desktopAppConverter.ps1 -Installer c:\tmp\isocreatormsi\isocreator.msi -InstallerArguments « /q » -Destination C:\tmp -PackageName « ISOCreator » -publisher « CN=TEST » -version 0.0.0.1 -MakeAppX -verbose

COMMENTAIRES : Log file can be found in C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\logs\DesktopAppConverter.log

COMMENTAIRES : DesktopAppConverter Preview 0.1.24.release_2016-08-02_22-22_a0b6665453da6f47b69f377ce6348d9b710df37b

COMMENTAIRES : ————————————————–

Checking Prerequisites

COMMENTAIRES : Checking Windows Version to ensure it meets minimum requirements

COMMENTAIRES : Minimum Windows Version requirement is met.

COMMENTAIRES : Testing for required feature enabled…

COMMENTAIRES : Version de l’image cible 10.0.14393.0

COMMENTAIRES : Required feature is enabled. Checking if reboot is required

COMMENTAIRES : Version de l’image cible 10.0.14393.0

COMMENTAIRES : Required feature is enabled.

COMMENTAIRES : Checking network config…

COMMENTAIRES : Checking virtual network: « Windows Desktop App Converter Network »

COMMENTAIRES : Using virtual network: « Windows Desktop App Converter Network »

COMMENTAIRES : Checking if Microsoft Windows 10 SDK is installed

COMMENTAIRES : Checking if MAKEAPPX.exe is available in the Microsoft Windows 10 SDK tools

COMMENTAIRES : Checking if SIGNTOOL.exe is available in the Microsoft Windows 10 SDK tools

COMMENTAIRES : Checking Windows SDK version to ensure it meets minimum requirements.

COMMENTAIRES : The installed Windows SDK version is supported (10.0.14393.33)

COMMENTAIRES : ————————————————–

Initializing AppxManifest.xml

COMMENTAIRES : Creating working directory structure at C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0

COMMENTAIRES : Attempting to set appx manifest property ‘PackageName’ to ‘ISOCreator’.

COMMENTAIRES : Attempting to set appx manifest property ‘Publisher’ to ‘CN=TEST’.

COMMENTAIRES : Attempting to set appx manifest property ‘Version’ to ‘0.0.0.1’.

COMMENTAIRES : No value provided for appx manifest property ‘PackagePublisherDisplayName’. Attempting to set it to the

default value ‘CN=TEST’

COMMENTAIRES : Attempting to set appx manifest property ‘PackagePublisherDisplayName’ to ‘CN=TEST’.

COMMENTAIRES : No value provided for appx manifest property ‘PackageDisplayName’. Attempting to set it to the default

value ‘ISOCreator’

COMMENTAIRES : Attempting to set appx manifest property ‘PackageDisplayName’ to ‘ISOCreator’.

COMMENTAIRES : No value provided for appx manifest property ‘AppDescription’. Attempting to set it to the default value

‘ISOCreator’

COMMENTAIRES : Attempting to set appx manifest property ‘AppDescription’ to ‘ISOCreator’.

COMMENTAIRES : No value provided for appx manifest property ‘AppDisplayName’. Attempting to set it to the default value

‘ISOCreator’

COMMENTAIRES : Attempting to set appx manifest property ‘AppDisplayName’ to ‘ISOCreator’.

COMMENTAIRES : No value provided for appx manifest property ‘AppId’. Attempting to set it to the default value

‘ISOCreator’

COMMENTAIRES : Attempting to set appx manifest property ‘AppId’ to ‘ISOCreator’.

COMMENTAIRES : ————————————————–

Validating Input

COMMENTAIRES : Expanded base image(s) found at C:\ProgramData\Microsoft\Windows\Images. Attempting to choose the most

recent one compatible with your version of Windows.

COMMENTAIRES : Testing if expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is compatible

with your OS

COMMENTAIRES : Your Windows version was determined to be 10.0.14393.0

COMMENTAIRES : Attempting to determine Windows version for expanded base image at

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393

COMMENTAIRES : Attempting to determine version from version file

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json if it exists

COMMENTAIRES : Version found in ‘C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json’ is: 10.0.14393.0

COMMENTAIRES : C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows version 10.0.14393.0

COMMENTAIRES : The expanded base image version was determined to be 10.0.14393.0

COMMENTAIRES : Ignoring revision numbers

COMMENTAIRES : Expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 IS compatible with your

OS

COMMENTAIRES : Expanded base image with compatible Windows version found:

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393

COMMENTAIRES : Using expanded base image: C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393

COMMENTAIRES : Checking that the ExpandedBaseImage ‘C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393’ is valid

COMMENTAIRES : Testing if expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is compatible with your OS

COMMENTAIRES : Your Windows version was determined to be 10.0.14393.0

COMMENTAIRES : Attempting to determine Windows version for expanded base image at

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393

COMMENTAIRES : Attempting to determine version from version file

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json if it exists

COMMENTAIRES : Version found in ‘C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json’ is: 10.0.14393.0

COMMENTAIRES : C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows version 10.0.14393.0

COMMENTAIRES : The expanded base image version was determined to be 10.0.14393.0

COMMENTAIRES : Ignoring revision numbers

COMMENTAIRES : Expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 IS compatible with your

OS

COMMENTAIRES : Attempting to determine Windows version for expanded base image at

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393

COMMENTAIRES : Attempting to determine version from version file

C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json if it exists

COMMENTAIRES : Version found in ‘C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393\version.json’ is: 10.0.14393.0

COMMENTAIRES : C:\ProgramData\Microsoft\Windows\Images\BaseImage-14393 is of windows version 10.0.14393.0

COMMENTAIRES : Ensuring the provided Installer (c:\tmp\isocreatormsi\isocreator.msi) exists

COMMENTAIRES : Checking if Destination (C:\tmp\ISOCreator) exists

COMMENTAIRES : C:\tmp\ISOCreator does not exist. Creating it…

COMMENTAIRES : Ensuring that this script has write permissions to C:\tmp\ISOCreator…

COMMENTAIRES : Checking that installer is not sibling to working directory

COMMENTAIRES : ————————————————–

Setting up Conversion Environment

COMMENTAIRES : Copying contents of C:\tmp\isocreatormsi to

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\shared\installer to be shared with isolated environment

COMMENTAIRES : Copying KnownFolderDump.exe and its dependencies to

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\shared\dac\bin

COMMENTAIRES : ————————————————–

Running Installer in Isolated Environment

COMMENTAIRES : No installer valid exit codes specified. Using defaults: 0 1641 3010

COMMENTAIRES : Replace any occurence of <log_folder> in -InstallerArguments with C:\shared\logs

COMMENTAIRES : Creating Isolated Environment

COMMENTAIRES : Starting the Isolated Environment

COMMENTAIRES : Logging known folder locations in Isolated Environment

COMMENTAIRES : Command line: « C:\shared\dac\bin\KnownFolderDump.exe » « C:\shared\dac\out\KnownFolders.xml »

COMMENTAIRES : Waiting for known folder mapping process to finish in Isolated Environment

COMMENTAIRES : Running installer command in Isolated Environment

COMMENTAIRES : Command line: « C:\WINDOWS\system32\msiexec.exe » /q DISABLEADVTSHORTCUTS=1 INSTALLSTARTMENUSHORTCUTS=1

/quiet /norestart /i « C:\shared\installer\isocreator.msi » /l*v « C:\shared\logs\install_isocreator.log »

COMMENTAIRES : Waiting for installer process to complete inside Isolated Environment

COMMENTAIRES : Stopping the Isolated Environment

COMMENTAIRES : Exporting changes made by your installer inside the Isolated Environment

COMMENTAIRES : Disposing of the Isolated Environment

COMMENTAIRES : Moving any logs in C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\shared\logs to

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\logs

COMMENTAIRES : Moving any dac output in C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\shared\dac\out to

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\output\dac

COMMENTAIRES : Cleaning up by removing isolated environment shared folder

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\shared

COMMENTAIRES : Isolated Install Complete. Moving output from

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\output\export to

C:\DesktopAppConverter\ba752e7e-fe10-4961-8377-d054cd0793b0\output\packageRoot

COMMENTAIRES : Checking installer exit code 0 to ensure it is indicative of success

COMMENTAIRES : Isolated Installer Run Complete!

COMMENTAIRES : ————————————————–

Preparing Virtual File System

COMMENTAIRES : Begin Convert-Files…

COMMENTAIRES : Renaming ‘Files’ directory to ‘VFS’…

COMMENTAIRES : Removing VFS noise…

COMMENTAIRES : Getting all files under C:\vfs0

COMMENTAIRES : Processing 275 virtual file system entries

COMMENTAIRES : ————————————————–

Preparing known folder and application directory layout

COMMENTAIRES : AppExecutable param was not specified. Attempting to discover it by searching the VFS for a Start Menu

shortcut.

COMMENTAIRES : Attempting to determine application executable by finding shortcut (.lnk) in VFS…

COMMENTAIRES : Searching for application shortcuts…

COMMENTAIRES : Checking shortcut found at ‘C:\vfs0\Users\Public\Desktop\IsoCreator.exe.lnk’ for executable…

COMMENTAIRES : Found candidate executable: C:\Program Files (x86)\Bunny-Wabbit\ISO Creator 1.0\IsoCreator.exe

COMMENTAIRES : Checking shortcut found at ‘C:\vfs0\ProgramData\Microsoft\Windows\Start Menu\Programs\ISO Creator

1.0\IsoCreator.exe.lnk’ for executable…

COMMENTAIRES : Found candidate executable: C:\Program Files (x86)\Bunny-Wabbit\ISO Creator 1.0\IsoCreator.exe

COMMENTAIRES : A shortcut was found in the VFS that targets \Program Files (x86)\Bunny-Wabbit\ISO Creator

1.0\IsoCreator.exe. Testing that path to ensure the executable is there.

COMMENTAIRES : The executable path targeted by the discovered shortcut (\Program Files (x86)\Bunny-Wabbit\ISO Creator

1.0\IsoCreator.exe) is a valid path.

COMMENTAIRES : AppExecutable was determined to be ‘C:\Program Files (x86)\Bunny-Wabbit\ISO Creator 1.0\IsoCreator.exe’

COMMENTAIRES : AppInstallPath was not specified. Trying to determine the AppInstallPath from AppExecutable path.

COMMENTAIRES : Checking that the AppInstallPath (C:\Program Files (x86)\Bunny-Wabbit) exists in VFS

COMMENTAIRES : Using C:\Program Files (x86)\Bunny-Wabbit as AppInstallPath

AVERTISSEMENT : DesktopAppConverter : warning ‘W_ANYCPU_FORCING_64_BIT_APPLICATION’: Managed executable

‘C:\vfs0\Program Files (x86)\Bunny-Wabbit\ISO Creator 1.0\IsoCreator.exe’ can run as a 32-bit or 64-bit application.

Forcing 64-bit application package for converter compatibility. Use the ‘-PackageArch x86’ command line parameter to create a 32-bit application package instead.

COMMENTAIRES : Moving contents from « C:\vfs0\Program Files (x86)\Bunny-Wabbit » to « C:\pkg0 »

COMMENTAIRES : Moving contents from « C:\vfs0\WINDOWS\SysWoW64 » to « C:\vfs0\SystemX86 »

COMMENTAIRES : Moving contents from « C:\vfs0\WINDOWS\system32 » to « C:\vfs0\SystemX64 »

COMMENTAIRES : Moving contents from « C:\vfs0\ProgramData » to « C:\vfs0\Common AppData »

COMMENTAIRES : Moving contents from « C:\vfs0\Program Files (x86) » to « C:\vfs0\ProgramFilesX86 »

COMMENTAIRES : ————————————————–

Preparing Virtual Registry

COMMENTAIRES : Begin Convert-Registry…

COMMENTAIRES : Converting Registry Hive Deltas to a ‘Registry.dat’ file

COMMENTAIRES : ————————————————–

Finalizing AppxManifest.xml

COMMENTAIRES : Searching Registry.dat for registered file type associations…

COMMENTAIRES : No file type associations to add.

COMMENTAIRES : Searching Registry.dat for registered protocols…

COMMENTAIRES : No protocol associations to add.

COMMENTAIRES : Attempting to determine application startup shortcuts by finding shortcut files (.lnk) in VFS…

COMMENTAIRES : Could not find any startup task shortcuts.

COMMENTAIRES : Searching Registry.dat for registered startup tasks…

COMMENTAIRES : No startup tasks to add.

COMMENTAIRES : Searching Registry.dat for registered app execution aliases…

COMMENTAIRES : No app execution aliases to add.

COMMENTAIRES : Targeting appx manifest for x64 processor architecture.

COMMENTAIRES : ————————————————–

Checking for Unsupported COM Usage

COMMENTAIRES : Begin Check-ComUsage…

COMMENTAIRES : Saving manifest…

COMMENTAIRES : ————————————————–

Preparing Final Output

COMMENTAIRES : Removing unneeded files and empty folders…

COMMENTAIRES : Copying placeholder Assets into package…

COMMENTAIRES : ————————————————–

Making Final Appx Package

COMMENTAIRES : Appx creation complete. Find it at C:\tmp\ISOCreator\ISOCreator.appx

COMMENTAIRES : Moving loose package files to C:\tmp\ISOCreator\PackageFiles

COMMENTAIRES : Conversion complete. Your converted application is located at C:\tmp\ISOCreator.

Warning Summary:

W_ANYCPU_FORCING_64_BIT_APPLICATION

Managed executable ‘C:\vfs0\Program Files (x86)\Bunny-Wabbit\ISO Creator 1.0\IsoCreator.exe’ can run as a 32-bit or 64-bit application. Forcing 64-bit application package for converter compatibility. Use the ‘-PackageArch x86’ command line parameter to create a 32-bit application package instead.

Output Paths:

Name Value

—- —–

CertPath

PackageFilesPath C:\tmp\ISOCreator\PackageFiles

PackagePath C:\tmp\ISOCreator\ISOCreator.appx

LogFilesPath C:\tmp\ISOCreator\logs

PSC:\Users\pierre.CORP\Documents\_ISO\Centennial\DesktopAppConverter>

La création se lance…et finit par rendre la main en indiquant les répertoires de création des packages convertis…ici C:\tmp\ISOCreator\ISOCreator.appx

image

 

Et c’est donc ce package que l’on va pouvoir ajouter dans un provisionning package pour remplacer son application native initiale…

Si l’on double clique sur le package:

image

erreur de certificat, ce qui est normal;

image

le CN indiqué dans la syntaxe faisait mention d’un CN=TEST, qui bien sur n’est pas fonctionnel ici, il faudra regénérer un package soit avec un certificat de votre PKI interne, soit en utilisant Signtool.exe du SDK de windows.

Mais le process de conversion fonctionne apparement bien…à valider sur un environnement complet afin de pouvoir tester les limites de cet outil.

Bonne Nuit à tous,

Pierre.

A propos Red Kaffe

IT Trainer and Consultant on Microsoft Technologies. Windows Server and Client, Service Center 2012, WSUS/MDT/ADK/WAIK, SBS 2008/2011, Office 365, etc. Fully dedicated to support and train my customers...
Cet article, publié dans ADK, centennial, Deployment, Formation, ICD, MDT, Scripting, Storage, est tagué , , , , , , , , . Ajoutez ce permalien à vos favoris.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s