Archive: Nsis


Nsis
  Hello

1- i am a german boy so i cant speack english good;)

2- i have a question::


;NSIS Modern User Interface
;Welcome/Finish Page Example Script





;--------------------------------
;Include Modern UI

!include "MUI.nsh"

;--------------------------------
;General

;Name and file
Name "Modern UI Test"
OutFile "WelcomeFinish.exe"

;Default installation folder
InstallDir "$PROGRAMFILES\Modern UI Test"

;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Modern UI Test" ""

;--------------------------------
;Interface Settings

!define MUI_ABORTWARNING

;--------------------------------
;Pages

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern

UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections




SectionGroup "Lynax Messenger"

Section "v 0.1"
SetOutPath $INSTDIR
File "gtk+-2.8.18-setup-1.exe"
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd
Section "kp"
SectionEnd
SectionGroupEnd


;--------------------------------
;Descriptions

;Language strings
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."

;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

;--------------------------------
;Uninstaller Section

Section "Uninstall"

;ADD YOUR OWN FILES HERE...

Delete "$INSTDIR\Uninstall.exe"

RMDir "$INSTDIR"

DeleteRegKey /ifempty HKCU "Software\Modern UI Test"

SectionEnd



this File "gtk+-2.8.18-setup-1.exe"
is an setup for gtk, how can i make that it will setup in this setup;)

sry i dont can english good

i hope you unterstand me


Section "v 0.1"

>SetOutPath $INSTDIR
File gtk
+-2.8.18-setup-1.exe
ExecWait "$INSTDIR\\gtk+-2.8.18-setup-1.exe"
>WriteRegStr HKCU "Software\\Modern UI Test" "" $INSTDIR
WriteUninstaller "$INSTDIR\\Uninstall.exe"
>SectionEnd
>
I hope this answers your question.

Joe

yes it works thankyou...

but can i ask one question more?

can i change the icon?
also the icon which will shown on the destop like here:
http://www.conceptlab.com/desktop/img/desktop_10.jpg

? i have also create a file with 32 *32


GTK
  My seccond ask is:

how can i check if gtk is installed on the user computer


!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\logo.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"

why it doesnt work`?

logo.ico ist 32 * 21




:::::




!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\gtk\proggen\lp\lm\windwos"

Processing script file: "C:\gtk\proggen\lp\lm\windwos\lminstall.nsi"
!include: "C:\Programme\NSIS\Include\MUI.nsh"
!include: "C:\Programme\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.75 - © 2002-2006 Joost Verburg (C:\Programme\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Programme\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\Programme\NSIS\Include\MUI.nsh"
!define: "MUI_ICON"="C:\Programme\NSIS\Contrib\Graphics\Icons\logo.ico"
!define: "MUI_UNICON"="C:\Programme\NSIS\Contrib\Graphics\Icons\orange-uninstall.ico"
Name: "Lynax Messenger"
OutFile: "Lynax Messenger v0.1.exe"
InstallDir: "$PROGRAMFILES\Lynax Messenger"
InstallRegKey: "HKCU\Software\Lynax Messenger\"
!define: "MUI_ABORTWARNING"=""
!insertmacro: MUI_PAGE_WELCOME
Error while setting icon to "C:\Programme\NSIS\Contrib\Graphics\Icons\logo.ico": invalid icon file
Error in macro MUI_INTERFACE on macroline 61
Error in macro MUI_PAGE_INIT on macroline 3
Error in macro MUI_PAGE_WELCOME on macroline 5
Error in script "C:\gtk\proggen\lp\lm\windwos\lminstall.nsi" on line 33 -- aborting creation process


http://nsis.sourceforge.net/Why_does...about_my_icons

http://forums.winamp.com/showthread....hreadid=259124