AllowRootDirInstall should now work along with InstallDirRegKey when the specified registry value contains a root directory without a trailing backslash. When writing $INSTDIR as is, this will always be the case.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3494 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-02-20 15:13:13 +00:00
parent 7b77fdcba5
commit b4f63105e1

View file

@ -228,10 +228,10 @@ __forceinline int NSISCALL ui_doinstall(void)
char *e;
if (p[0]=='\"')
{
char *p2=CharNext(p);
p=p2;
p2 = findchar(p2, '"');
*p2=0;
char *p2;
p++;
p2 = findchar(p, '"');
*p2 = 0;
}
// p is the path now, check for .exe extension
@ -252,7 +252,7 @@ __forceinline int NSISCALL ui_doinstall(void)
}
}
mystrcpy(state_install_directory,p);
mystrcpy(state_install_directory,addtrailingslash(p));
}
}
}