nsis : installeur de logiciel

17.07.2004, 20:00 nsis : installeur de logiciel

Voila le site d'un super installeur de logiciels totalement gratuit ( c'est du sourceforge donc c'est free ;) ), celui de winamp (utilisé par de gros projet open source comme vlc ...)
http://nsis.sourceforge.net/Main_Page

avec un autre logiciel en support ( avec un wizard intégré pour générer automatiquement l'installeur)
installeur de logiciel

installeur de logiciel

installeur de logiciel


Cliquez sur la baguette magique et votre install se créer automatiquement
Cliquez sur l'icone verte avec la planete pour compiler

HM NIS EDIT

Nsis est un langage compilé destiné à la création d'installeur de logiciel. Vous avez un contrôle total sur la création de votre installeur (possibilité de télécharger des fichiers en cours d'installation sur internet, etc ...)



Exemple
nsis
!define PRODUCT_NAME "Ref Hotkey"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "Ref Hotkey"
!define PRODUCT_WEB_SITE "http://refhotkey.free.fr"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Update.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"

; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "refhotkey\license.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\Ref hotkey.exe"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "French"

; MUI end ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "setup_refhotkey..exe"
InstallDir "$PROGRAMFILES\Ref Hotkey"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

Section "SectionPrincipale" SEC01
SetOutPath "$INSTDIR"
SetOverwrite try
File "refhotkey\msvbvm60.dll"
File "refhotkey\Ref hotkey.exe.Manifest"
File "refhotkey\Update.exe"
CreateDirectory "$SMPROGRAMS\Ref Hotkey"
CreateShortCut "$SMPROGRAMS\Ref Hotkey\Ref Hotkey.lnk" "$INSTDIR\Ref hotkey.exe"
CreateShortCut "$DESKTOP\Ref Hotkey.lnk" "$INSTDIR\Ref hotkey.exe"
CreateShortCut "$SMPROGRAMS\Ref Hotkey\Uninstall.lnk" "$INSTDIR\uninst.exe"
File "refhotkey\LiveUpdate2.exe"
File "refhotkey\LiveUpdate.exe"
File "refhotkey\LiveUpdate.exe.manifest"
File "refhotkey\mon site internet.ini"
File "refhotkey\Ref hotkey.url"
File "refhotkey\Ref hotkey.exe"
File "refhotkey\msinet.ocx"
File "refhotkey\mswinsck.ocx"
File "refhotkey\scrrun.dll"
File "refhotkey\mscomctl.ocx"
File "refhotkey\comdlg32.ocx"
File "refhotkey\comctl32.ocx"
File "refhotkey\license.txt"
SectionEnd

Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\Ref Hotkey\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
CreateShortCut "$SMPROGRAMS\Ref Hotkey\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd

Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Update.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Update.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd


Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) a été désinstallé avec succès de votre ordinateur."
FunctionEnd

Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Êtes-vous certains de vouloir désinstaller totalement $(^Name) et tous ses composants ?" IDYES +2
Abort
FunctionEnd

Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\license.txt"
Delete "$INSTDIR\comctl32.ocx"
Delete "$INSTDIR\comdlg32.ocx"
Delete "$INSTDIR\mscomctl.ocx"
Delete "$INSTDIR\scrrun.dll"
Delete "$INSTDIR\mswinsck.ocx"
Delete "$INSTDIR\msinet.ocx"
Delete "$INSTDIR\Ref hotkey.exe"
Delete "$INSTDIR\Ref hotkey.url"
Delete "$INSTDIR\mon site internet.ini"
Delete "$INSTDIR\LiveUpdate.exe.manifest"
Delete "$INSTDIR\LiveUpdate.exe"
Delete "$INSTDIR\LiveUpdate2.exe"
Delete "$INSTDIR\Update.exe"
Delete "$INSTDIR\Ref hotkey.exe.Manifest"
Delete "$INSTDIR\msvbvm60.dll"

Delete "$SMPROGRAMS\Ref Hotkey\Uninstall.lnk"
Delete "$SMPROGRAMS\Ref Hotkey\Website.lnk"
Delete "$DESKTOP\Ref Hotkey.lnk"
Delete "$SMPROGRAMS\Ref Hotkey\Ref Hotkey.lnk"

RMDir "$SMPROGRAMS\Ref Hotkey"
RMDir "$INSTDIR"

DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd

http://images.topflood.com/test.nsi

je sais si tu connais dihap mais il est vraiment bien, un peu dure a prendre en main mais vraiment bien

C'est un logiciel basé sur un langage de script qui permet de générer des installs pour d'autres logiciels

Il y a aussi un éditeur de fenêtre pour créer ces propres fiches (ou form)
installeur de logiciels

installeur de logiciels

installeur de logiciels
mumuri cinemona.com
mumuri
mumuri
Messages : 14 377
17.07.2004, 23:00 Non, je ne connais pas. Moi, j'utilise innosetup. dihap
dihap
dihap
Messages : 2 535
18.07.2004, 00:00 ah et il gére le téléchargement des données via internet ?? mumuri cinemona.com
mumuri
mumuri
Messages : 14 377
18.07.2004, 16:00 Le téléchargement des données via internet ? dihap
dihap
dihap
Messages : 2 535
18.07.2004, 16:00 ouia par exemple tu veux pas que ton install soit trop lourde alors tu mets tous les plug in faculatatif en téléchargement sur le web et le logiciel se charge de les récupérer mumuri cinemona.com
mumuri
mumuri
Messages : 14 377
18.07.2004, 19:00 Je ne sais pas si c'est possible avec Innosetup. dihap
dihap
dihap
Messages : 2 535

  • flood
  • livres bds roman
  • dessin animé
  • astuces de jeux vidéos
  • allo ciné
  • smileys
  • avis films & streaming
  • séries télé
  • bourse
  • actualité de jeux vidéos
  • anime
  • avis livres
Tous droits réservés © 2002-2009 . Webnetters. Crédits des logiciels tiers     .