|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Table of Contents
OverviewRestorator is a resource editor for Windows. Resources are additional data accompanying a Windows application. Resources are usually part of the application interface. E.g. dialogs, menus, images, text, icons etc. They are usually stored with the executable or dll (see below for other possible Resource Files). Restorator can edit those resource files and thereby change the look and feel or language of an application completely independent of the development and compile tools. You can edit resources directly in the executable, e.g. by opening an exe file. Main usage:
Restorator makes it easy to view, extract, and change resources like images, icons, text, menus, dialogs, sounds, animations, and many more. Among the file types understood by Restorator are exe, dll, res (resource files), rc (resource compiler), ocx (Active X), scr (screen saver), dcr (delphi component resource) and many other file types. See Resource Files for a complete listing.
FeaturesRestorator helps you to transform
an application's appearance.
See also the complete list of features or the list of resources types supported by Restorator. What's new in Restorator 2007See the Version History. Usage TutorialsThe tutorials provide the best possibility to understand the power and features of Restorator. They give step-by-step explanations how to achieve certain tasks. Keyboard ShortcutsRestorator's most important functions can be activated by way of keyboard shortcuts.
Commandline ParametersWith the commandline parameters,
you can execute Restorator conveniently from a batch program, for automated
execution. It is also possible to incorporate Restorator or a ResPatch
into installation programs (like InstallShield) to automate resource
patching during installation.
-exit, if an instance of Restorator is already running,
and the Allow multiple Restorator instances setting is not checked,
the batch function is executed in the first instance of Restorator.-setLangID <language ID> -setLangIDOn <resource> <language ID> [available since Restorator 2007 Update 1] Set the language ID stored with the resource. -setLangID will change the language ID of all resources. With the command -setLangIDOn, you can specify a subset of resources to be changed, e.g. if you only specify the resource type, like -setLangIDOn String "Russian (default)",
all resources of that type will be changed to that language ID.If a resource is available in multiple languages, setting the language ID will fail, unless you specify the resource name with language, e.g. -setLangIDOn Dialog\1\English (United States) "Russian (default)".The parameter <language ID> can be a textual representation of the language, or a numerical identifier of the language ID, e.g. "1045" or "0x415" (hexadecimal) for Polish. The command is equivalent menu function Set Language ID... in the Resources menu. -setManifestFromVersion [available since Restorator 2007 Update 2] This commands adds a default manifest to the exe file or resource file. The different manifest entries like name and version are retrieved from the version resource. If a manifest already exists, it is overwritten by this new one. This command is equivalent to using the Create Windows XP Manifest function in Restorator's Tools menu. Examples Open file.exe, delete Icon resources, save as file2.exe: Restorator.exe -open file.exe -delete Icon -saveAs file2.exe -exitOpen a.exe, assign all resources that exist in all.res, delete RCData\DESCRIPTION resource, assign rcdata.res on the RCData resource, save and exit: Restorator.exe -open a.exe -assign all.res -delete RCData\DESCRIPTION -assignOn RCData rcdata.res -save -exitOpen test.res, assign test.rc, save, open test2.res, assign the file icon.ico, save, and exit. Log everything to log.txt: Restorator.exe -errorLog log.txt -open test.res -assign test.rc -save -open test2.res -assign icon.ico -save -exit Command Line Version resource editing [available since Restorator 2007 Update 2] Modifying the version resource can be done with the commands below starting with -ver. The commands that take a <resource> parameter only apply to the version resource referenced in the parameter (the resource name must start with 'Version'). For example, "Version\1" will apply the command to the version resource named "1". If there are multiple version resources with different languages in "Version\1", you can specify the language to fully qualify the selected resource, e.g. "Version\1\Polish (default)" or the equivalent "Version\1\0x0415" (specifying the language as a hexadecimal identifier). Commands without a <resource> parameter apply to all version resource entries in the file, e.g. -verSetString ProductName MyName will set the ProductName field of all version resources. Note, however,
that usually there is only one version resource in an exe file or resource file.Strings can be any arbitrary keys, or one of the predefined ones: Required keys: CompanyName,
ProductName,
ProductVersion,
OriginalFilename,
FileDescription,
FileVersion,
InternalNameOptional standard keys: SpecialBuild,
LegalCopyright,
LegalTrademarks,
PrivateBuild.For more information on the version resource, refer to the MSDN documentation. -verSetString <key> <value> -verSetStringOn <resource> <key> <value> [available since Restorator 2007 Update 2] In the first String Version block of all or the selected version resource(s), set the string identified by key to the value value. If
the key does not exist in the string section, it is added to the
list of key/value pairs.If the file does not have a version resource, or the version resource(s) do not have a String Version block, this command reports an error. -verSetString affects all version resources, while -verSetStringOn only changes the selected resource. Example: modify the file description: Restorator.exe -open t.exe -verSetString FileDescription "A New Description"Example: modify the file description of the German version resource: Restorator.exe -open t.exe -verSetStringOn "Version\1\German (default)"Example: modify the numerical file and product version numbers in the string section: Restorator.exe -open u.exe -verSetString FileVersion 1.2.3.4Example: add a custom string: Restorator.exe -open v.exe -verSetString "My Own Key" "Test Value"-verDelString <key> -verDelStringOn <resource> <key> [available since Restorator 2007 Update 2] In the first String Version block of all or the selected version resource(s), delete the string identified by key.
If the file does not have a version resource, or the version resource(s) do not have
a String Version block, or the key does not exist in the string section,
this command reports an error.Note: Per the version resource specification, some keys are required to exist in version resources. See the list above for the required keys in bold. Example: delete the Comment field of all version resources: Restorator.exe -open t.exe -verDelString Comments -saveAs t2.exe -exit-verSetVersion <file version> <product version> -verSetVersionOn <resource> <file version> <product version> [available since Restorator 2007 Update 2] In the Fixed File Info block of all or the selected version resource(s), set the binary file version and the binary product version. Note that these binary version numbers are the primary versions, e.g. the Windows property sheet will show the file version as the version of the program. The string entries FileVersion and ProductVersion are typically set to the same values as the binary version numbers (possibly appended, e.g. with RC or Beta), but need not necessarily. If the file does not have a version resource, or the version resource(s) do not have a Fixed File Info block, this command reports an error. E.g. set the binary file version and product version of all resources: Restorator.exe -open t.exe -verSetVersion 1.2.3.4 1.2.0.0 -saveAs t2.exe -exit-verSetCodepage <codepage> -verSetCodepageOn <resource> <codepage> -verSetLang <language ID> -verSetLangOn <resource> <language ID> [available since Restorator 2007 Update 2] In the first String Version block of the version resource(s), set the codepage (aka character set identifier) or language ID identified by the codepage or language ID parameters.
This command will not change the codepage or language ID associated with the resource itself (see
commmand line command -setLangID).The parameter <language ID> can be a textual representation of the language, or a numerical identifier of the language ID, e.g. "1045" or "0x415" (hexadecimal) for Polish. The parameter <codepage> is a number in decimal or hexadecimal notation, e.g. "0" for user default codepage, "1252" for Latin I codepage, "1250" or "0x4E2" for Eastern Europe, etc. If the file does not have a version resource, or the version resource(s) do not have a String Version block, or <codepage> is not a number or <language ID> is not a valid language identifier, this command reports an error. See the MSDN documentation for info on the supported language IDs and codepages. -verDelSectionsExceptFirst -verDelSectionsExceptFirstOn <res> [available since Restorator 2007 Update 2] This is a special utility command: sometimes, a version resource contains multiple sections. Usually, only the first section is really used, so this command can be used to remove corrupt or conflicting version sections from all or the selected resources. Note: you should know what you are doing before blindly applying this command to resource or exe files, you may accidentally remove vital information from the version resource. Legacy Parameters (recommened to use the commands above): -assignall <resdir> <srcfile> <destfile> This function opens srcfile,
executes an Assign All on resdir, saves the modified
file as destfile and closes the file. The resdir
should contain subfolders with the correct resource type names. You can create
such a structure for a given Resource File with the function Extract All
in the Resources menu.-batchClose This parameter is equivalent to the -exit parameter explained above.
Here is an example (of course all on one line):C:\Program Files\Restorator 2007\Restorator.exe -batchClose Parameters for ResPatches: -force This function disables the CRC check that normally verifies that you are actually patching the correct Resource File. -guiless Do not display main window; patch the file automatically ( -auto implicit, but error messages are displayed)-quiet do not display error messages -auto Automatically start patching, exit after patching. -dir <dir> Folder where to apply the patch. -nobackup Do not create backup files of original Resource Files. -help Display help text (will not patch anything and ignore other options). RC File SupportSince version 2006, Restorator provides extended support for RC files. Previous versions only allowed to export as RC files and to replace single resources with RC files that only contained one resource. Now with Restorator 2006 and later, you can open RC files in the left Resource Tree:
MenuThis chapter lists the items in the Restorator menu. Reading through it will help you to understand features and usage. It also serves as a reference. Please note that the menu items dynamically change when certain elements are selected or in specific modes. If you do not find the item you are looking for, please try to select the element you actually want do use. E.g. operations on a collection of files is available when a folder is selected, not when a single file is selected. FileProvides functionality to open, save and access Resource Files. New .res file/.dcr file/.rc file.Add a new empty resource file in the Resource Tree. You can then add resources to this file. These .res files can be used to store any resources and imported into other exe or dll files. You select to create a .res, .dcr, or .rc file. .res files contain compiled resources in the standard Windows resource format. .rc files contain resources in text format. A .dcr file is a Delphi Component Resources and belongs to components of Delphi, to store e.g. the icon of a component. Keyboard shortcut: Ctrl+N OpenOpen a file that contains resources like exe files. You can then browse and edit resources. Keyboard shortcut: Ctrl+O SaveSave the current file under the current original name. The file that was loaded is overwritten and the modified file is saved. Use Save As to store the current file under a different name if you are not sure that you want to overwrite the current file. Keyboard shortcut: Ctrl+S Save AsSave the current file under a different name. The current file is the Resource File selected in the Resource Tree. Use this menu item to store a modified executable to a different file name to keep the original file unmodified. Keyboard shortcut: F12 RunStart the file that is currently selected. This is usable only if an executable file is selected. Use this option to test a modification on the application when the application is actually running. Keyboard shortcut: Ctrl+R
CloseClose the file currently selected in the Resource Tree window. Keyboard shortcut: BACKSPACE Close allClose all files open in the Resource Tree window.
Recent FilesA list with the files last opened. Select a file to open it again quickly.
Last found FilesProvides access to a list with the files that were recently found with the resource finder (Tools > Find Resources). Select a file to re-open it quickly.
ExitThis terminates Restorator. If you have unsaved files open in the Resource Tree, you will be asked if you want to save them. Keyboard shortcut: Alt+F4 ResourcesThe content of the resource menu is dynamically adjusted depending on the selection in the Resource Tree. You only see the functions that are useful for the current selection.
DeleteDelete a specific resource or resource folder. Be careful: the delete operation cannot be undone! Also, in most cases, exe files with missing resources will most likely not run correctly. You should know what you are doing when using this function. Keyboard shortcut: DEL RenameThe resource folders typically have a default type like Bitmap for the group that contains bitmap resources. Select Rename to modify the type of the selected group. You can also rename individual resources in order to change the resource name. Keyboard shortcut: F2 Extract|Extract AllThis sub-menu contains functions for extracting resources from the selected resource file or resource folder to files on disk. Extract All creates files for each resource or sub-resource in the current folder of the File Browser. If the resources are in sub-resource-folders, folders are created for the resources on disk. After changing some of the resources on disk, you can use the Assign|Auto Assign all Resources function to integrate the changes into the original resource file. This function can be used to conveniently save all resources to disk and then edit the files with other programs. Once editing is done, use Assign|Auto Assign all Resources to assign all the modified files to the resources (i.e. "commit" the changes on the files). The powerful RC extraction dialog (Extract As RC File) lets you create .rc files from the resources in the currently selected Resource File. You can choose which resources to include, and whether to add all resources into one .rc file or create one .rc file for each resource.
Assign|Auto Assign all ResourcesThis function tries to assign files in the current folder of the File Browser to resources of the current Resource File. It is the reverse operation of Extract|All Resources. It looks for files with names of the resources and in sub folders with names of the resource folders, exactly as Extract|Extract All Resources creates the files. This function can be used to conveniently commit the changes made to files saved to disk with the Extract|Extract All Resources function: once editing is done, use Assign|Auto Assign all Resources to assign all the modified files to the resources (i.e. "commit" the changes on the files).
DetachWhen you have assigned resources (i.e. modified) but want to undo the modification and revert to the original resource, use the Detach function. You can detach single resources or entire resource folders. Keyboard shortcut: Ctrl+D
Res FilesThe sub-menu contains functions for working with res files on disk: you can assign the contents of a .res file to the current Resource File/resource folder/resource (Res Files|Assign). Or the powerful Save dialog (Res Files|Save) allows you to create .res files from the resources in the current Resource File with your given criteria (i.e. you can include in the saved .res file only resources of specific languages). You can choose to include all resources in one single .res file, or create one .res file for each resource.
Add ResourceAdds a resource in the current resource tree. You can extend applications by including new resources. If the application is selected, you select a type, e.g. bitmap that is created in the bitmap folder. If a folder like bitmap is already selected, you will add a resource to this folder. Added resources are particularly useful for your created .res, .dcr, or .rc files, or if you want to add custom resources to your own projects. Note that you cannot edit the name of a string resource due to internal representation of string resources. Keyboard shortcut: Ctrl+U
Set Language IDDefine a Language/Locale ID for the
resources contained in the selection. When you start an application, its
resources are chosen according
to the Locale setting of the operating system. This feature enables you
to translate applications that dynamically adjust to the language of
the operating system without recompiling the application. Keyboard shortcut: Ctrl+L
CopyCopy the selected resource to the clipboard buffer. You can then paste it in a different location in the resource tree. You can easily transfer a single resource or entire resource folders to another resource file. Some resources types, e.g. bitmaps, can also be pasted into other programs, like an external graphics program. Keyboard shortcut: Ctrl-C PastePaste a copied resource in the current location in the resource tree. For some resource types (e.g. bitmaps) you can paste data copied in external programs, like images copied in an external graphics program. Keyboard shortcut: Ctrl-V Browse to "folder location"In the File Browser, change the folder to the one where the selected resource file is located.
Find in ResourcesUse this function to search the selected resources in the Resource Tree for search words. When the word is found, the resource is displayed in the Resource Viewer and the occurrence, if visible, highlighted. This function is looking for the given words/string within resources. If you are looking for Resource Files that contain resources with specific criteria, select 'Find Resources' in 'Tools'. Keyboard shortcut: Ctrl-F Find NextFinds the next occurrence of the search word used in Find in Resources. Keyboard shortcut: F3 PropertiesShows additional information on selected resource or resource folder. It has some additional information for exe files like section headers. Keyboard shortcut: Alt+ENTER ViewerThe Resource Viewer displays the resources that you select in the Resource Tree. If you select a resource file or a resource folder, it will display the contents of the file or folder, respectively. There are 3 view modes for the resources:1. Default modeThe Default Mode is displaying each resource in its "natural" representation. I.e. images are displayed as images, textual resources like strings are presented in a text field, etc. If Restorator does not know a resource's type, it is displayed as a hex dump (see below). Suited for browsing the content and understanding the structure of the resource file without accidental modifications. Keyboard shortcut: Ctrl-F5
Image: Example of the display of a dialog in Default mode. 2. Hexdump modeDisplays resource content in a Hexadecimal display mode. Suitable for data that cannot be displayed in its "natural" format, e.g. not readable as text or viewable as image. Use the H toolbutton to select the hex dump mode. Keyboard shortcut: Ctrl-F6
3. RC modeThe Resource Mode is displaying readable information about the resource in the viewer window. It shows the structure of the individual resource in the RC file format. This is always a textual representation of the resource. Sometimes it displays more information than the Default mode. Use the RC toolbutton to select the RC mode. Keyboard shortcut: Ctrl-F6
Editing ResourcesActivate the Edit Mode (with the ab tool button or by pressing F6) in order to modify resources inside of Restorator. It allows editing text-based resources within Restorator. Text-based resources are strings, menus, Delphi forms, etc. For dialog and version resources, it opens the special dialog or version editor. For menus, it displays a menu in an own window so that you can try the menu in action. When you made changes, press F8 to commit them into the resource file. Press F5 to update the preview window. Depending on which view mode you are, you may have different ways of editing the same resource. Currently, this applies to dialogs, which can be edited in RC Mode as text, and in Default Mode with a graphical user interface. Keyboard shortcut: F6 AutosizeThis applies to images only: if enabled, the images are automatically resized to fit the size of the Resource Viewer. It helps to preview the resource. Deactivate if you want to see the original size that is used when displayed in the application. ToolsProvides advanced functionality for special tasks and offers cutomization for integration with other editing applications. Settings...Configuration of Restorator for display and behavior options. The settings have reasonable default settings. Keyboard shortcut: Shift+Ctrl+S
Find ResourcesWith the Find Resources tool, you can find exe or res files that contain a specific text or that have specific named resources. Keyboard shortcut: Shift+Ctrl+F Grab ResourcesWith the Grab Resources tool, you can extract all resources of a specified type from all or selected files on your hard disk.. E.g. extract all images that are contained in any application in "C:\Program Files". This can be a great tool to instantly get a huge collection of images, icons, cursors, etc. See the tutorials for more info on its usage. Keyboard shortcut: Shift+Ctrl+G Create ResPatcher...With the ResPatcher Wizard, you can create a standalone program that can redo all your modifications to a program. You are able to distribute your distilled manipulations to an application without distributing the application itself. See the tutorials for more info on its usage.
Keyboard shortcut: Shift+Ctrl+R Create Windows XP Manifest...With the Manifest tool, you can add a Windows Manifest resource to an exe file. This will enable Windows look'n'feel (theme) to your application. This will freshen the look of older applications! Keyboard shortcut: Shift+Ctrl+X Force File replace on next restartUse this tool if you cannot replace files while Windows runs. With this function you can conveniently replace programs that are always running (i.e. auto starting programs) or even Windows system files like the Explorer. Tip : On Windows 2000 and XP, you need to use this function in the "Safe Mode" if you want to modify Windows files. Otherwise, the file protection will automatically restore the original file with the next reboot. Keyboard shortcut: Shift+Ctrl+N
Edit file associationsEdit the file types to which Restorator is associated. You can double click those files in the explorer to open them with Restorator. Also you can select which files you want to be able to open from the Explorer's context menu.
Configure tools...Define applications that will be added in this tools menu to be easily accessible at all times. E.g. if you often use a graphics program in conjunction with Restorator, you can add the graphics program to the tools and have instant access to it. Resource TreeUse this function to activate the left Resource Tree. Keyboard shortcut: F9 HelpHelpDiplay this help file. FAQSee answers to frequently asked questions TutorialLinks to tutorials for step-by-step guides to the features of Restorator. Buy RestoratorThis will display a screen to guide
you to purchase Restorator
through our secure server. AboutDisplay Copyright and version info about Restorator. Context MenuThe context menu apears whenever the right mouse button is clicked. The presented functions are conviently accessible. Most of the available functions are also acessible through the menu and are described there. The new functions are described below, together with screeenshots of the available menu.
Add to Recent FilesIncludes the selected file in the list of recent files. Doing so helps to easily access the file later through the Files->RecentFiles menu.Collapse TreeCloses all open folders and reduces the icons to the resource file. This helps to start over the browsing of the resource file.Sort TreeRearranges the order of resource files. Helpful if several resource files are open in the same time.PropertiesThis will open a dialog displaying information about the selected file. Very helpful to see the status of resource files and resources.Keyboard shortcut: Alt+Enter
LicenseThe trial version is limited to a 30-day trial period. See purchase.html for information how to purchase Restorator. Restorator and ResPatches may be distributed freely without charge. Anyone distributing Restorator for any kind of remuneration must first contact the author for authorization. If you want to sell ResPatches, royalties apply. Please contact Bome Software for details.When using Restorator, you must agree to the license agreement, which is contained in Restorator's distribution as the file license.txt. UninstallTo remove Restorator from your computer:
Acknowledgements
For GIF reading, this software is based, in part, on the work
of Anders Melander. GlossaryResource TreeLeft pane of the Restorator application (per default). The Resource Tree displays all resource files that are currently open. The display is arranged in a tree that arranges resources in hierarchical levels. The Resource Tree is used to browse and select resources in the open files. To display resources, drag .exe file from into this window. Use right click on resources for common operations. Resource ViewerRight pane of the Restorator application (per default). The Resource Viewer displays the individual resources that are selected in the Resource Tree. You can view or edit them here. ResourcesResources are additional data accompanying a Windows application. Resources are usually part of the application interface. E.g. dialogs, menus, images, text, icons etc. They are stored with the executable or dll (see below for other types of Resource Files). Restorator can edit those resource files and thereby change the look and feel or language of an application. You do not need any other tools, compilers, or even the source code of the application - Restorator is completely independent of other tools. Resource FilesResource files are any files that contain resources and can be opened and edited with Restorator. Common Resource files are:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||