horsicq / DIE-engine

DIE engine
MIT License
2.29k stars 317 forks source link

Suggestion: Make ressources information accessable via commandline #80

Open azra1l opened 1 year ago

azra1l commented 1 year ago

Would it be possible to have the information provided under ressources (especially version) be accessable through diec.exe?

I would like to automate some tasks regarding package creation for our software deployment, and if i could gather name and version of the software via script, that would really help.

I really just need diec.exe to give me the output of this section for every exe file it scans:

2023-02-12 01_44_53-PE

Or am i just dumb, and the information is already accessable on the commandline and i just didn't find it :S

I am looking for ways to detect and process this sort of information reliably via script for years now :S It may appear like a minor QoL issue, but it would really help me alot for what i am trying to do.

azra1l commented 1 year ago

Or, is there any other way i could access the DIE engine via PowerShell, to get the info i need? 🤔

horsicq commented 1 year ago

Hello! Thanks a lot for the idea. I will add it to diec.exe

adoxa commented 1 year ago

You can get version information directly from PS, e.g. https://stackoverflow.com/questions/30686/get-file-version-in-powershell

azra1l commented 1 year ago

Hello! Thanks a lot for the idea. I will add it to diec.exe

Thanks alot, but apparently i don't even need DIE to access this information 😅. Then again, having more information available on the commandline is always better of course.

azra1l commented 1 year ago

You can get version information directly from PS, e.g. https://stackoverflow.com/questions/30686/get-file-version-in-powershell

🤔 To be fair, i am coming from ubuntu/bash and just recently converted all my stuff to windows/pwsh, so i didn't even think about accessing windows file properties 😵 i guess my life got a whole lot easier and i didn't even see the obvious solution right infront of me 🤩 DIE already reliably detects 99% of setup types i get to deal with, so i will see how far i can take this.