Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert Path to 8.3 format with Inno Setup

I need to get 8.3 formatted path (in this case {app}) for registry entry.

Unfortunately this specific Delphi function does not work in Inno Setup

function ExtractShortPathName(const S: FullFileName): string;

like image 386
RobeN Avatar asked Feb 18 '23 14:02

RobeN


1 Answers

Use the GetShortName function. From the reference:

Returns the short version of the specified long filename. If the short version of the long filename is not found, the long filename is returned.

like image 158
TLama Avatar answered Mar 05 '23 02:03

TLama