1 ; Install_Mode_Index.nsi
3 ; Installation du programme 'Mode d'adressage'
4 ; Avec la possibilité de désinstallation et d'ajout (optinel)
5 ; d'un racourci dans le menu 'Démarrer'
11 File /oname=spltmp.dat "LOGO.bmp"
12 File /oname=spltmp.exe "C:\program files\nsis\splash.exe"
13 ExecWait '"$TEMP\spltmp.exe" 3000 $HWNDPARENT spltmp.dat'
14 Delete $TEMP\spltmp.exe
15 Delete $TEMP\spltmp.dat
21 ; Le nom de l'installation
22 Name "Power Fractal - Installation"
24 ; Le nom du fichier d'installation
25 OutFile "PowerFractal 1.0 - Install.exe"
27 ; Le repertoire d'installation par défaut
28 InstallDir $PROGRAMFILES\Powerfractal
30 #--------------------------------------------------------
32 Icon F:\Eivd-Data\Projet_Fractal\Install\icon.ico
35 EnabledBitmap button_on.bmp
38 DisabledBitmap button_off.bmp
40 #--------------------------------------------------------
42 ; Clef inscrit dans le registre correspondant au reprtoire d'installation
43 ; (Si une nouvelle installation est lancé, elle sera ecrasé)
44 InstallDirRegKey HKLM SOFTWARE\PowerFractal "Install_Dir"
48 ComponentText "This will install Power Fractal on your computer. Select which optional things you want installed."
50 ; le texte qui propose à l'utilisateur un repertoire
51 DirText "Choose a directory to install in to:"
53 ;----------------------------------COPIE DES FICHIERS------------------------------
54 ; La section de copie de fichier
55 Section "Fractal (required)"
56 ; Indique le repertoire d'installation
58 ; Y met ces fichiers :
60 File PowerFractal_Manuel_d_utilisation.pdf
61 File Que_est_qu_une_fractal_.pdf
67 ; Inscrit l'installation dans le registre :
68 WriteRegStr HKLM SOFTWARE\Powerfractal "Install_Dir" "$INSTDIR"
69 ; Inscrit les clefs de desinstallation
70 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal" "DisplayName" "Mode_Adressage (Remove only)"
71 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal" "UninstallString" '"$INSTDIR\uninstall.exe"'
76 ;-----------------------------------OPTIONS---------------------------------------
77 ; section concernant les options
78 Section "Start Menu Shortcuts"
79 CreateDirectory "$SMPROGRAMS\PowerFractal"
80 CreateShortCut "$SMPROGRAMS\PowerFractal\Uninstall.lnk" "$INSTDIR\uninstall.exe" #"" "$INSTDIR\uninstall.exe"
81 CreateShortCut "$SMPROGRAMS\PowerFractal\PowerFractal.lnk" "$INSTDIR\PowerFractal.exe" "" "$INSTDIR\icon.ico" #"" "$INSTDIR\PowerFractal.exe" 0
82 CreateShortCut "$SMPROGRAMS\PowerFractal\Manuel d'utilisation.lnk" "$INSTDIR\PowerFractal_Manuel_d_utilisation.pdf"
83 CreateShortCut "$SMPROGRAMS\PowerFractal\Que est qu'une fractal-.lnk" "$INSTDIR\Que_est_qu_une_fractal_.pdf"
86 Section "Desktop Shortcut"
87 CreateShortCut "$DESKTOP\PowerFractal.lnk" "$INSTDIR\PowerFractal.exe" "" "$INSTDIR\icon.ico" # """$INSTDIR\PowerFractal.exe" 0
90 Section "ADA Source and Documentation (in french)"
91 CreateDirectory "$INSTDIR\Src"
92 SetOutPath $INSTDIR\Src
93 file Source_PowerFractal.zip
96 #---------------------------------------------------------------------------------
100 UninstallText "This will uninstall Power_fractal. Hit next to continue."
101 UninstallExeName "uninstall.exe"
103 ; Section spéciale de désinstallation.
106 ; Enleve la clef du registre
107 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal"
108 DeleteRegKey HKLM SOFTWARE\PowerFractal
112 Delete $INSTDIR\PowerFractal.exe
113 ; Enleve le desinstaller (exe)
114 Delete $INSTDIR\uninstall.exe
117 Delete $INSTDIR\Icon.ico
119 Delete $INSTDIR\Manuel_d_utilisation.pdf
121 Delete $INSTDIR\Que_est_qu_une_fractal_.pdf
123 Delete $INSTDIR\PowerFractal_Manuel_d_utilisation.pdf
125 Delete $INSTDIR\src\Source_PowerFractal.zip
127 Delete $SYSDIR\graphmin.dll
129 Delete "$SMPROGRAMS\PowerFractal\*.*"
131 Delete "$DESKTOP\PowerFractal.lnk"
133 RMDir "$SMPROGRAMS\PowerFractal"