I have created simplest electron app from official Quick Start Guide.
I am able to create installer also using electron-builder
Now I want to try customUnInstall
macro of NSIS option given at https://www.electron.build/configuration/nsis
My installer.nsh
file is
!macro customUnInstall
!echo "test output"
!macroend
My package.json
file is
{
"name": "my-electron-app",
"version": "0.1.0",
"author": "your name",
"description": "My Electron app",
"main": "main.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"devDependencies": {
"electron": "^12.0.1",
"electron-builder": "^22.10.5"
},
"build": {
"nsis": {
"include": "installer.nsh"
}
}
}
Where can I see output of line !echo "test output"
in installer.nsh
?
Currently I am not seeing any output message or dialogue in case of running uninstaller.