Align unified Companion installer with 1.0.0.14 payload
This commit is contained in:
parent
9e313f1abe
commit
64c55e2a1a
@ -13,7 +13,7 @@ $repo=(Resolve-Path (Join-Path $PSScriptRoot '..\..\..')).Path
|
||||
if(!$ExpectedSourceCommit){$ExpectedSourceCommit=(& git -C $repo rev-parse HEAD).Trim();if($LASTEXITCODE -ne 0){throw 'Cannot read the exact setup source revision.'}}
|
||||
if($ExpectedSourceCommit -notmatch '^[0-9a-f]{40}$' -or $package.version -ne $release.version -or $package.commit -ne $ExpectedSourceCommit){throw 'Release version or exact package source SHA does not match the requested build.'}
|
||||
Invoke-Checked git @('-C',$repo,'merge-base','--is-ancestor',$release.atlasBaseline,$package.commit)
|
||||
if($release.productCode -in @($release.baselineProductCode,'{0B1E8E22-FCF5-4D9C-99A1-5D0F4BD3210C}') -or $release.upgradeCode -ne '{641A087B-9779-458C-B290-BCBBAD49319A}'){throw 'Version13 requires a new major-upgrade ProductCode and the established UpgradeCode.'}
|
||||
if($release.productCode -in @($release.baselineProductCode,'{0B1E8E22-FCF5-4D9C-99A1-5D0F4BD3210C}','{A5831E49-6675-4BCA-9A3D-E03C992F4A13}') -or $release.upgradeCode -ne '{641A087B-9779-458C-B290-BCBBAD49319A}'){throw 'This release requires a new major-upgrade ProductCode and the established UpgradeCode.'}
|
||||
foreach($relative in @('PlotDirector.WordAddIn.dll','Agent\PlotDirector.Companion.Agent.exe')){
|
||||
if([Diagnostics.FileVersionInfo]::GetVersionInfo((Join-Path $PackagePath $relative)).FileVersion -ne $release.version){throw "Wrong application bytes/version: $relative"}
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# Complete per-user Windows installer — version13 candidate
|
||||
# Complete per-user Windows installer — version14 candidate
|
||||
|
||||
Run **PlotDirectorCompanionSetup.exe** from normal File Explorer after closing Word.
|
||||
It contains the MSI and both application components; no adjacent payload folder is
|
||||
needed. `Release.json` deliberately selects application **1.0.0.13**, MSI **1.0.13**,
|
||||
and Atlas baseline `73ae3140e0be5efd2ca8fff60d3a301788d3b206`. The exact clean
|
||||
needed. `Release.json` deliberately selects application **1.0.0.14**, MSI **1.0.14**,
|
||||
and Atlas baseline `9e313f1abec8cd3b4797edf6a32ad5b43a360455`. The exact clean
|
||||
build SHA must match `package.json` and `-ExpectedSourceCommit` (defaults to HEAD).
|
||||
This is a packaging candidate, not a claim of installed Windows acceptance.
|
||||
|
||||
@ -26,9 +26,9 @@ produce a specific error; they are not installed or repaired automatically.
|
||||
|
||||
## Installation contract
|
||||
|
||||
- Version13 uses ProductCode `{A5831E49-6675-4BCA-9A3D-E03C992F4A13}` with
|
||||
- Version14 uses ProductCode `{AB41F7C2-328C-4CEE-A75F-404160ABE4DD}` with
|
||||
the established UpgradeCode. Its transactional older-product range includes both
|
||||
version10 and version12; same-version13 uses the existing maintenance path.
|
||||
versions 10 through 13; same-version14 uses the existing maintenance path.
|
||||
Version12-specific notes below describe the preserved historical correction.
|
||||
- Before registration/VSTO/MSI changes, setup stops only the exact installed tray
|
||||
executable in this session, holds its existing singleton lock against restart,
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
{
|
||||
"version": "1.0.0.13",
|
||||
"msiVersion": "1.0.13",
|
||||
"productCode": "{A5831E49-6675-4BCA-9A3D-E03C992F4A13}",
|
||||
"version": "1.0.0.14",
|
||||
"msiVersion": "1.0.14",
|
||||
"productCode": "{AB41F7C2-328C-4CEE-A75F-404160ABE4DD}",
|
||||
"upgradeCode": "{641A087B-9779-458C-B290-BCBBAD49319A}",
|
||||
"atlasBaseline": "73ae3140e0be5efd2ca8fff60d3a301788d3b206",
|
||||
"atlasBaseline": "9e313f1abec8cd3b4797edf6a32ad5b43a360455",
|
||||
"baselineProductCode": "{98F46939-764D-407F-BD1F-1D88315D010A}",
|
||||
"baselineSetupSha256": "9526E3781EB2EF9936132786E1E2242633349933A553E93E7A7D0B038160A7FF"
|
||||
}
|
||||
|
||||
@ -42,6 +42,7 @@ $sid=[Security.Principal.WindowsIdentity]::GetCurrent().User.Value
|
||||
$fixture=[CompanionInstalledProduct]::new();$fixture.ProductCode=$release.baselineProductCode;$fixture.Context=2;$fixture.UserSid=$sid;$fixture.Version='1.0.10'
|
||||
[CompanionInstallerInventory]::RequireCurrentUser(@($fixture),$release.msiVersion);$checks.Add('Native context guard accepts the existing current-user version10 upgrade')
|
||||
$fixture.Version='1.0.12';[CompanionInstallerInventory]::RequireCurrentUser(@($fixture),$release.msiVersion);$checks.Add('Native context guard accepts the working current-user version12 upgrade')
|
||||
$fixture.Version='1.0.13';[CompanionInstallerInventory]::RequireCurrentUser(@($fixture),$release.msiVersion);$checks.Add('Native context guard accepts the working current-user version13 upgrade')
|
||||
foreach($test in @('machine','foreign-user','newer-version')){
|
||||
$fixture.Context=2;$fixture.UserSid=$sid;$fixture.Version='1.0.10'
|
||||
switch($test){'machine'{$fixture.Context=4};'foreign-user'{$fixture.UserSid='S-1-5-18'};'newer-version'{$fixture.Version='1.0.'+(([version]$release.msiVersion).Build+1)}}
|
||||
|
||||
@ -44,7 +44,7 @@ foreach($scenario in @(@{name='version10 advertised-feature major upgrade';regis
|
||||
Assert-Upgrade ($properties -match '(^| )ADDLOCAL=Complete( |$)' -and $properties -match 'REINSTALLMODE=vamus' -and $properties -notmatch 'ADVERTISE=') "Compiled bootstrapper requests local files: $($scenario.name)"
|
||||
Assert-Upgrade (($properties -match 'REINSTALL=ALL') -eq [bool]$scenario.registered) "Compiled bootstrapper chooses correct repair mode: $($scenario.name)"
|
||||
}
|
||||
foreach($versions in @(@{word='1.0.0.10';agent='1.0.0.10'},@{word='1.0.0.12';agent='1.0.0.12'},@{word=$release.version;agent='1.0.0.10'},@{word='1.0.0.10';agent=$release.version})){
|
||||
foreach($versions in @(@{word='1.0.0.10';agent='1.0.0.10'},@{word='1.0.0.12';agent='1.0.0.12'},@{word='1.0.0.13';agent='1.0.0.13'},@{word=$release.version;agent='1.0.0.10'},@{word='1.0.0.10';agent=$release.version})){
|
||||
$message=$null;try{$policy.GetMethod('VerifyVersions').Invoke($null,@($release.version,$versions.word,$versions.agent))}catch{$message=$_.Exception.GetBaseException().Message}
|
||||
Assert-Upgrade ($message.Contains('Expected '+$release.version) -and $message.Contains('Word add-in detected '+$versions.word) -and $message.Contains('tray executable detected '+$versions.agent)) "Strict check rejects and diagnoses old/mixed files: $($versions.word) / $($versions.agent)"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user