; Install_Mode_Index.nsi ; ; Installation du programme 'Mode d'adressage' ; Avec la possibilité de désinstallation et d'ajout (optinel) ; d'un racourci dans le menu 'Démarrer' ; ; Function .onInit SetOutPath $TEMP File /oname=spltmp.dat "LOGO.bmp" File /oname=spltmp.exe "C:\program files\nsis\splash.exe" ExecWait '"$TEMP\spltmp.exe" 3000 $HWNDPARENT spltmp.dat' Delete $TEMP\spltmp.exe Delete $TEMP\spltmp.dat FunctionEnd ShowInstDetails show ; Le nom de l'installation Name "Power Fractal - Installation" ; Le nom du fichier d'installation OutFile "PowerFractal 1.0 - Install.exe" ; Le repertoire d'installation par défaut InstallDir $PROGRAMFILES\Powerfractal #-------------------------------------------------------- ; l'icon Icon F:\Eivd-Data\Projet_Fractal\Install\icon.ico ;Les petits boutons EnabledBitmap button_on.bmp DisabledBitmap button_off.bmp #-------------------------------------------------------- ; Clef inscrit dans le registre correspondant au reprtoire d'installation ; (Si une nouvelle installation est lancé, elle sera ecrasé) InstallDirRegKey HKLM SOFTWARE\PowerFractal "Install_Dir" ; Le texte d'acceuil ComponentText "This will install Power Fractal on your computer. Select which optional things you want installed." ; le texte qui propose à l'utilisateur un repertoire DirText "Choose a directory to install in to:" ;----------------------------------COPIE DES FICHIERS------------------------------ ; La section de copie de fichier Section "Fractal (required)" ; Indique le repertoire d'installation SetOutPath $INSTDIR ; Y met ces fichiers : File PowerFractal.exe File PowerFractal_Manuel_d_utilisation.pdf File Que_est_qu_une_fractal_.pdf File icon.ico SetOutPath $SYSDIR File graphmin.dll SetOutPath $INSTDIR ; Inscrit l'installation dans le registre : WriteRegStr HKLM SOFTWARE\Powerfractal "Install_Dir" "$INSTDIR" ; Inscrit les clefs de desinstallation WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal" "DisplayName" "Mode_Adressage (Remove only)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal" "UninstallString" '"$INSTDIR\uninstall.exe"' SectionEnd SectionDivider ;-----------------------------------OPTIONS--------------------------------------- ; section concernant les options Section "Start Menu Shortcuts" CreateDirectory "$SMPROGRAMS\PowerFractal" CreateShortCut "$SMPROGRAMS\PowerFractal\Uninstall.lnk" "$INSTDIR\uninstall.exe" #"" "$INSTDIR\uninstall.exe" CreateShortCut "$SMPROGRAMS\PowerFractal\PowerFractal.lnk" "$INSTDIR\PowerFractal.exe" "" "$INSTDIR\icon.ico" #"" "$INSTDIR\PowerFractal.exe" 0 CreateShortCut "$SMPROGRAMS\PowerFractal\Manuel d'utilisation.lnk" "$INSTDIR\PowerFractal_Manuel_d_utilisation.pdf" CreateShortCut "$SMPROGRAMS\PowerFractal\Que est qu'une fractal-.lnk" "$INSTDIR\Que_est_qu_une_fractal_.pdf" SectionEnd Section "Desktop Shortcut" CreateShortCut "$DESKTOP\PowerFractal.lnk" "$INSTDIR\PowerFractal.exe" "" "$INSTDIR\icon.ico" # """$INSTDIR\PowerFractal.exe" 0 SectionEnd Section "ADA Source and Documentation (in french)" CreateDirectory "$INSTDIR\Src" SetOutPath $INSTDIR\Src file Source_PowerFractal.zip SectionEnd #--------------------------------------------------------------------------------- ; Désinstallation UninstallText "This will uninstall Power_fractal. Hit next to continue." UninstallExeName "uninstall.exe" ; Section spéciale de désinstallation. Section "Uninstall" ; Enleve la clef du registre DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PowerFractal" DeleteRegKey HKLM SOFTWARE\PowerFractal ; Enleve le prog Delete $INSTDIR\PowerFractal.exe ; Enleve le desinstaller (exe) Delete $INSTDIR\uninstall.exe ;Enleve l'icon Delete $INSTDIR\Icon.ico Delete $INSTDIR\Manuel_d_utilisation.pdf Delete $INSTDIR\Que_est_qu_une_fractal_.pdf Delete $INSTDIR\PowerFractal_Manuel_d_utilisation.pdf Delete $INSTDIR\src\Source_PowerFractal.zip Delete $SYSDIR\graphmin.dll Delete "$SMPROGRAMS\PowerFractal\*.*" Delete "$DESKTOP\PowerFractal.lnk" RMDir "$SMPROGRAMS\PowerFractal" RMDir "$INSTDIR" SectionEnd ; eof