Menu

#404 UAC Message or Title

open
nobody
None
5
2022-12-07
2021-09-13
Jason Berg
No

We replaced WinZip with 7Zip for creating self-extracting executable files. Our self-extracting files also run a specified program so we use SFX Modules for installers. My question is this. Previously when we used WinZip to create our self-extracting installers, a UAC dialog would display prompting the user "Do you want to allow this app to make changes to your device?". We expect this. However, the dialog would contain an icon for WinZip and the name of our self extracting program. Using 7Zip to create the self-extracting executable installers, when re run the installer the UAC dialog displays a generic icon for the 7Zip app and instead of our self-extract file name the message shows "7z Setup SFX". See attached image. Although the UAC message does list our company as a verified publisher, the title "7z Setup SFX" is not related to our company and may appear as untrustworthy. Is it possible to change the title to display our self-extract filename?

1 Attachments

Discussion

  • Igor Pavlov

    Igor Pavlov - 2021-09-13

    Windows looks file name and strings in resources to run UAC window.
    You can try to change the name of external exe installer and remove or change version resource in 7-zip sfx. So Windows will not show UAC for 7-zip and it will show UAC for your exe.

     
  • Jason Berg

    Jason Berg - 2021-09-14

    Are you saying to change the name of the ExecutableFile defined in the Installer config file or the name we use for our self-extracting executable file? Also can you provide detail on how to change the version resource in 7-zip sfx?

     
  • Igor Pavlov

    Igor Pavlov - 2021-09-15

    Windows thinks that 7-zip sfx needs administrator rigths.
    So you must change it with some way.
    Rename external file.
    If it doesn't help, change resource with some program or recompile sfx with changed resources.

     
  • Jason Berg

    Jason Berg - 2021-09-15

    We don't mind that our 7-zip sfx causes the UAC to prompt for admin rights. We would just like the UAC title or message to display our sfx name like what occurred with our WinZip sfx

     
  • Jonathan Gilbert

    We have this same issue. We've been able to customize everything else we need to. The result is an EXE that is, for all intents and purposes, our installer. The actual mechanic is that 7-zip extracts files to a temp folder and then launches the actual installer out of those files. But, when you double-click our installer, the UAC dialog doesn't ask the user if they want our company's installer to make changes. It asks if the user wants to permit "7z Setup SFX" to make changes. It is a cosmetic issue that by and large hasn't caused problems, but this was explicitly called out recently in a support session with a large client. I don't know where "7z Setup SFX" is coming from specifically or what I can do to change it. Perhaps it is in a VERSIONINFO resource embedded in 7zS.sfx? Is there any way to edit this?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.