On Tue, Oct 26, 2010 at 11:13 AM, Edward K. Ream <[email protected]> wrote:

> Imo, a1 should be a "private" release, just for the "family".  This
> will allow us to get the kinks out of the installer. Making the
> installer as clean as possible has the highest priority now.

The end of this post asks an important question.  I'd like your
opinions, amigos.

Progress
=======

1. Using the so-called Modern User Interface
http://nsis.sourceforge.net/Docs/Modern%20UI%202/Readme.html
is turning out to be easier than I expected.  The result should be a
more typical, better-looking installer.

2. It may be possible to completely eliminate the wretched logic that
attempted to find the Python installation.  There are several
possibilities:

A. Just let the user selected any arbitrary folder. This is quite
reasonable because the modern interface provides *lots* of room for
detailed instructions on each installation page.

B. Provide a list of candidate directories, including the Program
Files directory and each Python Lib/site-packages directory.  Again,
the modern interface may make this much more comfortable.

3. The following line in the uninstall script::

    RMDir /r "$INSTDIR\\leo"

will recursively remove *all* files in the installed Leo folder.  This
ensures that the uninstaller will remove all files except the files in
the top-level folder.  As the NSIS docs loudly warn, it is *not* safe
to do:

    RMDir /r "$INSTDIR"

so the uninstaller will remove files from the install folder by hand.

I considered the following code:

    if 0: # This seems way too drastic, and not needed.
        for fn in ('*.py','*.pyo','*.pyc','*.leo',):
            aList.append(fn)

but I see no reason to "kill" potentially valuable files this way.
Otoh, that's exactly what "RMDir /r" does.

The question
=========

Is it reasonable to kill the leo folder, or should we rely on the
previous code that basically only deletes a) installed files and b)
"harmless" files like .pyo and .pyc files?

Conclusion
========

I am beginning to feel happier about the prospects of creating a solid
installer.  That would be a very good thing.  I may even entertain the
notion of trying to install Qt and Python...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to