mediaguy
18th August 2004 19:55 UTC
setup load time
I'm new to this app and have just created my first installer.
I noticed when I run the installer it first loads the installer which takes about a minute(longer on slower machines).
Is this normal? Is there a way to speed that up?
Thanx!
kichik
18th August 2004 20:34 UTC
No, it's not normal. You're probably using solid compression (default for bzip2 or lzma) and extracting something in .onInit or .onGUIInit and have the code for them located at the bottom of the installer. You can either move them to the top or use ReserveFile.
If you're using the MUI, see section 6.
mediaguy
18th August 2004 21:07 UTC
Not sure I understand.
I am using MakeNSISW 2.0.
Under settings "Defined in script is selected".
Do I need to change that and if so to what?
Thanx!
kichik
18th August 2004 21:11 UTC
No, that's not related. If you can attach your script (click on the Post a Reply button, don't use the quick reply box), it'll be easier to see and show you exactly what's wrong.
mediaguy
18th August 2004 21:15 UTC
;NSIS Modern User Interface version 1.70
;Basic Example Script
;Written by Joost Verburg
;--------------------------------
;Include Modern UI
!include "MUI.nsh"
;--------------------------------
;General
;Name and file
Name "Massanutten"
OutFile "setup.exe"
;Default installation folder
InstallDir "$PROGRAMFILES\Massanutten"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Modern UI Test" ""
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
; !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Installer Sections
Section "Massanutten Program" SecDummy
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
File /nonfatal /a /r "C:\adams\massanutten\dir\install\*.*"
;Store installation folder
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
CreateShortCut "$DESKTOP\Massanutten.lnk" "$INSTDIR\massanutten_hd.exe"
SectionEnd
;--------------------------------
;Descriptions
;Language strings
LangString DESC_SecDummy ${LANG_ENGLISH} "Full Application."
;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\audio\*.*"
Delete "$INSTDIR\video\*.*"
Delete "$INSTDIR\*.*"
Delete "$INSTDIR\Uninstall.exe"
Delete "$DESKTOP\Massanutten.lnk"
RMDir "$INSTDIR\video"
RMDir "$INSTDIR\audio"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
SectionEnd
kichik
18th August 2004 21:21 UTC
Hmm... Script seems OK. Does the NSIS package installer take a minute to load too? How big is your installer? Did you tell MakeNSISw which compressor to use? Have you checked the installer on another computer?
BTW, I didn't say "(click on the Post a Reply button, don't use the quick reply box)" for nothing. Please don't copy and paste scripts, it clutters the forum.
mediaguy
18th August 2004 22:01 UTC
THe installer is what I am talking about. It is 190meg. The full siize of what I am adding to the installer is 198megs. It runs slow on 1.6Ghz.
When I recompile it says zlib near the end
And BTW I did click on the "Post a reply"
kichik
18th August 2004 22:25 UTC
Does it show the verifying installer window? If so, everything is OK. If you wish to skip the verification use the CRCCheck command.
And BTW I did click on the "Post a reply"
But you copied and pasted and not attached.
mediaguy
18th August 2004 23:15 UTC
The crccheck did it. Thanx And sorry about the paste