Python007 Posted March 22, 2009 Share Posted March 22, 2009 Hi all, This is my first post, and I am fairly new to Autoit scripting..... Suffice to say that I have written my program in SciTE, and when I came to compiling it, I could add file description, file version and copyright information, but I could not add Product name to my executable. I have spent most of last night looking for a utility that allows you to add this information to executables with no success ;-( The reason I need to add Product name to my exe is so that the menu (winreconfig.xml) in my Windows Recovery Environment generates a title for my utility. Currently my program is defined as "unknown" - with my logo at the side and a description of what it does, but surely there must be a way to further customize this information. I have looked at the GImageX utility and noticed that the Product name is present in the .exe details submenu. Any help would be appreciated, as it is the final leg of my mission to create my own 64-bit factory restore executable. Many thanks Andy Link to comment Share on other sites More sharing options...
Zedna Posted March 22, 2009 Share Posted March 22, 2009 (edited) Try this: #AutoIt3Wrapper_Res_Field=Product Name|My product name All directives are here: C:\PROGRAM%20FILES\AUTOIT3\SCITE\Scite4AutoIt3.chm::/AutoIt3Wrapper.htm#Directive EDIT: corrected Produkt --> Product Edited March 22, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
LeHuynhNam Posted March 22, 2009 Share Posted March 22, 2009 Another way is using Reshacker to do it! 1st: you should decompress the file *.exe which Packed by UPX 2nd: drop this unpacked file to Reshacker and modify the value at Version string last: Compile and save your file regards, Link to comment Share on other sites More sharing options...
Mobius Posted March 22, 2009 Share Posted March 22, 2009 my own 64-bit factory restore executable.Assuming the op is using the 64-bit stub for his project...Not so sure about that. The reason I spent to time to code it all up in AutoIt3 native code was the fact that I had to include the res.exe + dlls and that people had to download reshacker and on top of that the main reason was that reshacker doesn't support x64 compiled script which the internal code does.Jos In this case stick to the wrapper directives. Link to comment Share on other sites More sharing options...
Python007 Posted March 22, 2009 Author Share Posted March 22, 2009 Hi, I tried Zedna's method and no luck, so maybe I'm doing something wrong at the compile menu stage? When I right click on my executable the Product Name is not displayed, yet when I right click on the GImageX utility, it does. Unless somebody knows how to add a title to the menu option in winreconfig.xml I'm pretty much stuck, because apparently the WinRE menu item gets it's name from the Product Name field in the .exe file I'm sure i'll crack it - but only with your help ;-) Link to comment Share on other sites More sharing options...
ProgAndy Posted March 22, 2009 Share Posted March 22, 2009 i opened a exe with Productname in reshacker and this are the string-names i got: BuildSignature, ProductGuid, BuildGuid, TradeName, FileDescription, FileVersion, InternalName, LegalCopyright, OriginalFilename, ProductVersion, CompanyName, ProductName, HomePage I think the one you look for, is ProductName. #AutoIt3Wrapper_Res_Field=ProductName|My product name *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Python007 Posted March 22, 2009 Author Share Posted March 22, 2009 i opened a exe with Productname in reshacker and this are the string-names i got: BuildSignature, ProductGuid, BuildGuid, TradeName, FileDescription, FileVersion, InternalName, LegalCopyright, OriginalFilename, ProductVersion, CompanyName, ProductName, HomePage I think the one you look for, is ProductName. #AutoIt3Wrapper_Res_Field=ProductName|My product name Brilliant! - THANK YOU VERY VERY MUCH I've been pulling my hair out on this one - it was the last step before final implementation! Once again - I am indebted to you. Thanks Andy Link to comment Share on other sites More sharing options...
QASyscraft Posted September 29, 2014 Share Posted September 29, 2014 #pragma compile(Out, myProg.exe) ; Uncomment to use the following icon. Make sure the file path is correct and matches the installation of your AutoIt install path. ; #pragma compile(Icon, C:\Program Files\AutoIt3\Icons\au3.ico) #pragma compile(ExecLevel, highestavailable) #pragma compile(Compatibility, win7) #pragma compile(UPX, False) #pragma compile(FileDescription, myProg - a description of the application) #pragma compile(ProductName, myProg) #pragma compile(ProductVersion, 3.7) #pragma compile(FileVersion, 3.7.0.0, 3.7.100.201) ; The last parameter is optional. #pragma compile(LegalCopyright, © Joe Bloggs) #pragma compile(LegalTrademarks, '"Trademark something, and some text in "quotes" etc...') #pragma compile(CompanyName, 'Joe Bloggs & Co') For More Help on Compiling Visit;https://www.autoitscript.com/autoit3/docs/intro/compiler.htm Link to comment Share on other sites More sharing options...
ur Posted July 7, 2017 Share Posted July 7, 2017 Product Name is not being set even after I am adding #AutoIt3Wrapper_Res_Field=Product Name|Prod Reset Link to comment Share on other sites More sharing options...
SlackerAl Posted July 7, 2017 Share Posted July 7, 2017 Looks to me like there should not be a space in it: ProductName Problem solving step 1: Write a simple, self-contained, running, replicator of your problem. Link to comment Share on other sites More sharing options...
ur Posted July 7, 2017 Share Posted July 7, 2017 27 minutes ago, SlackerAl said: Looks to me like there should not be a space in it: ProductName Thanks @SlackerAl ... And sorry for the typo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now