.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   patching NSIS so that it won't stupidly append a "Half-Life" or something in the path (http://forums.bots-united.com/showthread.php?t=3658)

Whistler 26-02-2005 04:06

patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
find this in the ui.c file:
PHP Code:

        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_strg_tmp))
          {
            
lstrcat(addtrailingslash(dir), post_str);
          }
        } 

...and comment all this out :)

koraX 26-02-2005 09:49

Re: patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
what is NSIS ?

sPlOrYgOn 26-02-2005 11:48

Re: patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
http://nsis.sourceforge.net/

koraX 26-02-2005 12:32

Re: patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
I see.

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

KaCaT 27-02-2005 09:05

Re: patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
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 01:30

Re: patching NSIS so that it won't stupidly append a "Half-Life" or something in the path
 
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

Quote:

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 :)


All times are GMT +2. The time now is 02:23.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.