This commit is contained in:
MikeBlodge 2018-08-21 12:12:06 -07:00
parent d87bac645a
commit 442c817741

View File

@ -23,7 +23,7 @@ The MSIX Packaging Tool (Preview) is now available to install from the Microsoft
- A valid MSA alias (to access the app from the Store) - A valid MSA alias (to access the app from the Store)
## What's new ## What's new
v1.2018.820.0 v1.2018.821.0
- Command Line Support - Command Line Support
- Ability to use existing local virtual machines for packaging environment. - Ability to use existing local virtual machines for packaging environment.
- Ability to cross check publisher information in the manifest with a signing certificate to avoid signing issues. - Ability to cross check publisher information in the manifest with a signing certificate to avoid signing issues.
@ -71,65 +71,99 @@ Examples:
```xml ```xml
<MsixPackagingToolTemplate <MsixPackagingToolTemplate
xmlns="http://schemas.microsoft.com/appx/msixpackagingtool/template/2018"> xmlns="http://schemas.microsoft.com/appx/msixpackagingtool/template/2018">
<Settings <Settings
AllowTelemetry="true" AllowTelemetry="true"
ApplyAllPrepareComputerFixes="true" ApplyAllPrepareComputerFixes="true"
GenerateCommandLineFile="true" GenerateCommandLineFile="true"
AllowPromptForPassword="false" > AllowPromptForPassword="false" >
<ExclusionItems> <ExclusionItems>
<FileExclusion ExcludePath="[{Cookies}]" /> <FileExclusion ExcludePath="[{CryptoKeys}]" />
<FileExclusion ExcludePath="[{History}]" /> <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Crypto" />
<FileExclusion ExcludePath="[{Cache}]" /> <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Search\Data" />
<FileExclusion ExcludePath="[{Personal}]" /> <FileExclusion ExcludePath="[{Cookies}]" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Cryptography" /> <FileExclusion ExcludePath="[{History}]" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Cryptography" /> <FileExclusion ExcludePath="[{Cache}]" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware" /> <FileExclusion ExcludePath="[{Personal}]" />
</ExclusionItems> <FileExclusion ExcludePath="[{Profile}]\Local Settings" />
</Settings> <FileExclusion ExcludePath="[{Profile}]\NTUSER.DAT.LOG1" />
<FileExclusion ExcludePath="[{Profile}]\ NTUSER.DAT.LOG2" />
<FileExclusion ExcludePath="[{Recent}]" />
<FileExclusion ExcludePath="[{Windows}]\debug" />
<FileExclusion ExcludePath="[{Windows}]\Logs\CBS" />
<FileExclusion ExcludePath="[{Windows}]\Temp" />
<FileExclusion ExcludePath="[{Windows}]\WinSxS\ManifestCache" />
<FileExclusion ExcludePath="[{Windows}]\WindowsUpdate.log" />
<FileExclusion ExcludePath="[{AppVPackageDrive}]\$Recycle.Bin " />
<FileExclusion ExcludePath="[{AppVPackageDrive}]\System Volume Information" />
<FileExclusion ExcludePath="[{AppData}]\Microsoft\AppV" />
<FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Microsoft Security Client" />
<FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Microsoft Antimalware" />
<FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Windows Defender" />
<FileExclusion ExcludePath="[{ProgramFiles}]\Microsoft Security Client" />
<FileExclusion ExcludePath="[{ProgramFiles}]\Windows Defender" />
<FileExclusion ExcludePath="[{Local AppData}]\Temp" />
<PrepareComputer <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Cryptography" />
DisableDefragService="true" <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Cryptography" />
DisableWindowsSearchService="true" <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware" />
DisableSmsHostService="true" <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware Setup" />
DisableWindowsUpdateService ="true"/> <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Security Client" />
<!--Note: this section takes precedence over the Settings::ApplyAllPrepareComputerFixes attribute --> <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Antimalware" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Streams" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\AppV" />
<RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\AppV" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\AppV" />
<RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\AppV" />
</ExclusionItems>
</Settings>
<SaveLocation Path="C:\users\user\Desktop" />
<Installer <PrepareComputer
Path="C:\MyAppInstaller.msi" DisableDefragService="true"
Arguments="/quiet" DisableWindowsSearchService="true"
InstallLocation="C:\Program Files\MyAppInstallationLocation" /> DisableSmsHostService="true"
DisableWindowsUpdateService ="true"/>
<!--Note: this section takes precedence over the Settings::ApplyAllPrepareComputerFixes attribute -->
<VirtualMachine Name="vmname" Username="myusername" /> <SaveLocation Path="C:\users\user\Desktop" />
<PackageInformation <Installer
PackageName="MyAppPackageNAme" Path="C:\MyAppInstaller.msi"
PackageDisplayName="MyApp Display Name" Arguments="/quiet"
PublisherName="CN=MyPublisher" InstallLocation="C:\Program Files\MyAppInstallLocation" />
PublisherDisplayName="MyPublisher Display Name"
Version="1.1.0.0"
MainPackageNameForModificationPackage="MainPackageIdentityName">
<Applications> <VirtualMachine Name="vmname" Username="vmusername" />
<Application
Id="App1"
Description="MyApp"
DisplayName="My App"
ExecutableName="MyApp.exe"/>
<!-- You can specify multiple application parameters for different executables in your package -->
</Applications>
<Capabilities> <PackageInformation
<Capability Name="runFullTrust" /> PackageName="MyAppPackageName"
</Capabilities> PackageDisplayName="MyApp Display Name"
PublisherName="CN=MyPublisher"
PublisherDisplayName="MyPublisher Display Name"
Version="1.1.0.0"
MainPackageNameForModificationPackage="MainPackageIdentityName">
</PackageInformation> <Applications>
</MsixPackagingToolTemplate> <Application
Id="MyApp1"
Description="MyApp"
DisplayName="My App"
ExecutableName="MyApp.exe"/>
</Applications>
<Capabilities>
<Capability Name="runFullTrust" />
</Capabilities>
</PackageInformation>
</MsixPackagingToolTemplate>
``` ```