• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tsukasa no Hibi

Cloudy Sky. Occasional Rain.

You are here: Home / Blog / Making the NX Client portable

Making the NX Client portable

2008-09-02 by tsukasa 11 Comments

NX is great. I’m deeply in love with it. Sometimes it’s acting like a real jerk, though. The NX Web Companion is installing a lot of crap into the active user’s profile. The NX client writes stuff in the active user’s profile. Both isn’t really convenient for me.

I prefer to have all my settings with me on a USB thumbdrive. So, in the spirit of PortableApps I’ll show you how to simply turn NX into a portable application.

First thing to do is installing NX client on a machine, if you have installed already – that’s fine. Copy the entire program folder to a new directory structure like NxClientPortable\App (I’ll follow the PortableApps schema here). In NxClientPortable create a new directory named “Data” and a batch file with the following contents:

@echo off
set USERPROFILE=%CD%\Data

App\nxclient.exe %*

reg delete /f /va "HKCU\Software\Cygnus Solutions"
reg delete /f /va "HKLM\Software\Cygnus Solutions"

That’s it. Start the batch file and you’ll be fine. No need for installations, no files in some stranger’s profile. Everything goes back to your thumbdrive neatly.

This example also demonstrates why batch still isn’t dead: The USERPROFILE variable will be changed just within the scope of our batch file, all other applications will still use the path specified in the “global” instance of the variable.

Filed Under: Blog Tagged With: How To, Portable App, Software, Windows

Reader Interactions

Comments

  1. joshinATL says

    2008-09-10 at 20:43

    awesome! i’ve been looking for a tip on how to do this!

    Reply
  2. Paulo says

    2008-10-18 at 10:38

    Well done! That’s a very good tip.

    [quote comment=””][…] public links >> portableapps

    Making the NX Client portable Saved by Meskarune on Sat 27-9-2008

    PortableApps.com – portable freeware apps set Saved by […][/quote]

    Reply
  3. Sysadmn says

    2008-12-02 at 20:49

    Don’t make the mistake I did and add a space at the end of the “\Data”. Nxclient will happily try to create files such as
    “..\Data \Xauthority” and fail.

    Reply
  4. de_ramon says

    2009-01-12 at 17:17

    [quote comment=””][…] public links >> portableapps

    Making the NX Client portable Saved by Meskarune on Sat 27-9-2008

    PortableApps.com – portable freeware apps set Saved by […][/quote]

    Reply
  5. de_ramon says

    2009-01-12 at 17:21

    [quote comment=””][…] public links >> portableapps Making the NX Client portable Saved by Meskarune on Sat 27-9-2008 PortableApps.com – portable freeware apps set Saved by […][/quote]

    Reply
  6. de_ramon says

    2009-01-12 at 17:23

    Nice, just tested it. How can I add a menu entry to portableapps, too?
    cu,
    Ralf
    [quote comment=””][…] public links >> portableapps Making the NX Client portable Saved by Meskarune on Sat 27-9-2008 PortableApps.com – portable freeware apps set Saved by […][/quote]

    Reply
  7. enigma says

    2009-03-07 at 20:41

    Great tutorial. Just what I was looking for and it works perfectly.

    Thanks.

    Reply
  8. Hamish says

    2009-06-03 at 13:27

    I normally never write replies on these websites but I was so happy with how this worked I just had to reply. Thank you. A lot.

    Reply
  9. chico says

    2013-05-29 at 21:48

    doesnt work anymore “cannot find configuration file \par”

    Reply
  10. chico says

    2013-05-29 at 22:03

    ok it works , wasnt working because i wrote it with that damn wordpad

    Reply

Trackbacks

  1. Recent Links Tagged With "portableapps" - JabberTags says:
    2008-09-29 at 11:49

    […] public links >> portableapps Making the NX Client portable Saved by Meskarune on Sat 27-9-2008 PortableApps.com – portable freeware apps set Saved by […]

    Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Tags

.net AutoHotkey Bitcasa Blog C# Docker Fonts Fun Google Chrome Hardware How To Life Linux Mono Mplayer Music My NAS nVidia OBS OpenEdge OpenSSH Palaver Pangya! Portable App PowerShell Programming Quote RaiDrive Reminder Scripting Software Streaming Technology Tips twitter Video Virtualization VMware Web Windows Wine WordPress Wuala YouTube ZNC

Cool stuff

  • AdiIRC
  • Affinity Designer
  • Affinity Photo
  • AquaSnap
  • Arch Linux
  • Archive Team
  • ConEmu
  • Debian
  • Directory Opus
  • Far Manager
  • FileLocator Pro
  • Fluent Search
  • foobar2000
  • Forte Agent
  • IRCCloud
  • ISBoxer
  • Jetbrains Rider
  • Newsblur
  • OBS Studio
  • Obsidian.md
  • RaiDrive
  • Sublime
  • SyncBackPro
  • The Semware Editor
  • True Launch Bar
  • Vivaldi
  • Wavebox
  • WinHex
  • WinRAR
  • WinSCP
  • XYplorer
  • ZNC
  • Zoom Player Max

Semantic Web

  • Mastodon
  • Tsukasa no Hibi
  • Tsukasa no Hibi Sitemap

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Footer

About

Going since 2004, Tsukasa no Hibi is my personal blog about technology, media and sometimes society.

More about Tsukasa no Hibi

WordPress · Log in