On 21 Maj, 17:35, Mint wrote:
> On May 21, 3:31Â am, Marcus wrote:
>
> > I want to set the Description of my .exe file (it is a .NET
> > assembly).
> > You know that description that is seen in Windows Task Manager process
> > tab. Almost every running process has got one. They can be a whole
> > sentence explaining what the process is about.
>
> > I need a way of setting this description of my .exe without any GUI. I
> > need it to be set from a command line tool or something alike.
>
> > Is there a tool like that? Maybe something built into Windows?
>
> That information is stored in the executable.
>
> For example in assembly language, a resource file like this is used.
> Your programming language should have something similar.
>
> #define APP_VERSION_INFO Â Â 1 Â Â // {{ define at the top your .RC
> file }}
>
> // example version resource
> APP_VERSION_INFO VERSIONINFO
> Â Â FILEVERSION 1,1,0,0
> Â Â PRODUCTVERSION 1,1,0,0
> Â Â FILEFLAGSMASK 0x17L
> Â Â FILEFLAGS 0x0L
> Â Â FILEOS 0x4L
> Â Â FILETYPE 0x1L
> Â Â FILESUBTYPE 0x0L
> {
> Â Â BLOCK "StringFileInfo"
> Â Â {
> Â Â Â Â BLOCK "040904b0"
> Â Â Â Â {
> Â Â Â Â Â Â VALUE "CompanyName", "Siege_Works"
> Â Â Â Â Â Â VALUE "FileDescription", "Delete Windows XP Temporary
> Directories"
> Â Â Â Â Â Â VALUE "FileVersion", "1.0"
> Â Â Â Â Â Â VALUE "InternalName", "Del_Tmp_Dirs"
>       VALUE "LegalCopyright", "© Quality Home Repairs"
> Â Â Â Â Â Â VALUE "OriginalFilename", "Del_Tmp_Dirs.exe.exe"
> Â Â Â Â }
> Â Â }
> Â Â BLOCK "VarFileInfo"
> Â Â {
> Â Â Â Â VALUE "Translation", 0x409, 1200
> Â Â }
>
>
>
> }- Dölj citerad text -
>
> - Visa citerad text -
Yes, there is such a file it is called AssemblyInfo.cs.
I can set the description in this file before I build the exe file.
I need however some way of inject this info into the exe file without
the need to rebuild the exe