I create a password-protected self-extracting archive using WinRAR. When I open the archive the executable asks me for a password. How can I change "Enter password for the encrypted file." to a custom prompt?
Asked
Active
Viewed 3,271 times
2 Answers
1
I don't think it is possible: most parts of the SFX archives can be customized, but for this part there is simply no command or interface available to change it. You can use the -p switch when calling the executable for suppressing the dialog (e.g. compressed_file.exe -pmypass), but that would defeat the purpose of the password protection.
If you do want password protection, you would I guess need some kind of installer creation software. With e.g. the Nullsoft Scriptable Install System you can configure it similarly to an SFX archive, plus it allows for custom user prompts with which you can mimic the password protection.
jro
- 50
1
There is a solution available for Windows:
- Generate your self-extracting archive using WinRAR as you usually do. Download Resource Hacker for Windows.
- Open the file created within step 1 in Resource Hacker.
- Edit the main dialog resource 1031 of the dialog "GETPASSWORD1" in order to change the text of the static control, which is the first control of the dialog. You are also able to edit the caption of the dialog prompting for a password.
- Click on File/Save.
- Click on Action/Compile.
- Click on File/Save.
You can transfer these steps using any other resourde editor like Resedit.
Norbert Willhelm
- 445