Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
86c0a4d
ci: inspect desktop release prerequisites on native runners
tianxiaochannel-oss88 Oct 23, 2026
c3b729b
ci: build complete unsigned desktop candidates on native runners
tianxiaochannel-oss88 Oct 23, 2026
3283495
fix: bind native release inputs and preserve Windows source checksums
tianxiaochannel-oss88 Oct 23, 2026
fa84707
Merge remote-tracking branch 'origin/main' into codex/desktop-release…
tianxiaochannel-oss88 Oct 23, 2026
5b76739
fix: recover interrupted model downloads across native release hosts
tianxiaochannel-oss88 Oct 23, 2026
d52180c
fix: keep unrelated labels out of the desktop build queue
tianxiaochannel-oss88 Oct 23, 2026
5022281
fix: tolerate concurrent recovery after model owner release
tianxiaochannel-oss88 Oct 23, 2026
7040938
fix: use the fixed macOS ad-hoc signing environment
tianxiaochannel-oss88 Oct 23, 2026
8345df1
fix: recover model cache locks under Windows sharing contention
tianxiaochannel-oss88 Oct 23, 2026
f1c9157
fix: install the formatter required by native package verification
tianxiaochannel-oss88 Oct 23, 2026
45cd128
fix(release): preserve security patch bytes on Windows checkouts
tianxiaochannel-oss88 Oct 23, 2026
721a87b
fix(gstack): canonicalize TestSavant compiler paths on Windows
tianxiaochannel-oss88 Oct 23, 2026
91c1f3a
Merge commit '956e60978d652b34ebc04d8c92f920811156731d' into codex/de…
tianxiaochannel-oss88 Oct 23, 2026
3445cec
fix(release): retain nested macOS packaging failure diagnostics
tianxiaochannel-oss88 Oct 23, 2026
f9bf1bb
fix(gstack): admit canonical Windows native loader paths
tianxiaochannel-oss88 Oct 23, 2026
81eae70
test(release): preload diagnostics with a portable file URL
tianxiaochannel-oss88 Oct 23, 2026
161283d
fix(release): separate materials and resolve Windows native probe paths
tianxiaochannel-oss88 Oct 23, 2026
d70eed6
test(release): normalize native ASAR listing separators
tianxiaochannel-oss88 Oct 23, 2026
1f0d3d0
fix(release): bind distribution archives and installer plugin sources
tianxiaochannel-oss88 Oct 23, 2026
1247f04
Merge remote-tracking branch 'origin/main' into codex/desktop-release…
tianxiaochannel-oss88 Oct 23, 2026
cd200ef
fix(release): rebind reviewed mainline Office source closure
tianxiaochannel-oss88 Oct 23, 2026
546381d
test(release): extract ASAR entries with native paths
tianxiaochannel-oss88 Oct 23, 2026
2071063
fix(release): preserve authenticated resources and reviewed catalog o…
tianxiaochannel-oss88 Oct 23, 2026
4fd4cc3
fix(release): publish Windows staging directories without replacement
tianxiaochannel-oss88 Oct 23, 2026
4fb3d1b
fix(release): complete native browser publication and platform admission
tianxiaochannel-oss88 Oct 23, 2026
7940b9d
fix(ci): build Core before native packaging contract imports
tianxiaochannel-oss88 Oct 24, 2026
5da619f
test(gstack): provide explicit interpreter in admission fixtures
tianxiaochannel-oss88 Oct 24, 2026
bb8df19
fix(release): store original notices without executable bundle direct…
tianxiaochannel-oss88 Oct 24, 2026
f56a33d
feat(gstack): acquire verified browser into owned cache on first use
tianxiaochannel-oss88 Oct 24, 2026
b013238
fix(gstack): retain acquisition deadline through idle response cleanup
tianxiaochannel-oss88 Oct 24, 2026
0efd179
fix(release): handle expired downloads and foreign APFS inventory
tianxiaochannel-oss88 Oct 24, 2026
713b47d
chore(release): retain hosted DMG inventory observations
tianxiaochannel-oss88 Oct 24, 2026
10ce57b
fix(release): preserve license bytes and recognize kernel DMG inventory
tianxiaochannel-oss88 Oct 24, 2026
d1aafd3
fix(release): bind Windows Rust builds to the MSVC linker
tianxiaochannel-oss88 Oct 24, 2026
f9e0f69
chore(release): retain bounded signature command failure evidence
tianxiaochannel-oss88 Oct 24, 2026
0888cd9
ci(release): isolate native model-cache race diagnostics
tianxiaochannel-oss88 Oct 24, 2026
282722a
ci(release): capture a bounded native lock-race reproduction sample
tianxiaochannel-oss88 Oct 24, 2026
980c228
chore(release): observe rejected lock identities without changing nor…
tianxiaochannel-oss88 Oct 24, 2026
8000e40
test(release): stress real orphan recovery with independent writers
tianxiaochannel-oss88 Oct 24, 2026
4c5418a
fix(release): recover obsolete NTFS lock observations safely
tianxiaochannel-oss88 Oct 24, 2026
9194267
fix(release): handle obsolete native paths without relaxing package c…
tianxiaochannel-oss88 Oct 24, 2026
2085749
fix(release): admit Windows identity paths and isolate browser smoke …
tianxiaochannel-oss88 Oct 24, 2026
881efa9
fix(release): materialize Electron and align strict verification budgets
tianxiaochannel-oss88 Oct 24, 2026
e8fa578
test(release): reproduce plugin extraction with the native NSIS compiler
tianxiaochannel-oss88 Oct 25, 2026
3d8f17f
fix(release): verify Windows NSIS with a pinned full extractor
tianxiaochannel-oss88 Oct 25, 2026
df05aaf
test(release): isolate native installer checks and probe stock long p…
tianxiaochannel-oss88 Oct 25, 2026
d98aa20
test(release): wire desktop-native fixtures and installer path diagno…
tianxiaochannel-oss88 Oct 25, 2026
f77a9c8
test(release): verify embedded long-path payload before native install
tianxiaochannel-oss88 Oct 25, 2026
c34ca34
fix(release): preserve long-path Windows installer members
tianxiaochannel-oss88 Oct 25, 2026
2253e74
test(release): locate long-path loss across native installer stages
tianxiaochannel-oss88 Oct 25, 2026
9f0906f
fix(release): prefix NSIS staging paths for long members
tianxiaochannel-oss88 Oct 25, 2026
1c97482
test(release): verify production long-path install and upgrade
tianxiaochannel-oss88 Oct 25, 2026
dac3473
test(release): force failed copies and trace upgrade rename failures
tianxiaochannel-oss88 Oct 25, 2026
6be9121
test(release): preserve NSIS branches around failure diagnostics
tianxiaochannel-oss88 Oct 25, 2026
eef5e35
fix(release): retain long members through upgrade and fail incomplete…
tianxiaochannel-oss88 Oct 25, 2026
7702ebb
build(release): bind reviewed installer long-path adaptation
tianxiaochannel-oss88 Oct 25, 2026
588cda5
test(release): expose native installer registration failures
tianxiaochannel-oss88 Oct 25, 2026
354b853
fix(release): verify stock Windows installation registration
tianxiaochannel-oss88 Oct 25, 2026
a244d5d
test(release): isolate Windows browser entry lifecycle
tianxiaochannel-oss88 Oct 25, 2026
f9cc792
test(release): compare native Bun entrypoint representations
tianxiaochannel-oss88 Oct 25, 2026
9c3a4e5
fix(gstack): explicitly activate the packaged browser CLI entry
tianxiaochannel-oss88 Oct 25, 2026
291e06d
fix(gstack): reobserve canonical model locks after NTFS file ID reuse
tianxiaochannel-oss88 Oct 25, 2026
76bc6bc
test(release): isolate native contract files from competing workloads
tianxiaochannel-oss88 Oct 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Unified diffs require a single-space line to preserve blank context lines.
apps/desktop/resources/providers/cua-driver/*/patches/*/*.patch whitespace=-blank-at-eol
patches/*.patch whitespace=-blank-at-eol
patches/*.patch text eol=lf whitespace=-blank-at-eol

# Preserve the vendored upstream documentation bytes and recorded provenance.
packages/daemon/native/image-sanitizer/vendor/jpeg-decoder/src/decoder.rs whitespace=-blank-at-eol
# Unified diffs require a single-space line to preserve blank context lines.
packages/daemon/native/image-sanitizer/vendor/jpeg-decoder/strict-entropy.patch whitespace=-blank-at-eol

# Retain original upstream license bytes, including intentional trailing spaces.
apps/desktop/scripts/distribution/vendor-notices/NSIS-COPYING -text whitespace=-blank-at-eol
apps/desktop/scripts/distribution/vendor-notices/standard/*.txt -text whitespace=-blank-at-eol

# Codec dependency review checks original license SHA and exact notice text.
packages/daemon/native/image-sanitizer/THIRD_PARTY_LICENSES.txt -text whitespace=-blank-at-eol
packages/daemon/native/image-sanitizer/licenses/** -text whitespace=-blank-at-eol
packages/daemon/native/image-sanitizer/vendor/jpeg-decoder/LICENSE-MIT -text whitespace=-blank-at-eol
329 changes: 329 additions & 0 deletions .github/workflows/desktop-prerelease.yml

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions .github/workflows/installer-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Native installer contracts

on:
pull_request:
paths:
- scripts/release/verify-nsis-plugins.mjs
- scripts/release/nsis-extractor.mjs
- scripts/ci/desktop-bun-entry.test.mjs
- scripts/gstack/packaged-browse-build.mjs
- apps/desktop/tests/distribution-nsis-native.test.mjs
- apps/desktop/scripts/distribution/installer-builder.mjs
- apps/desktop/scripts/distribution/LingShell.nsh
- apps/desktop/scripts/distribution/vendor-notices/nsis-plugins/sources.json
- .github/workflows/installer-contracts.yml
workflow_dispatch:

permissions:
contents: read

concurrency:
group: installer-contracts-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
windows:
runs-on: windows-2025
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413
with:
version: 10.0.0
run_install: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: 22.22.1
cache: pnpm
- name: Install locked dependencies without build hooks
run: corepack pnpm install --frozen-lockfile --ignore-scripts
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: 1.4.4
- name: Check compiled browser entry lifecycle on the native host
shell: pwsh
run: |
$env:LING_BUN_ENTRY_PROBE_BINARY = (Get-Command bun).Source
node --test scripts/ci/desktop-bun-entry.test.mjs
- name: Check actual NSIS archive plug-in bytes on Windows
run: node --test apps/desktop/tests/distribution-nsis-native.test.mjs
43 changes: 43 additions & 0 deletions .github/workflows/model-cache-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Native model cache contracts

on:
pull_request:
paths:
- scripts/gstack/testsavant-model-*.mjs
- scripts/gstack/testsavant-model-pin.json
- .github/workflows/model-cache-contracts.yml
workflow_dispatch:

permissions:
contents: read

concurrency:
group: model-cache-contracts-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
windows:
runs-on: windows-2025
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: 22.22.1
- name: Verify model cache safety and bounded concurrent orphan recovery
shell: bash
run: |
set -euo pipefail
node --test scripts/gstack/testsavant-model-cache.test.mjs scripts/gstack/testsavant-model-state.test.mjs
node --input-type=module <<'NODE'
import { spawnSync } from "node:child_process";
for (let attempt = 1; attempt <= 20; attempt++) {
console.log(`Native orphan-lock recovery sample ${attempt}/20`);
const result = spawnSync(process.execPath, ["--test", "--test-name-pattern=^an empty orphaned lock",
"scripts/gstack/testsavant-model-cache.test.mjs"], { stdio: "inherit" });
if (result.error) throw result.error;
if (result.status !== 0) process.exit(result.status ?? 1);
}
NODE
8 changes: 8 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ targetRules = ["generic-api-key"]
paths = ['''(^|/)packages/localization/catalogs/[a-z]{2}-([A-Z]{2}|[0-9]{3})\.json$''']
regexTarget = "line"
regexes = ['''^\s*"(?:[^"\\]|\\.)+": "[a-f0-9]{64}",?\s*$''']

[[allowlists]]
description = "SHA-256 source-file review records, including paths containing auth or secret."
condition = "AND"
targetRules = ["generic-api-key"]
paths = ['''(^|/)native/office-local/reviewed-packaged-source-v1\.json$''']
regexTarget = "line"
regexes = ['''^\s*"packages/[^"\\]+\.ts": "[a-f0-9]{64}",?\s*$''']
1 change: 1 addition & 0 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"files": [
"dist/**/*",
"package.json",
"!dist/distribution{,/**/*}",
"!dist/office-local{,/**/*}",
"!dist/.office-local-next-*{,/**/*}",
"!**/node_modules/@ling-stack/browser-host/dist/native{,/**/*}",
Expand Down
49 changes: 32 additions & 17 deletions apps/desktop/scripts/cua-driver-electron-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
packageAuthorityInputFromEnvironment,
writeCuaDriverPackageAuthorityFiles,
} from "./cua-driver-package-runtime-policy.mjs";
import { prepareDistributionBuilder } from "./distribution/installer-builder.mjs";

const APP_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const CONFIG_PATH = resolve(APP_ROOT, "scripts/cua-driver-electron-builder.config.mjs");
Expand Down Expand Up @@ -213,24 +214,38 @@ export async function runCuaDriverElectronPackageCli(
export async function spawnElectronBuilder({ appRoot, args, environment }) {
// .cmd shims cannot be spawned directly on Windows without a shell.
// Use the installed CLI with this Node runtime and preserve the argv boundary.
const cliPath = require.resolve("electron-builder/cli.js");
return new Promise((settle, reject) => {
const child = spawn(process.execPath, [cliPath, ...args], {
cwd: appRoot,
env: environment,
shell: false,
stdio: "inherit",
windowsHide: true,
});
child.once("error", reject);
child.once("exit", (code, signal) => {
if (signal) {
reject(new Error(`electron_builder_signal:${signal}`));
return;
}
settle(code ?? 1);
let cliPath = require.resolve("electron-builder/cli.js");
let toolingRoot;
try {
if (args.includes("--win") && args.includes("nsis")
&& environment.LING_CUA_DRIVER_PACKAGE_PROVIDER !== "1"
&& (environment.LING_CUA_SIGNING_TIER ?? "unsigned_dev").trim() === "unsigned_dev") {
// The development installer keeps the stock upgrade/rollback machinery.
// Patch only private tooling, leaving shared dependencies and signed lanes intact.
toolingRoot = await mkdtemp(join(tmpdir(), "ling-distribution-builder-"));
const prepared = prepareDistributionBuilder({ desktopRoot: appRoot, outputRoot: toolingRoot });
cliPath = join(prepared.electronBuilderRoot, "cli.js");
}
return await new Promise((settle, reject) => {
const child = spawn(process.execPath, [cliPath, ...args], {
cwd: appRoot,
env: environment,
shell: false,
stdio: "inherit",
windowsHide: true,
});
child.once("error", reject);
child.once("exit", (code, signal) => {
if (signal) {
reject(new Error(`electron_builder_signal:${signal}`));
return;
}
settle(code ?? 1);
});
});
});
} finally {
if (toolingRoot) await rm(toolingRoot, { recursive: true, force: true });
}
}

function parseArgs(values) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function createDmgAttachmentCustody(input) {
let output;
try { output = await runCommand("/usr/bin/hdiutil", ["info", "-plist"], { timeoutMs: QUERY_TIMEOUT_MS }); }
catch (cause) { throw failure("info_unavailable", cause); }
return normalizeInventory(await convertPlist(output, runCommand));
return normalizeInventory(await convertPlist(output, runCommand), snapshotPath);
};
const association = inventory => {
const devices = new Set(binding?.entities.map(entity => entity.device) ?? []);
Expand Down Expand Up @@ -170,19 +170,26 @@ async function convertPlist(output, runCommand) {
return value;
}

function normalizeInventory(value) {
function normalizeInventory(value, snapshotPath) {
requireCondition(Object.hasOwn(value, "images") && Array.isArray(value.images)
&& value.images.length <= MAX_IMAGES, "inventory_invalid");
const imagePaths = new Set(), devices = new Set(), mountPoints = new Set();
const images = value.images.map(image => {
requireCondition(record(image) && Object.hasOwn(image, "image-path") && safePath(image["image-path"])
&& Object.hasOwn(image, "hdid-pid") && Number.isSafeInteger(image["hdid-pid"]) && image["hdid-pid"] > 0
requireCondition(record(image) && Object.hasOwn(image, "image-path") && safePath(image["image-path"]), "inventory_invalid");
const imagePath = image["image-path"];
// Kernel-mounted system Cryptex images have no userspace helper. They still
// occupy every reported device/mountpoint, but cannot authorize our detach.
requireCondition((Object.hasOwn(image, "hdid-pid")
? Number.isSafeInteger(image["hdid-pid"]) && image["hdid-pid"] > 0
: imagePath !== snapshotPath)
&& Object.hasOwn(image, "owner-uid") && Number.isSafeInteger(image["owner-uid"]) && image["owner-uid"] >= 0,
"inventory_invalid");
const imagePath = image["image-path"];
requireCondition(!imagePaths.has(imagePath), "inventory_duplicate");
imagePaths.add(imagePath);
const entities = normalizeEntities(image);
// An unrelated APFS image can include both a backing disk and a synthesized
// container disk. Keep every entity for collision checks; only our snapshot
// may supply the single whole-device lineage used to authorize detach.
const entities = normalizeEntities(image, imagePath !== snapshotPath);
for (const entity of entities) {
requireCondition(!devices.has(entity.device), "inventory_duplicate");
devices.add(entity.device);
Expand All @@ -193,12 +200,12 @@ function normalizeInventory(value) {
}
return Object.freeze({ imagePath, entities,
wholeDevice: entities.find(entity => WHOLE_DEVICE_PATTERN.test(entity.device)).device,
helperPid: image["hdid-pid"], ownerUid: image["owner-uid"] });
...(Object.hasOwn(image, "hdid-pid") ? { helperPid: image["hdid-pid"] } : {}), ownerUid: image["owner-uid"] });
});
return Object.freeze(images);
}

function normalizeEntities(value) {
function normalizeEntities(value, allowMultipleWholeDevices = false) {
requireCondition(record(value) && Object.hasOwn(value, "system-entities")
&& Array.isArray(value["system-entities"]) && value["system-entities"].length > 0
&& value["system-entities"].length <= MAX_ENTITIES, "entities_invalid");
Expand All @@ -223,10 +230,9 @@ function normalizeEntities(value) {
return Object.freeze({ device, ...(hasMountPoint ? { mountPoint: entity["mount-point"] } : {}) });
});
const wholeDevices = entities.filter(entity => WHOLE_DEVICE_PATTERN.test(entity.device));
requireCondition(wholeDevices.length === 1, "whole_device_invalid");
const wholeDevice = wholeDevices[0].device;
requireCondition(entities.every(entity => entity.device === wholeDevice
|| entity.device.startsWith(`${wholeDevice}s`)), "whole_device_invalid");
requireCondition(allowMultipleWholeDevices ? wholeDevices.length > 0 : wholeDevices.length === 1, "whole_device_invalid");
requireCondition(entities.every(entity => wholeDevices.some(whole => entity.device === whole.device
|| entity.device.startsWith(`${whole.device}s`))), "whole_device_invalid");
return Object.freeze(entities.sort((left, right) => left.device.localeCompare(right.device)));
}

Expand Down
101 changes: 101 additions & 0 deletions apps/desktop/scripts/distribution/LingShell.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
; Copyright (c) 2026 Ling Stack contributors
; SPDX-License-Identifier: MIT
; Windows shell operations implemented using NSIS's licensed System plug-in.
!ifndef LING_SHELL_INCLUDED
!define LING_SHELL_INCLUDED
!include LogicLib.nsh
!include Win\COM.nsh
!include Win\Propkey.nsh

!macro Ling_SetShortcutAUMI LINK APP_ID
System::Store S
System::Call 'ole32::CoInitializeEx(p 0, i 2)i.r9'
StrCpy $0 0
!insertmacro ComHlpr_CreateInProcInstance ${CLSID_ShellLink} ${IID_IShellLink} r0 ""
${If} $0 P<> 0
StrCpy $1 0
${IUnknown::QueryInterface} $0 '("${IID_IPersistFile}",.r1)'
${If} $1 P<> 0
${IPersistFile::Load} $1 '("${LINK}",2).r8'
${If} $8 >= 0
StrCpy $2 0
${IUnknown::QueryInterface} $0 '("${IID_IPropertyStore}",.r2)'
${If} $2 P<> 0
System::Call '*${SYSSTRUCT_PROPERTYKEY}(${PKEY_AppUserModel_ID})p.r3'
System::Alloc ${SYSSIZEOF_PROPVARIANT}
Pop $4
System::Call '*(&w${NSIS_MAX_STRLEN} "${APP_ID}")p.r5'
${If} $3 P<> 0
${AndIf} $4 P<> 0
${AndIf} $5 P<> 0
; x86 Unicode installer: PROPVARIANT is 16 bytes; VT_LPWSTR owns
; no memory here. SetValue copies it before buffers are released.
System::Call '*$4(&i2 ${VT_LPWSTR}, &i6 0, p r5, &i4 0)'
${IPropertyStore::SetValue} $2 '($3,$4).r8'
${If} $8 >= 0
${IPropertyStore::Commit} $2 '().r8'
${If} $8 >= 0
${IPersistFile::Save} $1 '("${LINK}",1).r8'
${EndIf}
${EndIf}
${EndIf}
System::Free $5
System::Free $4
System::Free $3
${IUnknown::Release} $2 ""
${EndIf}
${EndIf}
${IUnknown::Release} $1 ""
${EndIf}
${IUnknown::Release} $0 ""
${EndIf}
${If} $9 >= 0
System::Call 'ole32::CoUninitialize()'
${EndIf}
System::Store L
!macroend

!macro Ling_RemoveAppDestinations APP_ID
System::Store S
System::Call 'ole32::CoInitializeEx(p 0, i 2)i.r9'
StrCpy $0 0
System::Call 'ole32::CoCreateInstance(g "{86C14003-4D6B-4EF3-A7B4-0506663B2E68}",p 0,i 1,g "{12337D35-94C6-48A0-BCE7-6A9C69D4D600}",*p.r0)i.r8'
${If} $0 P<> 0
System::Call '$0->3(w "${APP_ID}")i.r8'
${If} $8 >= 0
System::Call '$0->5()i.r8'
${EndIf}
${IUnknown::Release} $0 ""
${EndIf}
StrCpy $0 0
System::Call 'ole32::CoCreateInstance(g "{77F10CF0-3DB5-4966-B520-B7C54FD35ED6}",p 0,i 1,g "{6332DEBF-87B5-4670-90C0-5E57B408A49E}",*p.r0)i.r8'
${If} $0 P<> 0
System::Call '$0->10(w "${APP_ID}")i.r8'
${IUnknown::Release} $0 ""
${EndIf}
${If} $9 >= 0
System::Call 'ole32::CoUninitialize()'
${EndIf}
System::Store L
!macroend

!macro Ling_UnpinShortcut LINK
System::Store S
System::Call 'ole32::CoInitializeEx(p 0, i 2)i.r9'
StrCpy $0 0
System::Call 'shell32::SHCreateItemFromParsingName(w "${LINK}",p 0,g "{43826D1E-E718-42EE-BC55-A1E261C37BFE}",*p.r0)i.r8'
${If} $0 P<> 0
StrCpy $1 0
!insertmacro ComHlpr_CreateInProcInstance ${CLSID_StartMenuPin} ${IID_IStartMenuPinnedList} r1 ""
${If} $1 P<> 0
${IStartMenuPinnedList::RemoveFromList} $1 '($0).r8'
${IUnknown::Release} $1 ""
${EndIf}
${IUnknown::Release} $0 ""
${EndIf}
${If} $9 >= 0
System::Call 'ole32::CoUninitialize()'
${EndIf}
System::Store L
!macroend
!endif
Loading
Loading