Uwe Stöhr wrote:
Angus Leeming wrote:

I'm now able compile it successfully.


Congratulations!


Thanks, but now the surprise:

http://fkurth.de/uwest/LyX/Installer/lyx_setup_136small-v12.exe

This is the installer that includes the LyXWinUtils.
(BTW. could you please move the file to the wiki-page. It is too big for to upload. Thanks in advance.)

I introduced a page to select LyX's menu language. Then a system variable is set. If the user has admin privileges it is valid for all users, if not it is only valid for the actual user. The variable is deleted while uninstalling. I implement the language choice as radio group. It looks nicer if it is in a dropdown list, but the code will then be bigger. Feel free to implement this feature in your version as it is or as dropdown list.

Nice! I'll try the dropdown version, for consistency with the initial language selection.

I also changed some minor things:
- Split the path_prefix i the summary to make it readable.

Looks good. It helps that we now know how to write a multi-line string :-)

- Disable the button "Start Now" in the finish-page.
  Because the finish-page appears before LyX's config is ready _and_
  because the menu language will first be shown after the installer is
  finished.

You should update your copy of lyx_path_prefix.C and regenerate lyx_path_prefix.dll...

There is only one problem left:
The last entry of the path_prefix shown within LyX's preferences is wrong: E.g. when LyX is installed in C:\LyXTest\LyX the entry is C:\LyXTest\bin, which doesn't exist. The path_prefix generated by the installer is correct. Possibly a problem in the lyx_path_prefix.C. Any idea? (I guess this problem does also occur in your version.)

I'd have a look in lyx_path_prefix.C. Remember that you have to move your generated .dll to the NSIS Plugins folder before running makensis...

I attached the diff file between my and your script.

My package repository can be downloaded from

http://fkurth.de/uwest/LyX/Installer/LyXPackage.rar

It includes the .ini file for the language window and a new script to write the evironment variable.

There is now only one thig to do:
Install the math-fonts automatically.

Hmmmm. If you do this then you should package the latex-xft fonts rather than the bakoma ones. Maybe give the user the chance to download the bakoma fonts, but explain that the licence is restrictive.

I'm able to copy the files to the font directory but couldn't find the command to install them.

Perhaps ask on the NSIS forum at http://forums.winamp.com/forumdisplay.php?s=&forumid=65

best regards Uwe

Thought: rather than have two separate installers doing essentially the same thing, I think we should have a single installer that combines them:

I'd rather see the three python, minsys and perl pages retained but give the user the opportunity to download your stripped down versions as an alternative to downloading the full, official packages.

Angus

Reply via email to