Skip to content

Commit

Permalink
fix #1524: silent installation windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Sep 13, 2024
1 parent 1c79623 commit bab066e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions resources/windows/meshlab.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,25 @@ ShowUnInstDetails show
Function .onInit
ReadRegStr $0 HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
${If} $0 != "" ;2020.0x...
MessageBox MB_OK "Please first uninstall old MeshLab version. Starting uninstaller now..."
StrCpy $8 '"$0"'
!insertmacro ExecWaitJob r8
${IfNot} ${Silent}
MessageBox MB_OK "Please first uninstall old MeshLab version. Starting uninstaller now..."
${EndIf}
StrCpy $8 '"$0"'
${If} ${Silent}
StrCpy $8 "$8 /S"
${EndIf}
!insertmacro ExecWaitJob r8
${Else}
ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MeshLab_64b" "UninstallString"
${If} $0 != "" ;2016.12
MessageBox MB_OK "Please first uninstall old MeshLab version. Starting uninstaller now..."
StrCpy $8 '"$0"'
!insertmacro ExecWaitJob r8
${IfNot} ${Silent}
MessageBox MB_OK "Please first uninstall old MeshLab version. Starting uninstaller now..."
${EndIf}
StrCpy $8 '"$0"'
${If} ${Silent}
StrCpy $8 "$8 /S"
${EndIf}
!insertmacro ExecWaitJob r8
${EndIf}
${EndIf}
FunctionEnd
Expand Down

0 comments on commit bab066e

Please sign in to comment.