Re: [Ekiga-devel-list] win32 build



Hi,

Here is an nsi script to generate a setup.exe for ekiga on win32.
To run it: # makensis ekiga.nsi
I have put the different license for the dll's. I don't know if it is
right.

You can try the exe here :

http://ced.homedns.org/Ekiga-setup.exe

Cédric
!include "MUI.nsh"

Name "Ekiga"
OutFile "Ekiga-setup.exe"

InstallDir $PROGRAMFILES\Ekiga
InstallDirRegKey HKLM "Software\Ekiga" "Install_Dir"

Var MUI_TEMP
Var STARTMENU_FOLDER

!define MUI_ABORTWARNING

;Page directory
;Page instfiles

;UninstPage uninstConfirm
;UninstPage instfiles

!insertmacro MUI_PAGE_LICENSE License.txt
!insertmacro MUI_PAGE_LICENSE License_openldap.txt
!insertmacro MUI_PAGE_LICENSE License_libxml2.txt
!insertmacro MUI_PAGE_LICENSE License_SDL.txt
!insertmacro MUI_PAGE_DIRECTORY

!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Ekiga"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Ekiga"

!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER

!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"


Section "Ekiga"

	SectionIn RO

	SetOutPath "$INSTDIR"

	File ekiga.exe
	File liblber.dll
	File libldap_r.dll
	File libxml2-2.dll
	File SDL.dll
	File INSTALL_Gtk.txt

	SetOutPath "$INSTDIR\ekiga"

	File ekiga\ekiga.schemas

	SetOutPath "$INSTDIR\pixmaps"

	File pixmaps\ekiga.png

	SetOutPath "$INSTDIR\pixmaps\ekiga"

	File pixmaps\ekiga\ekiga-logo.png

	SetOutPath "$INSTDIR\sounds\ekiga"

	File sounds\ekiga\busytone.wav
	File sounds\ekiga\dialtone.wav
	File sounds\ekiga\newmessage.wav
	File sounds\ekiga\ring.wav
	File sounds\ekiga\voicemail.wav

;	WriteRegStr HKLM SOFTWARE\Ekiga "Install_Dir" "$INSTDIR"
	WriteRegStr HKCU "Software\Ekiga" "" "$INSTDIR"

;	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga" "DisplayName" "Ekiga"
;	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga" "UninstallString" '"$INSTDIR\uninstall.exe"'
;	WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga" "NoModify" 1
;	WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga" "NoRepair" 1
	WriteUninstaller "uninstall.exe"

	!insertmacro MUI_STARTMENU_WRITE_BEGIN Application

		CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
		CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Ekiga.lnk" "$INSTDIR\ekiga.exe"
		CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
	!insertmacro MUI_STARTMENU_WRITE_END

SectionEnd

;Section "Start Menu Shortcuts"
;
;	SetOutPath $INSTDIR
;	SetShellVarContext all
;	CreateDirectory "$SMPROGRAMS\Ekiga"
;	CreateShortCut "$SMPROGRAMS\Ekiga\Ekiga.lnk" "$INSTDIR\ekiga.exe" "" "$INSTDIR\ekiga.exe" 0
;	CreateShortCut "$SMPROGRAMS\Ekiga\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
;
;SectionEnd

Section "Uninstall"

;	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ekiga"
;	DeleteRegKey HKLM SOFTWARE\Ekiga

	Delete "$INSTDIR\ekiga.exe"
	Delete "$INSTDIR\liblber.dll"
	Delete "$INSTDIR\libldap_r.dll"
	Delete "$INSTDIR\libxml2-2.dll"
	Delete "$INSTDIR\SDL.dll"
	Delete "$INSTDIR\INSTALL_Gtk.txt"
	Delete "$INSTDIR\ekiga\ekiga.schemas"
	Delete "$INSTDIR\pixmaps\ekiga.png"
	Delete "$INSTDIR\pixmaps\ekiga\ekiga-logo.png"
	Delete "$INSTDIR\sounds\ekiga\busytone.wav"
	Delete "$INSTDIR\sounds\ekiga\dialtone.wav"
	Delete "$INSTDIR\sounds\ekiga\newmessage.wav"
	Delete "$INSTDIR\sounds\ekiga\ring.wav"
	Delete "$INSTDIR\sounds\ekiga\voicemail.wav"
	Delete "$INSTDIR\uninstall.exe"
	Delete "$INSTDIR\stderr.txt"
	Delete "$INSTDIR\stdout.txt"

	RMDir "$INSTDIR\ekiga"
	RMDir "$INSTDIR\pixmaps\ekiga"
	RMDir "$INSTDIR\pixmaps"
	RMDir "$INSTDIR\sounds\ekiga"
	RMDir "$INSTDIR\sounds"
	RMDir "$INSTDIR"

;	SetShellVarContext all
;	Delete "$SMPROGRAMS\Ekiga\*.*"
;	RMDir "$SMPROGRAMS\Ekiga"

	!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP

	Delete "$SMPROGRAMS\$MUI_TEMP\Ekiga.lnk"
	Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"

	StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"

	startMenuDeleteLoop:
		ClearErrors
		RMDir $MUI_TEMP
		GetFullPathName $MUI_TEMP "$MUI_TEMP\.."

		ifErrors startMenuDeleteLoopDone

		StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
	startMenuDeleteLoopDone:

	DeleteRegKey /ifempty HKCU "Software\Ekiga"

SectionEnd

Attachment: pgpEcGNWBUXom.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]