Needed for eMxInfo.txt (site-specific eDNC config). The file has no DisplayVersion in the registry and no canonical MSI; we ship it as a standalone secret on the SFLD share and key drift correction off its SHA256. When the yearly replacement drops, bump the hash in machineapps-manifest.json and every Standard-Machine PC catches up on next logon. Patched Install-FromManifest in all three copies (CMM, common, Standard) for consistency. Also adds the eMxInfo.txt entry to the Standard machineapps-manifest template and an Install-eMxInfo.cmd template that copies the file into both 32/64-bit eDNC Program Files paths.
20 lines
775 B
Plaintext
20 lines
775 B
Plaintext
@echo off
|
|
REM Install-eMxInfo.cmd - copy the site-specific eMxInfo.txt into both
|
|
REM Program Files eDNC paths. Run by Install-FromManifest.ps1 (Type=CMD)
|
|
REM when Hash detection on C:\Program Files\eDNC\eMxInfo.txt fails.
|
|
|
|
set "SRC=%~dp0eMxInfo.txt"
|
|
if not exist "%SRC%" (
|
|
echo Install-eMxInfo: source file not found at %SRC%
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "C:\Program Files\eDNC\" mkdir "C:\Program Files\eDNC\" 2>/dev/null
|
|
if not exist "C:\Program Files (x86)\eDNC\" mkdir "C:\Program Files (x86)\eDNC\" 2>/dev/null
|
|
|
|
copy /Y "%SRC%" "C:\Program Files\eDNC\eMxInfo.txt" >/dev/null || exit /b 2
|
|
copy /Y "%SRC%" "C:\Program Files (x86)\eDNC\eMxInfo.txt" >/dev/null || exit /b 3
|
|
|
|
echo Install-eMxInfo: deployed eMxInfo.txt to both eDNC paths
|
|
exit /b 0
|