Skip to content

Commit

Permalink
Avoid triggering errors during the installation if the user did not s…
Browse files Browse the repository at this point in the history
…pecify any location for the data
  • Loading branch information
SebastienLussier committed Apr 19, 2012
1 parent d331f97 commit 34d7261
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions installer/ArxLibertatis.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,12 @@ Section "Arx Libertatis"
;----------------------------------------------------------------------------
; Arx Fatalis data copy
;----------------------------------------------------------------------------
SetDetailsPrint both
DetailPrint "Copying Arx Fatalis data files..."
SetDetailsPrint listonly
${CopyArxDataFiles} $ArxFatalisInstallDir $ArxFatalisLanguage
${If} $ArxFatalisInstallDir != ""
SetDetailsPrint both
DetailPrint "Copying Arx Fatalis data files..."
SetDetailsPrint listonly
${CopyArxDataFiles} $ArxFatalisInstallDir $ArxFatalisLanguage
${EndIf}

;----------------------------------------------------------------------------
; DirectX
Expand Down Expand Up @@ -270,8 +272,10 @@ Section "Arx Libertatis"
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ArxLibertatis" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ArxLibertatis" "NoRepair" 1

; If an error occured, display a message
Call ShowDataErrorMessageBox
${If} $ArxFatalisInstallDir != ""
; If an error occured in the data copy, display a message
Call ShowDataErrorMessageBox
${EndIf}

IfRebootFlag 0 noreboot
MessageBox MB_YESNO|MB_ICONQUESTION "A reboot is required to finish the installation. Do you wish to reboot now?" IDNO noreboot
Expand Down

0 comments on commit 34d7261

Please sign in to comment.