How to set file properties 7zS.sfx self extracting executable - 7zip

Is it possible to set the file version property on an exe that was created from 7zS.sfx? It seems the default implementation is to tag the exe with the properties of the 7zS.sfx.exe (see below)

Yes. you can change the icon and metadata of the created exe file. You need to have a resource editor for this. I recommend using Resource Hackerâ„¢.
1. After downloading and installing (both installer and portable options available), run the the software and open your exe file which was created using 7z sfx.
2. Go to 'version info' tab in the left side tree view and change required information.
3. Compile script (F5) and save/save as the new exe file.
Now you can see, exe metadata has been changed.
Detailed information on how to use resource hackerâ„¢, can be found on the official website.

Related

Can you reference an item in qt resource file in the qt project file?

I have a resource file App.qrc and I want to set an windows icon to the program's executable (.ico not QIcon).
My question is, is it possible for you to use the ico file which is in App.qrc like this to set the .exe icon:
win32:RC_ICONS += :/Icon.ico
No, you have to include the file path outside the Qt Resource System (you can include the same file in both App.qrc and in RC_ICONS).
win32:RC_ICONS += icon.ico
RC_ICONS works by generating a .rc file that includes the icons specified. That means the icons will be stored in the result .exe file using windows resource management (and only then explorer.exe will be able to recognize the icon of the .exe file).
While, when you add the icon to App.qrc, it will be using Qt Resource System to store the icon in the result .exe. This is Qt's platform-independent mechanism for storing binary files in the application's executable. This can't be read by explorer.exe (it can be read only from Qt classes that depend on the QFile class).
Clearly, these are two different system to get your icon (or other resource) stored within the result .exe file, and they use different ways to do that, so you can't specify an icon from the Qt Resource system to be included in the generated RC file.

get filepath in Jdeveloper Extension development

I am developing a Jdev extension. The main aim is to change the file contents under selection (applying some rules on the code). I used the FirstSample sample extension to build my application.
I want the filepath of the file i right clicked to invoke the extension
i was able to get the project path using the below code
context.getProject().getURL()
context.getElement().getLongLabel()
provides the file path
I would say that context.getNode().getURL() is the proper way to get a path of the selected node.
Please see
http://docs.oracle.com/cd/E14571_01/apirefs.1111/e13403/oracle/ide/Context.html

Where is the information for context menus stored in various OS?

Windows
Ubuntu and Mac
Windows was fairly simple (thanks to SO community member ExpertSystemfor helping me on this). The context menu information is stored in Registry
I do not know where the information for context menu is stored for Ubuntu and Mac.
Where is this information stored?
For OSX, an application creates a bundle, which is a special type of folder containing various files and the executable for the application. One of those is Info.plist where a .plist file is an XML file of named value types. You'll need to modify that and register the change with LaunchServices.
The answer is explained in more detail here
context menue
Ubuntu (with unity) is using Nautilus as default file manager. other file manager, other location.
information for nautilus is stored here:
~/.gnome2/nautilus-scripts
Further you should google for nautilus actions.
Have a look at:
https://askubuntu.com/questions/21953/how-to-customize-the-context-menu-in-nautilus
context menue - openwith only
If you are searching for a simple OpenWith - you just can create a .desktop file - whitch is also selectable in GTK3 Natulis-Versions.

Win2k8R2 is not showing file/product version info of .so files

I am not able to see the product/file version information, copyright information of ".so" files in Win2k8-R2. I am logged in as administrator. If i rename the same file to have it extension to some other ie. ".dll" or ".txt", then i am able to see all the information (file/version info, copyright info).
Is it expected for Win2k8-R2. Is it documented somewhere??
Any help will be appreciated
This is by design. The "property page" code (that fills the contents of the "details" page of a given file type) is registered by file extension.
Try cloning the registry entry for HKEY_CLASSES_ROOT.dll such that HKEY_CLASSES_ROOT.so has the same registry key values.
Start regedit.
Locate HKEY_CLASSES_ROOT\.dll
Export this entire registry key to a disk file (so.reg)
Edit the so.reg file with notepad.
Rename all the registry key path references to "\.dll" to "\.so"
Keep the "dllfile" reference the same
Save so.reg.
Double click on so.reg so as to register it. (Say yes to all the prompts)
Close all the open explorer windows and then re-open the one that has the .so file in it.
Right-click on the .so file. You should see the details page and all DLL version information inside it.

Expression Web: Shortcut doesn't point to an exe file, but I want to use it to edit

Problem: I have to support users who need to edit web pages. Some of these web pages exist only as textarea controls. Fortunately, there is a firefox plugin that allows the user to open the textarea in a default text editor. Unfortunately, this plugin requires you to point to the EXE file of the text editor you want to invoke.
This is a reasonable requirement, but ##$%^ Microsoft Expression Web is one of those applications whose shortcut .lnk file does not appear to point to a real EXE file. If there is an EXE file somewhere, it's hidden.
Question:
How can I locate the actual EXE file so people can configure Microsoft Expression web to be their editor of choice?
Update: I should have emphasized that I was looking for a way to automate this via script or batch file (hence the SO posting, in case anyone's "not-programming-related" spidey sense was tingling).
I found my executable in the following location:
C:\Program Files\Microsoft Expression\Web Designer\EXPRWD.EXE
I'm not sure if that gives you what you need, but you can always have your users (or programmatically) search for EXPRWD.EXE and go from there.

Resources