Skip to content

Commit 7fe62dc

Browse files
committed
fix: resolve WiX INSTALLDIR symbol reference error in Electron desktop app
Added proper INSTALLDIR directory definition to WiX template to fix "Unresolved reference to symbol 'Directory:INSTALLDIR'" error during Windows installer generation. Changes: - Added INSTALLDIR directory definition under ProgramFilesFolder - Named installation directory "API Testing" - Ensures INSTALLDIR symbol is available for component references This resolves the Windows MSI build failure in the desktop packaging workflow. Fixes: error LGHT0094 - Unresolved reference to symbol 'Directory:INSTALLDIR'
1 parent 3b0b687 commit 7fe62dc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

console/atest-desktop/forge.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ module.exports = {
7171
7272
</Product>`
7373
);
74+
75+
// Ensure INSTALLDIR is properly defined in the directory structure
76+
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
77+
'<Directory Id="TARGETDIR" Name="SourceDir">',
78+
`<Directory Id="TARGETDIR" Name="SourceDir">
79+
<Directory Id="ProgramFilesFolder">
80+
<Directory Id="INSTALLDIR" Name="API Testing" />
81+
</Directory>`
82+
);
7483
}
7584
}
7685
}

0 commit comments

Comments
 (0)