NSIS installer takes a long time to install if previous version was not uninstalled

Bug #1718275 reported by Patrick Storz
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

When the previous Inkscape version was not uninstalled, the installer takes a very long time to finish (i.e. some minutes on my machine instead of few seconds.)

The behavior seems to depend on the presence of the file "Uninstall.dat":
a) if present the installation is slow
b) if deleted the installation is fast

Installation is also fast if "Uninstall.dat" is present but emptied out (all lines deleted), but it seems we really need to avoid this case as NSIS seems not to add any files to the file in this case (probably detecting them as already present) and consequently won't uninstall them either in future.

This issue seems not to be unheard of in the NSIS community:
- http://forums.winamp.com/showthread.php?s=&threadid=302976
- http://forums.winamp.com/showthread.php?s=&threadid=182845
/further investigation - also regarding a solution - necessary, though.

Educated guess:
NSIS might try to compare previously installed files to the new files which are to be installed in scenario a) above which might take a lot of time.

Tags: packaging
Revision history for this message
Patrick Storz (ede123) wrote :

See bug #1718176 for initial report.

tags: added: packaging
Revision history for this message
Patrick Storz (ede123) wrote :

I created an upstream report, maybe someone can check what's wrong here...

Either way this should probably never happen for Inkscape (we should not install into a non-empty directory), so maybe we should prevent that actively.

Revision history for this message
Patrick Storz (ede123) wrote :
Revision history for this message
larsch (larsch) wrote :

Upstream bug has been closed as 'invalid' without any comment. Inkscape is still extremely slow when upgrading an existing installation. I gave up upgrading from 0.92.2 to 0.92.4. It basically takes hours, even on an SSD.

Revision history for this message
Patrick Storz (ede123) wrote :

Well, there was a comment upstream - it's possible the slowness is caused by "Advanced Uninstall Log".

Until somebody with some NSIS experience finds the time to investigate this, it's unlikely to change, especially as updating installations is usually not a good idea anyway and should be avoided. Actually I've considered to drop this functionality altogether and always recommend to the user to install into an empty folder (i.e. warn if there are still files in the chosen installation directory).

Revision history for this message
Patrick Storz (ede123) wrote :
Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.