hi,
I'm packaging Nedit5.5 (compiled on cygwin) with the NSIS opensource installer: http://nsis.sourceforge.net/
to create an easy Win32 distribution pack.
The work is based on the pre-compiled package at this address:
http://nedit.gmxhome.de/winport.html
but with some add and changes:
It create a single sub-directory named Nedit in 'Program Files' directory on C: drive, with all the cygwin dependencies inside. Let user choose if create Start Menu links, and fill Win32 registry with keys for the uninstall process. Then add a link in SendTo directory to let open files with Nedit by context menu. The Xserver is left out of the package as users may already have this already installed.

The current work is hosted on my web site in GNU/GPLv3 license:
NSIS install script:
http://users.libero.it/efa/dLoad/neditNSISscript.7z

Source of NSIS installer (Nedit+shell binaries/scripts):
http://users.libero.it/efa/dLoad/neditNSISinstallerSources.7z

Auto-installer product single-file Binary:
http://users.libero.it/efa/dLoad/nedit5.5win32setup.exe

The auto-installer and Nedit binary seems work correctly, and some of shell command I tried work as expected too. Anyway testers are welcomed, as my Win32 system is filled of develop environment (cygwin, minGw, andLinux, ...), so some dependencies may be resolved, and not on a clean system.


I have one problem with 'autoload.nm' macro file.
In the 'start-nc.sh' script I inserted this line:
export ProgramFiles=`./cygwin/bin/shell-co/cygpath -u "$PROGRAMFILES"`
and in Nedit, executing a shell command like:
echo $ProgramFiles
paste something like:
/cygdrive/c/program files

Now 'autoload.nm' is:
load_macro_file("$ProgramFiles/nedit/cygspecial.nm")

but on Nedit startup I got an error:
Error executing macro: variable not set: $ProgramFiles

I tried also to change 'autoload.nm' to:
load_macro_file($ProgramFiles"/nedit/cygspecial.nm")
with no difference.

I do not know if shell variables are seen in Nedit macro files?
And more, what quoting are needed to preserve the space in path?


I use a variable path and not an absolute path, because on Windows, different language OS, store applications in different path.
For example: "C:\Program Files" on English system, but
"C:\Programmi" on my Italian system.

I prefer to distribute 'autoload.nm' in the package because it load the 'cygspecial.nm' needed for cut&paste work on Win32 platform. But this is not a must and I can simply remove it, or let users to customize it, if I cannot solve this problem.

thanks in advance for any help,
Valerio

--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to