Trying to make a portable version of NoMachine Enterprise Client

Forum / NoMachine for Windows / Trying to make a portable version of NoMachine Enterprise Client

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14831
    molokovskikh
    Participant

    Hi everybody!

    I have bug when trying to make portable version from installed files (see attached, link removed).

    Her sense matter in time open dialog settings. This just not occur.

    I took help from nxplayer –help and saw this option:

     

    NXPLAYER – Version 5.2.21

    Usage: nxplayer [OPTIONS]

    –config FILENAME | DIRECTORY

    Run nxplayer reading global configuration settings from the file

    FILENAME. FILENAME can either be an absolute or relative path.

    Hmm, I thought that this is what you need for portable nx.

    But when I built all necessary… I faced with this trouble (see above)

    I.e. I can’t  seeing settings dialog. Something occurred wrong…

    Somebody confronted with similar things?

    P.S.: Tested OS Windows 7 Prof 64x (also Windows 7 Starter 32x)

    #14835
    Britgirl
    Keymaster

    Please can you send the file to forum[at]nomachine[dot]com, or attach it here if it’s not too big? Also, what you mean when you write:

    Her sense matter in time open dialog settings. This just not occur.

    #14837
    molokovskikh
    Participant

    List files in zip that wasn’t attached:

    nx/nx.cmd

    nx/bin

    nx/bin/libnxcsl.dll

    nx/bin/libpng.dll

    nx/bin/libvorbisenc.dll

    nx/bin/libnxcl.dll

    nx/bin/libnxcde.dll

    nx/bin/libnxdiwi.dll

    nx/bin/nxauth.exe

    nx/bin/nxssh-add.exe

    nx/bin/nxplayer.exe

    nx/bin/libssl.dll

    nx/bin/libmdnsd.dll

    nx/bin/libnxesc.dll

    nx/bin/nxsh.exe

    nx/bin/nxkb.exe

    nx/bin/libgcc_s_sjlj-1.dll

    nx/bin/libnxewc.dll

    nx/bin/libogg.dll

    nx/bin/libnxcim.dll

    nx/bin/nxclient.bin

    nx/bin/libz.dll

    nx/bin/libnxlp32.dll

    nx/bin/libnxlo.dll

    nx/bin/libnxfs64.dll

    nx/bin/libnxusb64.dll

    nx/bin/libvorbis.dll

    nx/bin/libyuv.dll

    nx/bin/libopus.dll

    nx/bin/libnxc.dll

    nx/bin/libnxn.dll

    nx/bin/nxplayer.bin

    nx/bin/libfontenc.dll

    nx/bin/libvorbisfile.dll

    nx/bin/libnxdixl.dll

    nx/bin/libnxup.dll

    nx/bin/nxexec.exe

    nx/bin/nxkeygen.exe

    nx/bin/libwinpthread-1.dll

    nx/bin/libnxservice64.dll

    nx/bin/libnxd.dll

    nx/bin/nxfsserver.exe

    nx/bin/nxclient.exe

    nx/bin/libspeex.dll

    nx/bin/libnxpdf32.dll

    nx/bin/libqt.dll

    nx/bin/libnxcau.dll

    nx/bin/libnxne.dll

    nx/bin/libnxpdf64.dll

    nx/bin/nxssh.exe

    nx/bin/libcrypto.dll

    nx/bin/libnxlp64.dll

    nx/bin/libpixman.dll

    nx/bin/libvp8.dll

    nx/bin/libnx.dll

    nx/bin/libwebm.dll

    nx/bin/libfontconfig.dll

    nx/bin/libssh.dll

    nx/bin/libjpeg.dll

    nx/bin/libfreetype.dll

    nx/bin/drivers

    nx/bin/nxfs.exe

    nx/bin/libstdc++-6.dll

    nx/bin/libnxdift.dll

    nx/bin/libnxdifb.dll

    nx/bin/nxssh-agent.exe

    nx/bin/nxlpd.exe

    nx/bin/libnxdiex.dll

    nx/bin/libnxusb.dll

    nx/bin/libexpat.dll

    nx/bin/libspeexdsp.dll

    nx/bin/libnxfs.dll

    nx/bin/nxpost.exe

    nx/bin/libnxservice.dll

    nx/bin/libnxs.dll

    nx/start.cfg

     

    start.cfg is just template for player.cfg

    Content of ng.cmd is:

    @echo off

    set RUN_NX_PATH=%~dp0

    set RUN_NX_PATH=%RUN_NX_PATH:~0,-1%

    if not exist %RUN_NX_PATH%\.nx mkdir %RUN_NX_PATH%\.nx

    if not exist %RUN_NX_PATH%\.nx\config mkdir %RUN_NX_PATH%\.nx\config

    if not exist %RUN_NX_PATH%\Documents mkdir %RUN_NX_PATH%\Documents

    if not exist %RUN_NX_PATH%\Documents\NoMachine mkdir %RUN_NX_PATH%\Documents\NoMachine

     

    if exist DEL %RUN_NX_PATH%\.nx\config\player.cfg

    setLocal EnableDelayedExpansion

    For /f “tokens=* delims= ” %%a in (start.cfg) do (

    Set str=%%a

    set str=!str:RUN_NX_PATH=%RUN_NX_PATH%!

    echo !str!>>%RUN_NX_PATH%\.nx\config\player.cfg

    )

    ENDLOCAL

    bin\nxplayer –config %RUN_NX_PATH%\.nx\config\player.cfg

     

    So, I want to run nx.cmd on removable flash-disk and enjoy prepared portable version without install.

    But a feel that something wrong, or maybe I want а lot

     

    #14839
    Tor
    Participant

    Hi. If I’ve understood correctly the problem you’re reproducing, it should be due to the “Personal NX dir” using a relative path. Try to generate the new CFG by setting the “Personal NX dir” to an absolute path pointing to the .nx folder on the portable device.
    You can share your new CMD script by sending it to forum[at]nomachine[dot]com, so I can test it if you’ve more troubles.

    PS: I’d strongly suggest to ship images with your portable client, without them the interface is quite… ugly. 😀

    #14840
    molokovskikh
    Participant

    Try to generate the new CFG by setting the “Personal NX dir” to an absolute path pointing to the .nx folder on the portable device.

    It’s wonderful idea, in respect that on each time absolute path to device will be different on some machine. I did do that already… Problem not solved.

    And also I faced with corrupted font by windows. But it other song. Although it may be…

    #14843
    Tor
    Participant

    I did do that already… Problem not solved.

    Did you do it in a new startup script? Because the one I’ve used yesterday was still not setting correctly the path, although it was doing it correctly for the System NX directory.

Viewing 6 posts - 1 through 6 (of 6 total)

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.