PDA

View Full Version : patching NSIS so that it won't stupidly append a "Half-Life" or something in the path


Whistler
26-02-2005, 05:06
find this in the ui.c file:

if (g_header->install_directory_auto_append)
{
const char *post_str = ps_tmpbuf;
GetNSISStringTT(g_header->install_directory_auto_append);
// display name gives just the folder name
if (lstrcmpi(post_str, g_tmp))
{
lstrcat(addtrailingslash(dir), post_str);
}
}

...and comment all this out :)

koraX
26-02-2005, 10:49
what is NSIS ?

sPlOrYgOn
26-02-2005, 12:48
http://nsis.sourceforge.net/

koraX
26-02-2005, 13:32
I see.

I'm using http://www.jrsoftware.org/isinfo.php instead.

KaCaT
27-02-2005, 10:05
Just add a backslash to the end of your installation directory in your NSIS script will fix that (C:\SIERRA\Half-Life\ for example)

Whistler
05-03-2005, 02:30
I don't like Inno Setup very much, as it's written in Pascal with Borland's proprietary VCL library (i.e., Delphi). If I want to patch it, I will have to pay quite a lot of $$$ and also I don't know Pascal

just add a backslash to the end of your installation directory in your NSIS script will fix that (C:\SIERRA\Half-Life\ for example)
thanks for that! I didn't think on it will be simple like this :)