Skip to content
⌘ NSIS Forum Archive

very slow installation

5 posts

mdlazreg#

very slow installation

When I install my product to a new area it takes me 75 seconds.

If I run the same installer another time and install it to the same area (overwritting the previous one) it takes 5 minutes!

Any ideas?
mdlazreg#
I am really not doing anything out of the ordinary. Here is an example :

!include "MUI.nsh"
SetDateSave on
SetDatablockOptimize on
BGGradient 000000 800000 FFFFFF
InstallColors FF8080 000030
XPStyle on
InstallDir "C:\test"
AllowRootDirInstall true
ShowInstDetails show

!define MUI_ABORTWARNING

!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Name "test"
OutFile "test.exe"

Section "Section1"
SetOutPath "$INSTDIR"
File /a /r "NSIS\*"
SectionEnd


The NSIS directroy is the NSIS distribution.

Now try to compile this script and run it twice trying to install to the same area without removing the previous one. You will see that the fisrt installtion is very fast while the second takes much longer time!!

Could it be just my machine?! I have an xp box.
pengyou#
On my Win9x system the second install (overwriting the first) takes about the same time as the first install.