Thread overview
Since DMD 2.089.0 and later, compiled .exe showing SFX zip and opening with winRar when use resource.
Aug 18, 2020
Marcone
Aug 18, 2020
user1234
Aug 19, 2020
Kagamin
Aug 30, 2020
Marcone
Aug 30, 2020
novice2
Aug 30, 2020
novice2
August 18, 2020
When I compile the source .d code to .exe adding an icon using resource .res file in dmd 2.089.0 and later, the .exe file show SFX zip in it is properties and open with winRar. This ir normal or is a Bug? See images below.

Se image in this links:

SFX zip in it is properties: https://i.imgur.com/dH7jl5n.png
Opening with winRar: https://i.imgur.com/s7C9mZn.png
August 18, 2020
On Tuesday, 18 August 2020 at 19:01:17 UTC, Marcone wrote:
> When I compile the source .d code to .exe adding an icon using resource .res file in dmd 2.089.0 and later, the .exe file show SFX zip in it is properties and open with winRar. This ir normal or is a Bug? See images below.
>
> Se image in this links:
>
> SFX zip in it is properties: https://i.imgur.com/dH7jl5n.png
> Opening with winRar: https://i.imgur.com/s7C9mZn.png

Try to extract the PE header and paste it here. It's possible that something interfer with SFX header... can be also winrar that interpret wrongly the header. You should be able to see quickly any problem with the help of this table http://faydoc.tripod.com/structures/15/1594.htm
August 19, 2020
On Tuesday, 18 August 2020 at 19:01:17 UTC, Marcone wrote:
> SFX zip in it is properties: https://i.imgur.com/dH7jl5n.png
> Opening with winRar: https://i.imgur.com/s7C9mZn.png

Probably winrar messing with your file manager. Try to uninstall ungerister winrar from your file manager or try a different file manager.
August 30, 2020
On Wednesday, 19 August 2020 at 08:27:34 UTC, Kagamin wrote:
> On Tuesday, 18 August 2020 at 19:01:17 UTC, Marcone wrote:
>> SFX zip in it is properties: https://i.imgur.com/dH7jl5n.png
>> Opening with winRar: https://i.imgur.com/s7C9mZn.png
>
> Probably winrar messing with your file manager. Try to uninstall ungerister winrar from your file manager or try a different file manager.

I like Winrar. That is no problem before dmd 2.089.0.
If I add an icon in exe for example I got this problem.
August 30, 2020
Dear Marcone, that you want we all to do?
Rar detect sfx by small signature, and some bytes in exe looks like signature.
But this is not the problem - just do not open your exe with rar.
Or i just don't understand...

Another options:
1. try to compile with anoter .res or/and  another .ico (if magic bytes in .res)
2. wait next dmd version (if magic bytes in dmd runtime)
3. try gdc or ldc from https://dlang.org/download.html (if magic bytes in dmd runtime)
4 try to pack yor exe with free packer like https://upx.github.io/
August 30, 2020
5. Open WinRAR support issue
6. Upload your .exe and say WinRar version then other peoples can reproduce