exe

Extract internal EXE info

老子叫甜甜 提交于 2019-12-03 16:28:01
Windows EXE files have some metadata like CompanyName , FileVersion , InternalName , ProductName , OriginalFileName , ProductVersion , etc. How can I extract such metadata from using PHP? Rei I got curious about this, so I decided to write this function: function getFileVersionInfo($filename,$encoding='UTF-8'){ $dat = file_get_contents($filename); if($pos=strpos($dat,mb_convert_encoding('VS_VERSION_INFO','UTF-16LE'))){ $pos-= 6; $six = unpack('v*',substr($dat,$pos,6)); $dat = substr($dat,$pos,$six[1]); if($pos=strpos($dat,mb_convert_encoding('StringFileInfo','UTF-16LE'))){ $pos+= 54; $res = []

Compile stand alone exe with Cygwin

拜拜、爱过 提交于 2019-12-03 14:54:55
I want to make a stand-alone exe with cygwin. I have two options: Staticly link cygwin1.dll If I can statically link cygwin1.dll, then I can get a stand-alone exe. Merge cygwin1.dll with myprog.exe If I can merge cygwin1.dll with my program, the I can get a stand-alone exe. Do not suggest that I use IlMerge. This will not work because I didn't compile my program with .NET. Are any of these options possible? If not, is there anything that is possible with this dilemma? Thanx! I can see two possibilities that you might consider reasonable. One would be to build a stub executable with a different

Use SSL with Delphi yet still having a single exe

流过昼夜 提交于 2019-12-03 12:58:09
问题 We use Indy and we need SSL eMail support in our app., however we need to have our application in a single .Exe. We know that the default Indy handler requires to have the dlls in the path. Extracting the Dlls from one of the EXE's resources would be the last resort. Any better ideas? 回答1: Try SSLBlackBox. 回答2: TOndrey gave you a good answer. I use SecureBlackBox as well. You may consider some other third party components: StreamSec SecureBridge from DevArt 回答3: Be aware: if you add SSL/TLS

How can I determine which libraries are used in a Delphi program I don't have the source for?

≯℡__Kan透↙ 提交于 2019-12-03 12:30:23
问题 I have a windows .exe file, but the source code for it is missing. The developer was not responsible and left our company. I think it was a delphi/pascal program. The developer used many libraries but I am not sure which ones. Is there a tool that can tell me which libraries were used to make this exe? 回答1: One application that lists the used units in a delphi binary (similar to RRUZ's demonstration), is XN Resource Editor. Latest version is here AFAIK. The below sample screen shot for

Compile ruby script into exe?

烈酒焚心 提交于 2019-12-03 11:42:17
问题 Is it possible to compile a ruby script into an .exe on Windows? I have searched everywhere and I've tried the following (It looked like RubyScript2EXE, Shoes and Crate all seemed dead or abandoned.): http://ocra.rubyforge.org/ http://exerb.sourceforge.jp/index.en.html I'm using Ruby 1.8.7 on Windows 7 Ultimate (64bit.) from a clean system I do this: Install RubyInstaller 1.8.7-p358 from rubyinstaller.org gem install watir gem install ocra git clone git://github.com/snaury/exerb-mingw.git cd

Conversion of .class to jar and .class to exe

时光总嘲笑我的痴心妄想 提交于 2019-12-03 09:43:07
问题 How do I convert: class file to jar file using cmd? class file to exe file? jar file to exe? Can I convert exe file to jar file? 回答1: Class files to jar files Usage: jar {ctxu}[vfm0M][jar-file] [manifest-file] [-C dir] files ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archive -u update existing archive -v generate verbose output on standard output -f specify archive file name -m include manifest information from specified

Set EXE VersionInfo

二次信任 提交于 2019-12-03 06:23:39
问题 The information on the version Exe-file I receive by means of VerQueryValue. Is there an inverse function (WinApi or Delphi) which can register (establish or change) such information? Here, for example, there is a program which is able to do so. How may it work (http://www.angusj.com/resourcehacker)? 回答1: The version information is stored via resources; to edit that you simply need to edit that resource. Here is a unit I found that can clone an existing file version information and attach it

Use SSL with Delphi yet still having a single exe

倾然丶 夕夏残阳落幕 提交于 2019-12-03 03:54:36
We use Indy and we need SSL eMail support in our app., however we need to have our application in a single .Exe. We know that the default Indy handler requires to have the dlls in the path. Extracting the Dlls from one of the EXE's resources would be the last resort. Any better ideas? Try SSLBlackBox . TOndrey gave you a good answer. I use SecureBlackBox as well. You may consider some other third party components: StreamSec SecureBridge from DevArt Be aware: if you add SSL/TLS support inside your executable, it might become restricted for export . If you're in the USA, this could mean that

How to write and executable Windows .exe manually (machine code with Hex editor)?

北慕城南 提交于 2019-12-03 01:41:12
问题 I'd like to know how is it possible to write something as simple as an Hello World program just by using an Hex Editor. I know that I could use an assembler and assembly language to this at a near machine level but I just want to experiment with really writing machine code in a toy example such as Hello World. This could be a simple DOS .COM file that I can run on DOSBox. But it would be nice if someone could provide an example for an .EXE file for running it directly on my Windows PC. This

Conversion of .class to jar and .class to exe

有些话、适合烂在心里 提交于 2019-12-03 01:15:21
How do I convert: class file to jar file using cmd? class file to exe file? jar file to exe? Can I convert exe file to jar file? Class files to jar files Usage: jar {ctxu}[vfm0M][jar-file] [manifest-file] [-C dir] files ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archive -u update existing archive -v generate verbose output on standard output -f specify archive file name -m include manifest information from specified manifest file -0 store only; use no ZIP compression -M do not create a manifest file for the entries -i generate