electron-builder
electron-builder copied to clipboard
msi option runAfterFinish enabled: launched process gets wrong PATH environment variable
- 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.
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.
Not stale