
bertil.hedenstrom1.552491002065735E12 asked a question.
Short file name problem
Hi,
I have repackaged my application with IS Repackager.
One key in an .ini file points to "Program Files". The key appears in the inc file like this:
MyKey=_Short(%ProgramFilesFolder%\MyApp)
When I convert to an .ism file and build my MSI, the key value is not resolved to a short file name. It looks like
MyKey=_Short(%ProgramFilesFolder%\MyApp)
instead of
MyKey=C:\Progra~1\MyApp
I found no info about the _Short() command, and wonder how to make it work.
Can anyone help ?
Thanks
' read ProgramFilesFolder property
set fo = FSO.GetFolder(Property("ProgramFilesFolder"))
' convert to short path name from long path name
' assign the short path name to a property
Property("SP_PROGRAMFILESFOLDER") = fo.ShortPath
set fo = nothing
set FSO = nothingFor more information, please refer to FileSystemObject on MSDN .
Otherwise you could set the SHORTFILENAMES property to 1. This is a brick in the face approach that would use short filenames for everything.
I think I will choose the first solution and store the SP name in a property.