|We don't bite newbies here... much|
Icon for pp on Strawberryby aplonis (Pilgrim)
|on Jun 13, 2017 at 15:38 UTC||Need Help??|
aplonis has asked for the wisdom of the Perl Monks concerning the following question:
Since the demise of the --icon option inside of pp, I had for some time now been doing the icon-swap with Win32::Exe instead. But now I am finding that that is no longer reliable. For some scripts it works just fine. For others, though, it works just by half. On those where it half-works, the *.exe will actually run, but only after issuing errors at top of console. Those errors seem all to be complaints about the archive itself. And sure enough, if I change the extension from *.exe to *.zip after a Win32::Exe icon-swap, then WinZIP says the archive is corrupt. Then, after I change back, the *.exe once again half-works with errors just as before. It does what I want, but only after a slew of archive-complaints.
format error: bad signature: 0xdd58f7da at offset 5068572 in file C:\Users\gstarl\Desktop\foo.exe at -e line 614.
A whole bunch like that. All different HEX, at different locations, all at line 614. And WinZIP won't open it after the change.
If it were only just for myself, then I could be living with that. But if it were just for myself, I'd leave it as *.pl and not bother creating an *.exe. That is something I only ever do for other people. And the errors lists, however seemingly harmless, will cause alarm in those folks.
So... I was wondering, might there perhaps be away to trick pp itself into using always a different *.ico file, instead of the Camel?
The reason I want that, (aside from vanity) is to flag those *.exe files I've written apart from any that have been downloaded. Since running one on Windows always gives the pop-up warning "May harm your computer," I've gotten folks here to trust the in-house ones which have a non-camel icon.
I've searched my whole PC for every instance of the camel, and replaced it temporarily, trying out pp to see if it got carried through. But not even replacing the pp.ico camel inside of Strawberry itself had no effect. Camels come out the other end, no matter what. I like the camel just fine. I do. But I need to enforce some distinction in-house for scripts that I've written, if only because now folks are used to it.
Since no longer I can change the icon after making the *.exe, is there any way to fool pp into using a different *.ico originally?