Thursday, July 19, 2012

Resource Hacker


!!! WARNING !!!

Playing with system files using resource hacker can be Dangerous for your system and it can make your system not working.

So use it at your own risk!


Guys!

So many members hv asked me a lot of questions about Resource Hacker, like:

=> How to replace existing Resources ( Bitmaps, AVI, Icons, etc.) in a file?
=> How to add ur own resources?
=> How to change Menus/ Strings?

and so on...

So here I'll try to cover all such questions and many other tips-n-tricks.
So here we go.....

NOTE: I hv divided this tutorial in 2 parts:

PART1 : BASIC INFORMATION
PART2 : ADVANCED INFORMATION

Basic part contains Basic details, like viewing/replacing resources, etc.
Advanced part covers some advance information which is described for geeks. Like Adding ur own resources, using scripts with resource hacker, etc.

PART1 : BASIC INFORMATION


What is Resource Hacker:

Resource Hacker is a Free s/w to edit 32-bit windows files (DLL, EXE, CPL, and many other). U can add/delete/view/rename/modify existing resources in a file using this gr8 piece of s/w.

Download Link:

U can d/l Resource Hacker from here.
U don't need to install it, simply extract the files and run the s/w. It also doesnt make any entry in Registry! 

Using Resource Hacker:

When u open a file in Resource Hacker, it shows various directories in left-side pane, like:

AVI
Cursor
Bitmap
Icon
Menu
Dialog
String Table
Accelerators
Version Info

and so on...



These directories vary from file to file!
Following is a small description of these directories:

AVI : This directory contains AVI files.
Cursor : This directory contains Cursor files.
Bitmap : This directory contains Bitmaps.
Icon : This directory contains Icons.
Menu : This directory contains various Menus.
Dialog : This directory contains various Dialog boxes.
String Table : This directory contains various Strings.
Accelerators : This directory contains Shortcut keys.
Version Info : This directory contains version information of the file.


Viewing Resources:

U can view any resource embedded in the file. Simply expand the directory and click on the name of the resource.
Actually each resource contains 3 parts:

Resource Type
Resource Name
Resource Language


Resource Type : Its indicate that the resource is an AVI/Bitmap/Menu/Cursor/Icon/String/etc.
Resource Name : It describes the name of a resource, no 2 resource can hv the same name.
Resource Language : Its the language used in the file. For ENGLISH its 1033.






Resource Hacker is a small but excellent tool to modify system files like DLL, EXE, CPL, etc. You can even change Windows look by editing various Windows files and replacing their resources using Resource Hacker.
You can download it using following link:
This tutorial will help you in understanding this tool and will teach you how to use it. For your convenience, we have divided this tutorial in 2 parts:
  • PART 1: BASIC INFORMATION
  • PART 2: ADVANCED INFORMATION
Part 1 provides basic details like viewing or replacing existing resources in a file, etc. Part 2 covers some advance information for geeks, like adding new resources, using scripts, etc.
PART1 : BASIC INFORMATION
[Using Resource Hacker]
When you open a file in Resource Hacker, it shows various directories in left-side pane, like:
  • AVI - Contains AVI files
  • Cursor - Contains Cursor files
  • Bitmap - Contains BMP files
  • Icon - Contains Icons
  • Menu - Contains Menus
  • Dialog - Contains Dialog boxes
  • String Table - Contains Strings
  • Accelerators - Contains Shortcut keys
  • Version Info - Contains Version information of the file
[Viewing Resources]
You can view resource present in the file by expanding the directory given in left-side pane and clicking on the name of the resource. Each resource contains 3 important attributes:
  • Resource Type
  • Resource Name
  • Resource Language
[Changing Resources]
For Icons / Cursors / Bitmaps:
1. First select the resource ( e.g. Bitmap -> 131 -> 1033 ).
2. Now click on Action -> Replace Icon or Cursor or Bitmap....
3. It'll open a new window, click on Open file with new Icon or Cursor or Bitmap button.
4. Select the desired resource using OPEN dialog box, click on Open button and then click on Replacebutton.
For Other Resources like AVI:
1. Click on Action -> Replace Other Resource....
2. It'll open a new window, click on Open file with new resource button.
3. Select the file and click on Open button.
4. Now you'll need to provide following required information for the resource, which we mentioned earlier:
  • Resource Type
  • Resource Name
  • Resource Language
Resource Type: Mention type of the resource, e.g. if you are replacing AVI file, mention the type as AVI
Resource Name: Provide the same name of the existing resource which you want to replace
Resource Language: Provide language code for the resource, e.g. 1033 for English. You can check existing resource's language code.
5. At last click on Replace button.
[For Menus / Strings / Dialogs]
To change any String, Menu or Dialog box, Select the desired resource, e.g. String Table -> 4 -> 1033, make your changes and at last click on Compile Script button.
It'll immediately compile the script. If you made any mistake while modifying the resource, it'll generate error message so that you can fix it.
PART2 : ADVANCED INFORMATION
[Adding New Resources]
Adding New Bitmaps / Icons / Cursors / AVIs:
1. Click on Action -> Add a new Resource....
2. Now click on Open file with new resource button.
3. Select the desired resource and click on Open button.
4. Give Resource Type, Name and Language as mentioned earlier. But keep in mind that Resource Name should not match with any existing resources name.
5. At last click on Add Resource button.
Adding New Menus:
Go to desired menu, e.g. Menu -> 215 -> 1033. Now add a new line anywhere inside POPUP "" using following format:
MENUITEM "Custom_String", 12345, MFT_STRING, MFS_GRAYED | MFS_DEFAULT
Where:
  • "Custom_String" is the actual text which you want to show in menu.
  • 12345 is the identifier. It must be different from existing menuitems.
  • MFS_GRAYED disables the menuitem. You can change it to MFS_ENABLED if you want to show your menuitem enabled.
  • MFS_DEFAULT shows your menuitem in BOLD. You can omit it.
  • You can also add a new attribute in the code MFS_HILITE which automatically selects your menuitem.
In fact you can only add following new line in code:
MENUITEM "Custom_String", 12345
And Resource Hacker will automatically insert other remaining values as mentioned above.
[Inserting Newly Added Resources in Dialog Boxes]
Once you finish adding new Icons / Bitmaps / AVIs, you can insert them in any dialog box so that you can show in various Windows dialog boxes like RUN, Progress Dialog box, etc.
1. Go to the desired dialog box, e.g. Dialog -> 1020 -> 1033
2. Right-click in the dialog box and select Insert Control option.
3. It'll open a new window. You'll see many controls in the new window, like BITMAP, LABEL, ICON, BUTTON, SysAnimate32 (for AVIs), etc.
4. Click on any desired control, e.g. to insert a Bitmap, click on the BITMAP control or to insert an AVI, click on SysAnimate32 control.
PS: You can also insert Date/Time in dialog box using SysDateTimePick32 control.
5. Don't forget to fill the Caption entry. You need to enter the Resource Name in Caption textbox, e.g. if you have added a Bitmap and set its Resource Name as 401, then give the same 401 in Caption textbox.
PS: For AVI Control ( SysAnimate32 ), you'll need to append # in Caption value, e.g if the AVI name is 144, then put #144 in Caption textbox.
6. At last click on OK button & then Compile the script.
7. If you want to change the position of the new control in dialog box, simply click on the control and drag it to your desired location or you can also use arrow keys to move it.
Using Scripts in Resource Hacker
We can also run Resource Hacker using Command Prompt and can use scripts to automate lots of repeatative tasks to save our time.
You can use scripts in 2 ways:
  • Single Command
  • Multiple Commands
[Single Command]
You can use following commands in Command Prompt to perform actions using Resource Hacker:
-add ExeFileName, ResultingFileName, ResourceAddress, ResourceType, ResourceName,
-addskip ExeFileName, ResultingFileName, ResourceAddress, ResourceType, ResourceName,
-addoverwrite ExeFileName, ResultingFileName, ResourceAddress, ResourceType, ResourceName,
-modify ExeFileName, ResultingFileName, ResourceAddress, ResourceType, ResourceName,
-extract ExeFileName, ResourceAddress, ResourceType, ResourceName,
-delete ExeFileName, ResultingFileName, ResourceType, ResourceName,
Where:
  • ExeFileName - Source file name
  • ResultingFileName - Output file name
  • ResourceAddress - Resource location (e.g. Bitmap path stored in your hard disk)
  • ResourceType - Resource type (e.g. Bitmap, AVI, etc.)
  • ResourceName - Resource name (e.g. 131, 1020, etc.)
Example:
ResHacker.exe -addoverwrite explorer.exe, explorer1.exe, MyImage.bmp , bitmap, 143,
[Multiple Commands]
You can also run a series of commands using script. First you'll need to create the script file using Notepad and then you can run it using following command:
ResHacker.exe -script ScriptFileName
Where, ScriptFileName is the name of the script file which you created in Notepad.
Following is the required format of the script file:
[FILENAMES]
Exe=
SaveAs=
Log=
[COMMANDS]
-addoverwrite ResourceAddress, ResourceType, ResourceName
Where:
EXE= contains source file name
SaveAs= contains output file name
Log= contains LOG file name which will store a detailed log of the operation
[COMMANDS] section contains the command-set which we want to perform on the source file.
PS: You can omit the LOG= entry in script file. In this case, Resource Hacker will automatically create a LOG file with the name "ResHacker.log".
NOTE 1: If you are facing problems while saving a file after editing in resource hacker, then make sure you have disabled WFP (Windows File Protection) service using "WFP Patcher" or use "Replacer" to replace the file.
NOTE 2: If you get "Cannot create file" error message while saving the file, please check following tutorial:
How to Fix "Cannot Create File" Error Message While Saving Files in Resource Hacker?
That's all for now. If you have any query, please feel free to ask us...
Also check:
List of Windows XP System Files to be Customized using Resource Hacker
List of Windows Vista System Files to be Customized Using Resource Hacker
List of Windows 7 System Files to be Customized Using Resource Hacker
List of Resource Locations in Windows XP, Vista and 7 to be Customized Using Resource Hacker

Monday, July 16, 2012

How to troubleshoot wireless network connections in Windows XP Service Pack 2

Troubleshooting for wireless networking with Windows XP requires gathering information, checking the drivers, verifying compatible hardware, and configuring wireless settings.

Information to gather

Before you begin troubleshooting, make sure that you have answered the following questions:
  • What is the symptom? If it is an error message, note the full error message.
  • What wireless card is used? Note the manufacturer and the model number.
  • What is the driver version for the card? Look in Device Manager or click Configure in the Properties dialog box of the wireless connection.
  • What access point is in use? Note the manufacturer and the model number.
  • Are the wireless settings configured by using Windows or by using a third-party program? If a third-party program is used, what is the program and its version number?
  • Is the Wireless Zero Configuration service running? To determine if the Wireless Zero Configuration service is running, follow these steps:
    1. Click Start, and then click Run.

      Start menu

    2. In the Open box, type cmd, and then click OK.

      Run dialog box

    3. Type sc query wzcsvc, and then press ENTER.

      Command Prompt window

    4. If the Windows Zero Configuration service is running, the words "STATE : # RUNNING" will appear.

      Command Prompt window

  • If the problem is in the user interface, collect a screen shot of the issue, if you can. To collect a screen shot, press ALT+PRINT SCRN.

MORE INFORMATION

Basic troubleshooting

To troubleshoot wireless network connections in Windows XP, follow these steps:
  1. Check the Windows Catalog at http://www.windowsmarketplace.com to determine if there is a Windows XP-compatible driver that is available for your wireless adapter.
    • If there is a compatible driver, install the updated driver before you perform any additional troubleshooting procedures.
    • If there is not a compatible driver, you may be able to use the network adapter, but its configuration and functionality may be very limited.
  2. Determine if the driver that you are using recognizes the Windows XP Wireless Zero Configuration service. To do this, follow these steps:
    1. Click Start, and then click Control Panel.

      Start menu

    2. In the right pane,click Network and Internet Connections.

      Control Panel

    3. In the right pane, click Network Connections.

      "Network and Internet Connections" window

    4. Right-click Wireless Network Connection, and then click Properties.

      Expand this image
      Network Connections window

    5. View the available options:
      • If you do not see the Wireless Network Connection icon in the Network Connections folder, or if you cannot view the properties, there is a problem with the driver for the wireless network adapter. To troubleshoot this problem, see the Driver installation issues section.
      • If you can view the properties for the Wireless Network Connection icon, but you do not see a Wireless Networks tab, see the Drivers that do not support the Wireless Zero Configuration service section to continue troubleshooting.
      • If you can view the properties, and you can see and use the Wireless Networks tab, see the Drivers that support the Wireless Zero Configuration service section to continue troubleshooting.
      • If the Authentication tab is missing in the Wireless Network Connection properties, make sure that the Wireless Zero Configuration service is running.

Driver installation issues

If you do not see the Wireless Network Connection icon in the Network Connections folder, or if you cannot view the properties for the Wireless Network Connection icon, there may be a problem with the driver installation. To troubleshoot this issue, verify that you have the latest available driver from the device manufacturer, and then follow these steps to determine the cause of the issue:
  1. Click Start, right-click My Computer, and then click Manage.

    Start menu

  2. Click Device Manager, and then double-click Other Devices and look for the wireless network adapter. If you find the adapter in the Other Devices folder, no driver has been installed. To resolve this issue, obtain and install a driver from the device manufacturer.

    Expand this image
    Computer Management

  3. If you do not locate the adapter in the Other Devices folder, look in the Network Adapters folder.

    Expand this image
    Computer Management

  4. When you locate the wireless network adapter, note the manufacturer's name and the model of the adapter.
  5. Right-click the icon for the wireless network adapter, and then click Properties.

    Expand this image
    Computer Management

  6. Verify that "The device is working properly" message is displayed under Device status.

    Wireless Network Card Properties

  7. If the wireless network adapter is not in the Network Connections folder, there is either a problem with the device or the driver may not be installed. In this case, you will see an error under Device status.

    You can search the Microsoft Knowledge Base for information about the error code to use in troubleshooting this problem. To search the Knowledge Base, visit the following Microsoft Web site:

Drivers that do not support the Wireless Zero Configuration service

If you can view the properties of the Wireless Network Connection icon, but you do not see the Wireless Networks tab, the network adapter driver does not fully support the Wireless Zero Configuration service, or the Wireless Zero Configuration Service is not started. You may be able to configure Windows XP to use the connection, but the configuration options may vary depending on the network adapter and the driver that are in use. To resolve this issue, try to create a working connection by following these steps.

Note If you cannot create a working connection, contact the device manufacturer for advice about how to configure the adapter for Windows XP.
  1. Verify that the Wireless Zero Configuration service is running. To do this, follow these steps:
    1. Click Start, and then click Run.

      Wireless Network Card Properties

    2. In the Open box, type cmd, and then click OK.

      Run dialog box

    3. Type sc query wzcsvc, and then press ENTER.

      Command Prompt window

    4. If the Windows Zero Configuration service is running, the words "STATE : # RUNNING" will appear.

      Command Prompt window

  2. Click Start, click Control Panel, and then click Network Connections.

    Start menu

  3. Right-click Wireless Network Connection, and then click Properties.

    Expand this image
    Network Connections window

  4. On the General tab, click Configure.

    Wireless Network Connection Properties dialog box

  5. Click the Advanced tab, and then configure your wireless network by using the available configuration options. The available options and option names may vary depending on the driver manufacturer. The following list describes the basic configuration options under Property:
    • Service Set Identifier (SSID): This setting must match the configuration of your wireless access point or router. If you do not have an access point, this value will be the same on all the computers that are in your wireless network.

      Wireless PC Card Properties dialog box

    • Wireless Equivalent Protocol (WEP) or Encryption

      Warning The following step may make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this option, but we are providing this information so that you can choose to implement this option at your own discretion. Use this step at your own risk.

      For testing purposes, turn off WEP on both the access point and in these properties.

      Note WEP is designed to help protect your computer from attack by malicious users or by malicious software such as viruses that use unsolicited incoming network traffic to attack your computer. If you decide to implement this step, take any appropriate additional steps to help protect your system. Turn WEP back on as soon as you have finished troubleshooting your network connections.
    • Mode or Network Type: If you have an access point, set this option to Infrastructure. If you do not have an access point, and if you are connecting your computer to another computer, set this option to Ad-Hoc.

      Wireless PC Card Properties dialog box

    • Data Rate: Set this option to Auto or to 11 Mbps.
    • Power Save: For troubleshooting, set Power Save to Off or to Disabled. After the connection works correctly, you can change this setting.

      Wireless PC Card Properties dialog box

  6. After you configure these options, click OK to save the changes that you made.
  7. Test to see if your connection works. If a red X is displayed over the connection icon in the Network Connections folder, or if you cannot connect, continue troubleshooting.
  8. Click Start, right-click My Computer, and then click Manage.

    Start menu

  9. In Computer Management, double-click Services and Applications, and then click Services.

    Computer Management

  10. Right-click Wireless Zero Configuration, and then click Properties.

    Expand this image
    Computer Management

  11. In the Startup type box, click to select Disabled, and then click OK.

    Wireless Zero Configuration Properties (Local Computer) dialog box

  12. Close Computer Management, and then restart the computer.

    Computer Management
With this configuration, you can connect to the wireless network if the other network configuration is correct. If the Wireless Network Connection icon is displayed in the notification area as a working connection, the wireless connection will work. To resolve any remaining issues, use standard TCP/IP network troubleshooting techniques.

For additional information about TCP/IP troubleshooting, click the following article number to view the article in the Microsoft Knowledge Base:
314067 How to troubleshoot TCP/IP connectivity with Windows XP

Drivers that support the Wireless Zero Configuration service

If the Wireless Networks tab in the properties of the Wireless Network Connection is available, the driver recognizes the Windows XP Zero Configuration support for wireless networks. To configure Windows XP for your wireless network, follow these steps:
  1. Click Start, click Control Panel, and then click Network Connections.

    Start menu

  2. Right-click Wireless Network Connection, and then click View Available Wireless Networks.

    Expand this image
    Network Connections

  3. Click the network that you want to connect to, and then click Connect. Follow the steps in the wizard to configure the network. If your network is not listed, verify that the access point is powered on and configured, move the computer and the access point closer together, and then test again.

    Expand this image
    Wireless Network Connection window

  4. If your network is still not listed as an available network, click Change advanced settings to open the wireless network connection properties.

    Wireless Network Connections Properties dialog box

  5. On the Wireless Networks tab, click Add to manually configure settings for a network.

    Wireless Network Connections Properties dialog box


    When you save these settings, you can use them automatically when the network is available. Available settings include the following:
    • Network name (SSID): The Network name (SSID) setting typically matches the configuration of your wireless access point or router. If you do not have an access point, this value must be the same on all the computers that are in your wireless network.
    • Network Authentication and Data encryption: Options here include Open, Shared, WPA, and WPA-PSK. If you are using WPA, no additional configuration is required. If you are using WPA-PSK, an 8- to 63-character password is required.
      If you are using Open or Shared authentication, you can either enter a key, or indicate that a key is provided automatically. In home network configurations that use WEP, the key is typically entered manually. You may also choose no security by setting Data encryption to Disabled. However, we do not recommend that you do this except as a troubleshooting step.

      Warning This step may make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this option, but we are providing this information so that you can choose to implement this option at your own discretion. Use this option at your own risk.

      If you have to disable security for troubleshooting, turn off WEP on both the computer and the access point. Turn off WEP on both the access point and in these properties for testing purposes.

      Note WEP is designed to help protect your computer from attack by malicious users or by malicious software such as viruses that use unsolicited incoming network traffic to attack your computer. If you decide to implement this step, take any appropriate additional steps to help to protect your system. Turn WEP back on as soon as you have finished troubleshooting your network connections.

      Wireless Network Connections Properties dialog box



      Wireless Network Connections Properties dialog box

    • Key index (advanced): This is an optional setting that specifies which of four positions the key is stored in: 0, 1, 2, or 3.
    • The key is provided for me automatically: This check box option indicates that the key is provided from the network or stored on the network adapter. You must only enable this key when the network administrator or the network adapter documentation specifies that you enable it.
    • This is a computer-to-computer (ad-hoc) network; wireless access points are not used: This check box option is used to specify a computer-to-computer network that does not include an access point. If this option is unavailable, click Advanced on the Wireless Networks tab. In the Advanced dialog box, you can click to select Access point (infrastructure mode) networks only to enable an ad-hoc network.
  6. After you save this configuration, repeat this process on the other computers on your network.
  7. After you configure the settings for the other computers, you will see the network name SSID in the Preferred networks list. If you see a blue circle, the network has been located; if you see a red X, there may be a problem with the radio signal between stations on the network, or the configuration may be incorrect. Confirm that the settings on your network are correct, and move the computer closer to either the access point or the router, or to the other computer on the wireless network.

    After you complete the configuration steps, the wireless connection will be correctly configured.

    If you experience issues when you try to connect to the network, double-click the Wireless Network Connection icon in the Network Connections folder to view the Connection Status window. In the Connection Status window, there is a signal strength meter that you can use to verify the strength of the signal between the computers.

Strong signal

If you still have trouble connecting, but the signal strength is good, a different network configuration issue may be preventing communications. To resolve this issue, use standard TCP/IP troubleshooting techniques.

Weak signal

If you still have trouble connecting and the signal strength is not good, or no signal is received, try the steps in the Drivers that do not support the Wireless Zero Configuration service section. If the method that is described in that section does not resolve the issue, contact the manufacturer to determine if the wireless network adapters and the access point are working correctly.

Sunday, July 15, 2012

Use any version of Windows 7 free for 120 days

How to extend Win7′s trial to a full four months
In a nutshell: If you install Windows 7 and don’t enter an installation key, the 30-day activation clock starts. To see how many days you have left, click Start, right-click Computer, and choose Properties. At the bottom of the dialog under Windows Activation, you’ll see the number of days left in your trial period.

When that number gets perilously close to zero, you can extend the free period another 30 days via the following steps:

  • Step 1: Click Start, All Programs, Accessories. Right-click Command Prompt and choose Run As Administrator. Enter your administrator password.
  • Step 2: Type the following command and press Enter:

    slmgr -rearm

    Note the space after slmgr and the hyphen in front of rearm.
  • Step 3: Restart Windows 7.
Once the OS restarts, the Properties dialog described above will indicate that Windows 7′s activation grace period has been reset to a full 30 days.

You can run the -rearm trick a total of three times. If you perform a -rearm at the end of each 30-day period, you end up with 120 days of full, unfettered Windows 7 use without having to supply an activation key in the interim.


Trojan Remover

 Download Trojan Remover NOW

http://www.simplysup1.com/download/dl/trjsetup684.exe

You can download a free fully-working evaluation copy of Trojan Remover by clicking on one of the download links below. The program will work for a full 30 days before you must either register or uninstall it.
The registration fee for Trojan Remover is US$24.00*. This fee covers all database updates and future program updates for 1 year from the date of registration. The fee for renewals in subsequent years is currently US$17.00. You can install Trojan Remover on up to 4 computers for the single registration fee.