Skip to content
⌘ NSIS Forum Archive

Exepath and substed disk

3 posts

akatik#

Exepath and substed disk

Good day.
I need your help. I'm trying to get path for installer file - $EXEPATH is working great. But when I start my executable from substed drive - for example I have drive E:\ and I substed it as W:\ - then I need real path for this file, i.e. E:\longpathtofile\, not W:\longpathtofile.
Windows system function GetCurrentDirectory return just the same, but I need the real path.
With best regards.
Anders#
You could try calling QueryDosDevice or GetFinalPathNameByHandle with the system plugin but first maybe you could explain why you need to do this and why the other path is not "real"?