Files
deepseek-harness/apps/desktop/scripts/windows-directory-installer.d.mts
T

33 lines
1.4 KiB
TypeScript

/** Types for the pinned NSIS directory installation adapter. */
/**
* Replace payload installation while preserving registration and uninstall UI.
* @param source Pinned electron-builder installSection.nsh contents.
* @returns Section with staged directory replacement.
*/
export function directoryInstallSection(source: string): string
/**
* Clean staged directories on upstream Quit paths, including silent installers.
* @param source Pinned NSIS helper source.
* @returns Helper with cleanup before installer exits.
*/
export function directoryInstallerExits(source: string): string
/**
* Preserve data but clean old registrations when replacing another installation directory.
* @param source Pinned NSIS installUtil.nsh contents.
* @returns Helper reserving --updated for replacement at the same path.
*/
export function directoryInstallUtil(source: string): string
/**
* Retain the original uninstall directory and bypass shared cleanup for directory-only removal.
* @param source - Pinned upstream uninstaller source.
* @returns Uninstaller with long-path removal, native data cleanup, and upgrade rollback; updated-mode ownership mismatches exit with code 2.
*/
export function directoryUninstaller(source: string): string
/** Install the build-only adapter while retaining signed uninstaller generation. */
export function installWindowsDirectoryInstaller(): void