2

I am currently developing an internal tool using Delphi.

If I call the project and therefore the .exe

RecUtil

It runs fine with no intervention. However if I name the project

RecUpdate

It requires user intervention to allow it to run.

This is a command line utility, the only thing that changes between compiles is the filename of the project and by extension of the .exe.

Essentially once I go over the 8.3 limit I get different behaviour on the same .exe.

Does Delphi compile an .exe differently based on the length of the filename?

I am using Delphi 10.4

If I rename the file after compilation everything is fine it works like normal.

10
  • 4
    What do you mean exactly by "requires user intervention"? Does a dialogue pop up? Does a setting need to be changed? Also, where are you doing the renaming - in some application setting in Delphi? Does the same happen if you rename the file in Windows Explorer after compiling?
    – IMSoP
    Feb 4 at 17:49
  • 2
    Ok, and what does the dialogue say?
    – IMSoP
    Feb 4 at 18:14
  • 5
    UAC includes some not perfect detection for installers partially based on filenames. Often if just changing the name triggers UAC on a new system it is due to this. See: stackoverflow.com/questions/28239808/…
    – Brian
    Feb 4 at 19:25
  • 2
    Answer to the question: No! Feb 4 at 19:44
  • 3
    To avoid UAC/InstallerDetection, simply give the app a manifest with a requestedExecutionLevel specified. This can be handled in the Application Manifest section of the project options. Feb 5 at 1:08

1 Answer 1

0

The answer to this is entirely to do with the words in the .exe name and not the number of characters.

I was naming my .exe recipeUpdate.exe which seems to trigger this UAC issue.

I removed the word update and it works fine.

1
  • The issue is triggered only if you don't supply a UAC manifest, which (among other things) disables this keyword detection. Feb 6 at 18:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.