You are here

Why does launcher.ini sometimes write DOS names?

6 posts / 0 new
Last post
cosmosis
Offline
Last seen: 10 years 2 months ago
Joined: 2012-04-20 02:12
Why does launcher.ini sometimes write DOS names?

OK, I'm trying to do an old version of Serv-U FTP server. ServU6Portable.ini is set to write the paths to the serv-u ini. Something like:

[FileWrite3]
File=%PAL:AppDir%\ServU6Portable\ServUDaemon.ini
Type=ConfigWrite
Entry=Access1=
Value=%PAL:DataDir%\FTP|RL

and it works fine normally, but if I compress the whole package as an SFX Rar set to execute the PA launcher, the paths get written with DOS names, like:

Access1=C:\DOCUME~1\user\LOCALS~1\Temp\RarSFX0\Data\FTP|RL

and this causes access to be stopped.

Any reason for this? I know PAL isn't meant to be ran like this, but I still see no reason why this would happen? Any ideas?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2007-04-15 21:08
WinRAR problem/design decision

Theoretically, 8.3 filenames should never cause a program to stop working correctly. All applications should use Windows' path handling functionality which prevents all such problems. However, many things don't.

My guess would be that the RAR SFX thing uses short paths when running the app for historical reasons (apps that couldn't cope with it ten or fifteen years ago, I'd guess). PAL will use the path that it's been run from, and that is the short version.

As you say, PAL isn't meant to be run like this. (Why would you want to use it this way, anyway?)

If you really feel the need to change the behaviour of this so that it expands the path, delve into the realm of custom code:

${SegmentFile}

${SegmentPre}
    GetFullPathName $0 $DataDirectory
    ${SetEnvironmentVariablesPath} DataDirLong $0
!macroend

Then you will be able to use %DataDirLong% instead of %PAL:DataDir%.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

cosmosis
Offline
Last seen: 10 years 2 months ago
Joined: 2012-04-20 02:12
Well that's over my head, and

Well that's over my head, and I wouldn't even know in which file that goes, but I thank you for the info.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2007-04-15 21:08
Read the manual

The manual covers custom code.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

jlampe at rhinosoft
jlampe at rhinosoft's picture
Offline
Last seen: 10 years 7 months ago
Joined: 2012-05-02 10:37
Please Upgrade - Serv-U 6 is 8 years old, has some holes

Be careful not to use Serv-U v6 for any Internet-facing application. The v6 release was published in 2004 and v6 updates were discontinued in 2008. Since 2008 some security vulnerabilities in v6 have been discovered and have only been fixed in current versions of Serv-U.

Instead of using Serv-U v6, please consider updating to version 11 or version 12 (coming in May) for any Internet-facing use.

cosmosis
Offline
Last seen: 10 years 2 months ago
Joined: 2012-04-20 02:12
Thanks for the heads-up. This

Thanks for the heads-up. This is mostly me learning PAL and I'm not doing any serious serving. In fact, I can't even forward ports ATM, not to mention that this old laptop can't handle anything newer.

Log in or register to post comments