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:
parent
7b77fdcba5
commit
b4f63105e1
1 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue