d3ro-voice/apps/desktop/build/installer.nsh
yunchan8804 8e31b36337 fix(installer): custom NSIS include 비활성화 — System.dll 0xc0000005 크래시 해소
- 이전 installer.nsh의 ReadRegDWORD + MessageBox 조합이 설치 중 System.dll에서
  access violation 유발 (WER로 확인)
- electron-builder 기본 installer UX만 사용 → 안정화 후 단계적으로 커스텀 재추가
- installer.nsh는 최소 버전으로 보존(향후 참고)
2026-04-15 22:30:10 +09:00

19 lines
715 B
NSIS

; build/installer.nsh
; electron-builder NSIS 커스텀 스크립트. 최소 구성 — 설치 중 크래시 방지를 위해
; 레지스트리 조회/MessageBox/외부 exec 등은 수행하지 않는다.
;
; VC++ 재배포 패키지는 사용자가 사전 설치하거나, 앱이 실행될 때 에러가 나면 안내.
; 현재는 detail 로그만 남긴다.
!macro customInstall
DetailPrint "D3RO Voice installer: custom install phase"
${If} ${FileExists} "$INSTDIR\resources\ollama\ollama.exe"
DetailPrint "Bundled Ollama detected"
${EndIf}
!macroend
!macro customUnInstall
DetailPrint "D3RO Voice uninstaller: stop Ollama if running"
nsExec::Exec 'taskkill /F /IM ollama.exe'
Pop $0
!macroend