electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

msi option runAfterFinish enabled: launched process gets wrong PATH environment variable

Open vincesp opened this issue 5 months ago • 2 comments

  • Electron-Builder Version: 24.9.1
  • Node Version: 18
  • Electron Version: 28.0.0
  • Electron Type (current, beta, nightly): current
  • Target: msi

I am creating an msi build with the default setting runAfterFinish enabled. However, when my process gets launched from the installer, it gets passed some kind of "Frankenstein" environment. While variables like HOMEDRIVE, HOMEPATH, USERNAME, USERPROFILE, or even OneDrive are inherited from the current user's environment, the PATH variable comes from the system, so it is missing crucial entries and my application crashes. The only fix is to disable runAfterFinish, unfortunately.

vincesp avatar Jan 12 '24 14:01 vincesp

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Mar 13 '24 00:03 github-actions[bot]

Not stale

vincesp avatar Mar 13 '24 09:03 vincesp