PDA

View Full Version : CURDIR spaces iisue



Sergey
12-27-2010, 01:39 AM
Hello. Run .exe from
"c:\folder"
%CURDIR% return c:\folder
if run from
"c:\my folder"
return c:\

hmm?

linder
12-27-2010, 02:44 AM
Sergey,

%CURDIR% holds the value that the GetCurrentDirectory() API returns at application startup. Whatever "current directory" might be at that point!

I would suggest to use the "Get System Info (Installer Path Name)" script function if you would like to retrieve the full pathname, excluding the file name, of the installation currently executing.

Hope this helps.

Friedrich

Sergey
12-27-2010, 03:04 AM
thanks!