Skip to content
⌘ NSIS Forum Archive

Needing help with 8.3 filepaths

3 posts

Gato Muerto#

Needing help with 8.3 filepaths

Is there a method by which NSIS can detect the short filename of a path that a software is installed to?

I am attempting to repackage an existing program that requires path information to be placed in ini files in order to run correctly. Apparently one of the lines has to be in the 8.3 format. I know that this is not as simple as converting the path to 8.3, and was wondering if anyone knows how to detect the $INSTDIR after installation has completed.

Thanks for the help.
scully13#
Take a look at GetFullPathName. It might be what you need. You can add /SHORT to the command above to achieve the shortened path.
Gato Muerto#
Thank you. I have been using NSIS for a year now and I still keep coming up to new things that I have never heard about before. Keeps reminding me that this is pretty damn nifty, and I don't know nearly as much as I thought I did.