MiKTeX, GS, GSViewer, ImageMagick, GraphicsMagick and LyX

Submitted by aehrlich on October 30, 2007 - 7:30pm.

Hello boys and girls,
I had finished the splitting of my old LyXPortable-Suite.
Now you are able to download:

All apps are able as standalone apps. The launchers are writen in AutoIt. If someone would help me to migrate them to NSIS, I would like it.

ImageMagickPortable, GraphicsMagickPortable and LyXPortable are able to be run as commandline tools for executing the commads for example:
If you use Imagemagick like this "convert image.jpg image.png"
then you have to type "ImageMagickPortable.exe execute convert image.jpg image.png"
The same fpr GraphicsMagick instead of "gm convert image.jpg image.png" you use "GraphicsMagickPortable.exe execute gm convert image.jpg image.png".
LyX has its own tool which associates lyx-Files with LyXPortable.exe with needed commands.

The next what I am doing is porting TeXNiccenter to Stickware. I would like to get some help to understand NSIS to port everything to NSIS. If there is someone speaking german it would be the best solution.

Documentation will follow.
Best regards,
Ehrlich, Andreas

( categories: )

Thank you for imageMagick

Thank you for imageMagick portable!

Command Prompt Portable Integration

How would I edit the path variable for Command Prompt Portable to be able to take full portable advantage of these awesome apps?

Not really understud

I did not really understand you question.
If you install all them into the same folder and start LyXPortable, it asks the other apps for their paths, that it intergrates them on its self.
There will be many changes in the portable applications, because I am going to change the way of acting of the launchers. They are very different from the portable apps, and the applications itself are much more complicated than Open Office or even Firefox. Smiling
Perhaps that's the reason, why there is no other portable app especially for students. Smiling

I like webdesign, especially with some portable apps

Not quite sure how this works

I get the xxPortable.exe, but when I start them all I get is blinking icon in the system tray. I can then "lock" the application or "unlock" it.. On LyxPortable, when I rightclick the icon and click "Start Lyx" I get a runtime error:

Microsoft Visual C++ Runtime Library
Runtime error!
Program: E:\Applications\LyxPortable\App\LyX\15\bin\lyxc.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

After that I get another error:

AutoIt Error
Line -1:
ErrorL Unable to execute the external program.
The system cannot find the path specified.

Any ideas on what to do?

Cheers,
Nico

LyX needs some other apps

LyX needs Ghostscript, Imagemagick, Graphicsmagick and MiKTeX, so they are all in their own portable packages.
The Lock-command means that you lock the application to your system, it makes a backup of the registry and loads it's settings to the registry. Unlock deletes your settings from the registry and loads the backup to registry.
Perhaps you did not install the needed portable packages.

Actually I am working on some other launchers that will be faster and also safer.

I like webdesign, especially with some portable apps

You need ...

You need to "install"

to your PortableApps-folder.
Then it should work fine.

I like webdesign, especially with some portable apps

lyx errors

I get some errors when I try lyx:
*TeX-INFOS in the menu "Werkzeuge" H:/PortableApps/LyXPortable/App/LyX/15/Resources/./scripts/TeXFiles.py
I know the /./ is wrong in the path but where can I correct this?

*If I call dvi, ps or pdf (all buttons), I got "an error during the execution from python -tt H:/PortableApps/LyXPortable/App/LyX/15 occured".

I have MiKTeXPortable-2.7 "installed" and corrected the path in the lyx-preferences.
----
TeXnicCenter will be highly recommend.
Thank you for your great work

Doesn't work for me

I have the same problem as the originial commenter. But having read this advice first I made sure to install all these components. And to avoid any problems with dependeincies installed them in the order Aspell, GhostScript, GSView, ImageMagick, MikTek and finally LyX (which is the same order that I installed MAc versions). I also get the "... error: -1" message instead on occasions.

The use of lock/unlock/etc is inconistent with other portableapps, which makes for great frustration. Using NSIS as the launcher would be preferable. I'll volunteer to help but can't do that until mid-July when my work load reduces.

Same problem in Texmaker

It sounds like a relative/absolute path problem in LyX. I had the same with Texmaker. I think we both need some help with working around it.

-

-

LyxPortable

Ist das schon das ganz neue Lyx 1.5.3 - so wie das ganz neue MiKTeX 2.7?

Gruß
Matthias

Blinking GSView and Ghostscript

Hi everybody,

I just installed GSView and Ghostscript as PortableApps to my computer on work.

But if I open them they online start up as two blinking Icons.

Is there any Possibility to use Ghostscript or GSView to generate a PDF - Whats wrong with them? - Why are the icons just blinking?

Note: Maybe they doesn`t work because on my computer on work I doesn`t have any rights to write to the Windows-Registry or doing some installation.

Greetings,
Patrick

The launchers are writen in

The launchers are writen in AutoIt. If someone would help me to migrate them to NSIS, I would like it.
Why?

unable to make lyx work

Hi, I have tried to follow your instructions in order to make lyx work as a portable application. I got the same error in 2 different computers. They have different OS, win2000 and winXP. Any update on your installation instructions? The error is similar to the ones reported in previous comments.
BR\

can you

explain me what is GSViewerPortable and GhostscriptPortable for and how to use it?

I'm trying but no idea... Sad

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Laughing out loud

creating portable WinEdt

Dear Mr. Ehrlich,

You are my hero. Creating portable LyX was a fine and beautiful decision. I would like to know how you did it. Perhaps you could share with me your AutoIT code? I would like to create a portable WinEdt app. WinEdt is a shareware program, for which I have a license, that is optimized for large projects such as my PhD thesis. I use LyX for small tasks like hw, but I want to use a portable version of WinEdt to write my doctoral thesis.

Quite frankly, you've already done all the hard work, all I have to do is imitate what you did to link winedt to miktek and gsviewer.

Please send me an email to caortiz.phy@gmail.com whenever you can!

Carlos

p.s. I apologize for not speaking german. If it is any consolation, my native tongue is spanish, so we're both in a similar boat here.

How it seems to work

First of all, thank you for the effort you have taken to create a portable latex environment. Never the less, without documentation our effort is wasted. Here is what I figured from the undocumented code of the miktex application.

All entries from the tray menu can also be activated by calling MiKTeXPortable.exe with a parameter.

lock: activates the portable miktex environment
unlock: deactivates the portable miktex environment
package: opens the package manager - does not work with an already activated env.
options: opens the package manager - does not work with an already activated env.
update: ? updates the application ? - does not work with an already activated env.
solvecrash: ?don't know? - should restore the original registry settings
exit: removes the tray icon without deactivating the portable miktex environment

attention: I somehow managed to mess up my local non portable miktex installation by trying out this portable solution. Most likely I did this by clicking the Solve Crash button. So be aware. You can watch some effects of lock/unlock by observing
HKEY_CURRENT_USER\Software\MiKTeX.org\MiKTeX

Suggestions to the author:

  • activate the environment at the start of the application
  • deactivate the environment at the exit of the application
  • remove lock and unlock options
  • allow package, options and update only if activated
  • revise solvecrash
  • remove the blink effect of the tray icon

I don't know autoit and can't perform these changes on my own.

Virus found in MikeTEX, Aspell, Ghostscript and GSViewer

Hi,

this is a nice piece of software. Thanks a lot for the work. Unfortunately my Trend Micro OfficeScan deletes some Applications from my USB-Stick saying that they contain the WORM_AUTORUN.TI virus.

Why is that? Sad

Hi,

schöne Arbeit mit der portablen Lyx-Version. Vielen Dank dafür. Dummerweise schlägt mein Trend Micro OfficeScan Alarm und löscht die im Titel genannten EXE-Files von meinem USB-Stick, weil sie wohl mit WORM_AUTORUN.TI infiziert seien.

Warum passiert das?

It's most likely a false

It's most likely a false positive. I haven't checked these packages out personally, but they've gotten quite a few downloads and you are the first to report an issue. I'd recommend scanning the possibly offending files with Jotti and VirusTotal. Both of those online scanners require you to upload the file to their site, and they then scan it with several different anti-virus engines. Please report back here with the results.

The developer formerly known as ZGitRDun8705

not possible

since the virus engine immediately deletes my files, I cannot access the exe-files neither upload them. Deactivating the scanner is not possible due to corporate resctrictions.

OK, i'll try to test them

OK, i'll try to test them then. Is the issue the .paf.exe, or after the installer is run, in one of the contained files?

The developer formerly known as ZGitRDun8705

it's all about the contained files

it's all about the contained files. The scanner raises the warning while installing the package or executing the program, e.g. the GSViewerPortable.exe.

GhostscriptPortable.exe

  • GhostscriptPortable.exe detected as suspicious or infected by 6/32 scanners used by VirusTotal
  • ASpellPortable.exe detected as suspicious or infected by 4/32 scanners
  • GSViewerPortable.exe detected as suspicious or infected by 6/32 scanners
  • LyxPortable.exe detected as suspicious or infected by 2/32 scanners
  • MiKTeXPortable.exe detected as suspicious or infected by 6/32 scanners

It's hard to tell if these are truly safe or not, but from what i've seen looking at the source code for those files, they don't do anything malicious.

The developer formerly known as ZGitRDun8705

Portable Lyx

Thank you so much for this portable app. I have been using Lyx and was wondering if I can use it as a portable app on other people's computers.

This was just what the doctor ordered.

Getting a problem - Win XP

After the MiKTeXPortable-2.6.paf.exe (or MiKTeXPortable-2.7.paf.exe) is extracted, I run the program, and choose lock from the icon - the very first time, an initialization starts, which for me fails with

Fontconfig error: Cannot load default config file

in initexmf.exe (the last about "default config file" I'm not sure 100% since the command prompt window holds for only a couple of seconds, and will not let me copy text from it) ...

[I found that \MiKTeXPortable\Other\source\MikTeXPortable.au3 contains the commands:

RunWait($path & "\initexmf.exe --dump --mklinks", $path)
RunWait($path & "\initexmf.exe --mkmaps", $path)
RunWait($path & "\initexmf.exe --update-fndb", $path)

Then if I run initexmf --mkmaps -n I get mkfntmap, and when I finally run mkfntmap, I get:
mkfntmap: The config file could not be found.

I found that mkfntmap reads a "updmap.cfg" file; however, that one is present in \MiKTeXPortable\App\MiKTeX\2.7\miktex\config ?? <-- ok, for this, one needs to run \bin\tex_prtbl\MiKTeXPortable\MiKTeXPortable.exe lock to start the environment before running mkfntmap

and here I read that Well, that message doesn't say that it can't find the fonts, it says that it can't find the fonts.conf file. ]

The same goes for both Miktex 2.6 or 2.7... Of course, if after this I run LyX, it doesn't start...
Any suggestions?

[Edit] Ok, I think I got this solved.. Biggest problem is to get some debug messages back Smiling TO do that, run everything from command line - run the environemnt first - and call lyxc instead of lyx (lyxc is apparently config, and it was left hanging as a process each time I unsccesfully tried to run lyx):

cd \LyXPortable
\LyXPortable> LyXPortable.exe lock
\LyXPortable> App\LyX\15\bin\lyxc.exe

this finally said that it couldn't find Python... So, while still in environment (that is, within LyXPortable.exe lock) command prompt, I tried

\LyXPortable> set PATH=%PATH%;C:\Python24

as I had Python from before, ran lyxc again, started getting "+checking for package", lyxc passed, and lyx started Smiling
[end EDIT]