Tomasz Łuczak schrieb:

>> Thanks, it should working but still missing support for installation >> for current user

I've now this code now that works for me also in this case (many thanks that you pointed me to this):

; check if the variable TLroot exists (the case when it is installed using the program "tlpmgui")
  ${if} $LatexPath == ""
ReadRegStr $String HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "TLroot"
   ${if} $String == ""
ReadRegStr $String HKCU "Environment" "TLroot" ; the case when installed without admin permissions
   ${endif}
   StrCpy $LatexPath "$String\bin\win32"
   ; check if the latex.exe exists in the $LatexPath folder
   !insertmacro FileCheck $5 "latex.exe" "$LatexPath"
   ${if} $5 == "False"
    StrCpy $LatexPath ""
   ${endif}
  ${endif}

OK, all characters are correct.
for full test you should use string with all polish diacritics:
"ążśźęćńółĄŻŚŹĘĆŃÓŁ"

Thanks, the message has "ę" and it should work when this is correctly displayed.

Just another annotation for tlpmgui:

When I press the button to display the choice box for the language packs, I can't focus this window. The problem is that whenever I move the mouse over tlpmgui's main window, this one gets the focus and the language window is hidden behind it. This is a bit annoying.

> The directory bin\win32 is removed during uninstallation. Probably you
> had opened this directory in explorer or any file from this directory
> was opened.

Yes it is. Sorry I meant the folder "setup-win32" that isn't removed.

best regards
Uwe

Reply via email to