|
From: <ara...@us...> - 2008-08-24 19:10:08
|
Revision: 242
http://easybox-mod.svn.sourceforge.net/easybox-mod/?rev=242&view=rev
Author: aragornis
Date: 2008-08-24 19:10:05 +0000 (Sun, 24 Aug 2008)
Log Message:
-----------
Possibilit?\195?\169 de laisser Easybox configurer automatiquement le Firewall de Windows
Ajout de la dll ?\195?\160 mettre dans le dossier Plugin de NSIS pour compiler l'installateur
Modification des liens relatifs pour prendre en compte la nouvelle situation du script nsi par rapport au dossier http/
Modified Paths:
--------------
trunk/packages/setup-NSIS-win32.nsi
Added Paths:
-----------
trunk/packages/SimpleFC.dll
Property changes on: trunk/packages/SimpleFC.dll
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/packages/setup-NSIS-win32.nsi
===================================================================
--- trunk/packages/setup-NSIS-win32.nsi 2008-08-24 13:14:10 UTC (rev 241)
+++ trunk/packages/setup-NSIS-win32.nsi 2008-08-24 19:10:05 UTC (rev 242)
@@ -99,9 +99,9 @@
SetOutPath $INSTDIR\http
SetOverwrite on
- File /r /x _utilisateur /x %%*%%* /x .cache /x .settings /x .project /x .svn *
+ File /r /x _utilisateur /x %%*%%* /x .cache /x .settings /x .project /x .svn ..\http\*
SetOutPath $INSTDIR\http\_utilisateur
- File /r /x *.db /x *.ini /x *.db /x contentVLC /x *.gif /x *.png /x *.jpg /x *.m3u /x .svn _utilisateur\*.*
+ File /r /x *.db /x *.ini /x *.db /x contentVLC /x *.gif /x *.png /x *.jpg /x *.m3u /x .svn ..\http\_utilisateur\*.*
File ..\http\_utilisateur\modules.db
File ..\http\_utilisateur\podcast.db
SetOutPath $INSTDIR\php5
@@ -205,7 +205,17 @@
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "Easybox" "$INSTDIR\EasyBox.exe"
SectionEnd
-Section -post SEC0002
+Section /o "Configurer le firewall de windows XP SP2, 2003 ou Vista" SEC0002
+ SimpleFC::IsFirewallServiceRunning
+ ${If} $1 == 1
+ SimpleFC::AddApplication "Easybox" "$INSTDIR\Easybox.exe" 0 2 "" 1
+ SimpleFC::AddApplication "Apache Easybox" "$INSTDIR\apache\apache.exe" 0 2 "" 1
+ SimpleFC::AddApplication "VLC Easybox" "$INSTDIR\vlc\vlc.exe" 0 2 "" 1
+ SimpleFC::AddApplication "PHP Easybox" "$INSTDIR\php5\php.exe" 0 2 "" 1
+ ${EndIf}
+SectionEnd
+
+Section -post SEC0003
WriteRegStr HKLM "${REGKEY}" Path $INSTDIR
SetOutPath $INSTDIR
WriteUninstaller $INSTDIR\uninstall.exe
@@ -282,7 +292,29 @@
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "Easybox"
SectionEnd
-Section -un.post UNSEC0002
+Section "-un.Configurer le firewall de windows XP SP2, 2003 ou Vista" UNSEC0002
+ SimpleFC::IsApplicationAdded "$INSTDIR\Easybox.exe"
+ ${If} $1 == 1
+ SimpleFC::RemoveApplication "$INSTDIR\Easybox.exe"
+ ${EndIf}
+
+ SimpleFC::IsApplicationAdded "$INSTDIR\apache\apache.exe"
+ ${If} $1 == 1
+ SimpleFC::RemoveApplication "$INSTDIR\apache\apache.exe"
+ ${EndIf}
+
+ SimpleFC::IsApplicationAdded "$INSTDIR\vlc\vlc.exe"
+ ${If} $1 == 1
+ SimpleFC::RemoveApplication "$INSTDIR\vlc\vlc.exe"
+ ${EndIf}
+
+ SimpleFC::IsApplicationAdded "$INSTDIR\php5\php.exe"
+ ${If} $1 == 1
+ SimpleFC::RemoveApplication "$INSTDIR\php5\php.exe"
+ ${EndIf}
+SectionEnd
+
+Section -un.post UNSEC0003
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
IfFileExists $INSTDIR\EasyBox.exe 0 +32
@@ -350,5 +382,6 @@
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC0000} "Le core d'Easybox v5"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC0001} "Voulez-vous lancer Easybox en m\xEAme temps que Windows ?"
+!insertmacro MUI_DESCRIPTION_TEXT ${SEC0002} "Voulez-vous que l'installateur configure automatiquement le firewall de Windows ?"
!insertmacro MUI_FUNCTION_DESCRIPTION_END
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|