Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check whether glut32.dll is installed.

  • Loading branch information...
commit a2dfc25f3e90cf8a91b6b30362f2e90f47d0505d 1 parent 8b80371
@23Skidoo authored
Showing with 20 additions and 12 deletions.
  1. +20 −12 Nsisfile.nsi
View
32 Nsisfile.nsi
@@ -27,17 +27,6 @@
Var START_MENU_FOLDER
;--------------------------------
-;Callbacks
-
-Function .onInit
- SetShellVarContext all
-FunctionEnd
-
-Function un.onInit
- SetShellVarContext all
-FunctionEnd
-
-;--------------------------------
;General settings
;Name and file
@@ -63,6 +52,25 @@ FunctionEnd
InstType "Portable (just unpack the files)"
;--------------------------------
+;Callbacks
+
+Function .onInit
+ SetShellVarContext all
+FunctionEnd
+
+Function un.onInit
+ SetShellVarContext all
+FunctionEnd
+
+Function .onInstSuccess
+ IfFileExists $SYSDIR\glut32.dll Done
+ MessageBox MB_YESNO "It looks like glut32.dll is not installed. You will not be able to use the GLUT library. Do you want to copy glut32.dll to the system directory?" IDNO Done
+ SetOutPath "$SYSDIR\."
+ File "${FILES_SOURCE_PATH}\glut32.dll"
+ Done:
+FunctionEnd
+
+;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
@@ -158,7 +166,7 @@ Section "Update the PATH environment variable" SecPath
SectionEnd
-Section "Store GHC's location in registry"
+Section "Store GHC's location in registry" SecGHCLoc
SectionIn 1

0 comments on commit a2dfc25

Please sign in to comment.
Something went wrong with that request. Please try again.