workaround for GetLongPathName
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4197 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9b9031e8d3
commit
0a0a90d5aa
1 changed files with 15 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
_____________________________________________________________________________
|
||||
|
||||
File Functions Header v2.6
|
||||
File Functions Header v2.7
|
||||
_____________________________________________________________________________
|
||||
|
||||
2005 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
|
||||
|
@ -1365,8 +1365,14 @@ RefreshShellIcons
|
|||
|
||||
Function ${_FILEFUNC_UN}GetExeName
|
||||
Push $0
|
||||
Push $1
|
||||
Push $2
|
||||
System::Call 'kernel32::GetModuleFileNameA(i 0, t .r0, i 1024)'
|
||||
#System::Call 'kernel32::GetLongPathNameA(t r0, t .r0, i 1024)'
|
||||
System::Call 'kernel32::GetLongPathNameA(t r0, t .r1, i 1024)i .r2'
|
||||
StrCmp $2 error +2
|
||||
StrCpy $0 $1
|
||||
Pop $2
|
||||
Pop $1
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
|
||||
|
@ -1384,8 +1390,14 @@ RefreshShellIcons
|
|||
|
||||
Function ${_FILEFUNC_UN}GetExePath
|
||||
Push $0
|
||||
Push $1
|
||||
Push $2
|
||||
StrCpy $0 $EXEDIR
|
||||
#System::Call 'kernel32::GetLongPathNameA(t r0, t .r0, i 1024)'
|
||||
System::Call 'kernel32::GetLongPathNameA(t r0, t .r1, i 1024)i .r2'
|
||||
StrCmp $2 error +2
|
||||
StrCpy $0 $1
|
||||
Pop $2
|
||||
Pop $1
|
||||
Exch $0
|
||||
FunctionEnd
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue