Windows XP: Deploying Registry Changes With a Text File

Updating the Registry involves nothing more than exporting the capabilities from the Windows Registry


Here's how to create the file:
1. In RegEdit, navigate to the branch or sub-branch that contains your functionality. It doesn't matter how deeply buried the key(s) are that contain your features; just that you select only your own changes. It might be necessary to analyze the registry before and after you make your changes to figure out which Registry keys are storing your functionality. If you're confident you can do that, skip to step 2.
How to Identify Your Registry Changes
1a. Reboot Windows, running as few apps and system tray utilities as possible.
1b. Open RegEdit and single-click the HKEY_CURRENT_USER branch. Select File>Export to export the branch. Repeat for the HKEY_LOCAL_MACHINE branch.
1c. Implement the changes necessary for your application.
1d. Repeat step 1b--be careful not to change anything else in Windows.
1e. Use your favorite diffing utility to identify differences between the two files before and after the changes. Save ONLY THE DIFFERENCES of each file pair as two separate text files.
1f. Examine those text files for changes pertaining to your work. Text that appears in [SQUARE BRACKETS] is the Registry key name, followed by the changes made to that key. Delete any unrelated text and formatting added by the diff utility.
1g. At the top of the file, add the text "Windows Registry Editor Version 5.0" plus a blank line.
1h. Save the file with a .reg extension.
1i. Repeat steps 1f through 1h for changes in HKEY_LOCAL_MACHINE, if necessary.
NOTE: If implementing changes to multiple branches in a single file, do not repeat the "Windows Registry Editor Version 5.0" header.
Once you've identified your Registry changes:
2. Single-click the branch containing your functionality and select File>Export.
3. Save the branch containing your work with a .reg extension.
4. To apply the changes...
...from the command line, execute the command...from within Windows, double-click the .reg file and follow the prompts.regedit /s file.regwhere "file.reg" is the name and full path of your file. The "/s" switch suppresses confirmation.
...from within RegEdit, select File>Import, select the .reg file and follow the prompts.
How to Identify Your Registry Changes
1a. Reboot Windows, running as few apps and system tray utilities as possible.
1b. Open RegEdit and single-click the HKEY_CURRENT_USER branch. Select File>Export to export the branch. Repeat for the HKEY_LOCAL_MACHINE branch.
1c. Implement the changes necessary for your application.
1d. Repeat step 1b--be careful not to change anything else in Windows.
1e. Use your favorite diffing utility to identify differences between the two files before and after the changes. Save ONLY THE DIFFERENCES of each file pair as two separate text files.
1f. Examine those text files for changes pertaining to your work. Text that appears in [SQUARE BRACKETS] is the Registry key name, followed by the changes made to that key. Delete any unrelated text and formatting added by the diff utility.
1g. At the top of the file, add the text "Windows Registry Editor Version 5.0" plus a blank line.
1h. Save the file with a .reg extension.
1i. Repeat steps 1f through 1h for changes in HKEY_LOCAL_MACHINE, if necessary.
NOTE: If implementing changes to multiple branches in a single file, do not repeat the "Windows Registry Editor Version 5.0" header.
Setup Windows XP on a SATA HDD drive
Problem
When trying to install Windows XP on a single Serial ATA (SATA) hard disk, the setup doesn't see the SATA drive.
Solution
You need the RAID driver for the SATA/RAID controller on your PC's motherboard. It should look like the one shown below:-
Insert your Windows XP setup disk and reboot your PC.
Let the PC boot from the CD and run the Windows setup. (You may need to adjust your BIOS to make the PC boot from the CD-ROM)
You you see the blue screen of the setup program press F6 when you see it displayed in the white bar along the bottom.
You will then be prompted to insert your driver diskette and press ENTER.
The diskette will then be read and the will continue along the setup process.
You will then see the following screen:-
Select S to Specify Additional Device.
It will present a list of drivers which it read from the disk earlier. Select the appropriate driver for your operating system.
The setup will continue and this time it will recognise the SATA hard disk drive in your PC.
Do you Know Useful Shortcut Keys
Windows shortcuts
Desktop Shortcut keys
- To get to your Windows desktop when you have several different windows open
- Win key + M. Win key + Shift + M gets them all back again.
- Win key + D toggles between open applications and the desktop.
- To close all windows and applications quickly press Alt + F4.
Win Key (Wk) Shortcuts
- Wk Show Start Menu
- Wk + D Desktop (toggle)
- Wk + E Windows Explorer
- Wk + F Find
- Wk + R Run
- Wk + Pause System Properties
- Wk + Tab Steps through the programmes on the taskbar
- Wk + F1 Windows Help
- Wk + M Minimizes all open windows (+ shift M undoes the minimizing)
- Wk + BREAK System properties
- Wk + L Lock Keyboard
- Wk + U Utility Manager
- Wk + SHIFT + M Restore minimised Windows
- Wk + CTRL + F Search for computers
Expand All Folders in Windows Explorer
- If you want to expand all the folders and subfolders for a particular drive, click on that drive and press
the ' * ' key on the numeric keyboard - Expand individual highlighted folders press '+'
Microsoft Access keyboard shortcuts
- Enter the Value that Appears in the Same Field in the Previous Record Keyboard Shortcut: Ctrl+' (apostrophe)
- To undo typing CTRL + Z or ALT + BACKSPACE
- To Undo changes Hit ESC once for current field, ESC twice for current record
- To insert the current date CTRL + SEMICOLON (;)
- To insert the current time CTRL + COLON (:)
- To insert the default value for a field CTRL +ALT + SPACEBAR
- To insert the value from the same CTRL + APOSTROPHE (') field in the previous record
- To add a new record CTRL + PLUS SIGN (+)
- To delete the current record CTRL + MINUS SIGN (-)
- To recalculate the fields in the window F9
Paint Shop Pro shortcuts
- CTRL+Z Undo
- CTRL+N Create a new image
- CTRL+Shift+T Displays all toolbars
- CTRL+A Select All
- CTRL+D Deselects the current selection
- CTRL+S Save
- F12 Save As
- CTRL+C Copy
- CTRL+X Cut
- CTRL+V Paste as a New Image
- CTRL+L Paste as a New Layer
- CTRL+E Paste as a New Selection
- Shift+S Resize an image
- CTRL+R Rotate an image
- CTRL+B Browse your images (display images in a folder) Very handy!! Click the image to the right to see a larger view of the Browse screen and directions on how to use the feature.
Microsoft Excel
- HOME Beginning of row
- CTRL + END Bottom of worksheet
- CTRL + PAGE UP / PAGE DOWN Different sheet
- END + RETURN End of row
- CTRL + SPACEBAR Entire column
- SHIFT + SPACEBAR Entire row
- CTRL + A Entire worksheet
- F8 Extend selection
- CTRL + F6 Go to next workbook
- CTRL + SHIFT + F6 Go to previous workbook
- PAGE UP / PAGE DOWN Previous / next screen
- CTRL + HOME Top of worksheet
Problems with XP Service Pack 2
in Labels: How to Service and speed up my PC, Problems with XP Service Pack 2
0 comments
Microsoft released Service Pack 2 for Windows XP to increase security and fix bugs.
After installing SP2 I noticed some problems with my computer. I searched the internet and sure enough lots of other people have been having problems too.
"My Computer"
I couldn't fail to notice that after install Windows XP Service Pack 2 that when I clicked on the "My Computer" icon ...
that it took a very long time to list all the drives. Curiously I notice this problem did not exist in my drive manager utility (plug ;-) Drive Manager ) so I knew this had to a problem in Windows and not with any off my drives.
This problem was not just in "My Computer" but also in standard "Save as" dialog
in any program when you click on "My Computer" to change to another drive, so this problem was going to be a huge hindrance.
I have my suspicions that the problem is with my internal 6 in 1 multi card reader which is connected internally to the USB ports on the motherboard.
"Printing"
Another problem I have experienced after installing SP2 is printing to my Canon MPC 200 Multi printer which is also connected to a USB Port.
Uninstalling
After uninstalling SP2 both these problems where resolved.
Solution
This problem was with the Printer. The driver of the particular printer has a problem with Windows XP Service pack 2. The printer (Canon MPC 200) has a built in compact flash card reader. It's this card reader which causes the long delay when clicking on "My Computer". Therefore both these problems were with the printer or more specifically the printer drivers.
How to Service and speed up your PC
in Labels: How to Service and speed up my PC, How to Service and speed up your PC
0 comments
If your computer has gradually become slower to operate, respond and the hard disks seems to be accessing all the time then may be your computer is over due for a service. In the past I services people's computers for them on a regular basis and here is a guide as to what to do. I find that if you perform all the these tasks, it will make your PC feel almost like new again. In most cases it can prevent the need to format the hard disk and reinstalling Windows again from scratch.
- Run System File Checker.
- Scan for and remove Spyware and Adware programs.
- Clean out system startup.
- Clean registry.
- Fix the registry.
- Run Norton Windoctor.
- Run Scandisk / Norton Disk Doctor.
- Remove temp file, history files and other junk files.
- Install Latest Windows Service Packs and security fixes.
- Update or reinstall the internet explorer.
- Install latest runtime libraries.
- Scan and remove viruses.
- Perform system tweaks.
- Defragment your hard disk.
- Drivers
Lets take a look at each of these tasks in more detail.
Run System File Checker.
System File Checker is a utility that comes with Windows that checks the core system files for corruption. If a file is found to be corrupt then it will prompt you to insert your original Windows installation CD into your CD-ROM so it can restore the file. You will need the correct Windows installation CD with the correct level of service pack installed. For example you cannot use Windows XP Professional - Service Pack 2 CD to restore Windows XP Home Service Pack 1.
To run on a Windows 95,98 or ME
- click Start
- Programs
- Accessories
- System Tools
- System Info.
- Then Select System File Check from the tools menu.
To run on Windows 2000 or XP Click Start - Run and type in sfc /scannow.
Scan for and remove Spyware and Adware programs.
When you install software sometime along with that software Spyware or Adware programs are install along with it without you knowing. These programs monitor things like your surfing habits and report them back to their creators for marketing research. They can also display internet pop screens will your surfing to advertise other companies products and website. All these extra programs can add up and are taken valuable resources away from your system. Your CPU can end up having to process instructions from hundred or different pieces of Adware and spyware these will all be using up your ram while running and are completely unnecessary. When you are connected to the internet these programs will be calling up ads from other site and reporting your surfing habits back to there databases. This is taking up your internet bandwidth.
To track down and remove all these nasty little pieces of software there are several programs available to do this.
Microsoft have just released their own spyware scanner / remove which can be downloaded from :-
http://www.microsoft.com/athome/security/spyware/software/default.mspx
If you have Windows XP then I highly recommend that you install Service Pack 2. Service pack 2 contains a firewall for blocking unsolicited requests and unauthorised installed objects to your PC from web pages. It also installs a pop-up block in the Internet Explorer.
Clean out system startup.
Some software that you install will add part of itself to your system start-up so that when your when your computer is booted up the software is preloaded with a little icon in the system tray. This is something that is sometime done without you knowing about it. If too many things are in your start-up your computer might short of available Ram and need to continually swap things in and out of memory to the hard disk, slowing your computer down. Its worth every so often going through the start-up and removing programs that you don't need preloaded.
To inspect your start-up you can run a program which comes with Windows called MSConfig. You can do this by click START - RUN and typing in msconfig.exe For some reason Windows 2000 does not come with MSConfig so I recommend a program called Startup Control Panel by Mike Lin. This is a very good utility which is only 76k in size. It can be downloaded from http://www.mlin.net/
Clean the registry.
The registry is a database in Windows that stores data and settings for all the hardware, software, and user settings of your software and Windows itself. Lots of programs don't remove their registry entries when they are uninstalled. The registry can get clogged up with orphan, corrupt and used entries. System errors can occur if a file specified in the registry not longer exists on your hard disk.
To clean clean the registry there are lots of programs available that will remove these unneeded registry entries.
Fix the registry.
If your registry becomes corrupt your computer may crash when software tries to access the registry. In this case you will need to either perform a repair on it or replace it with a recent backup.
If your using Windows 98 or Windows ME. You can use "scanreg /opt" and "scanreg /fix" to shrink and repair registries.
For more information see the Microsoft Knowledge base article at http://support.microsoft.com/kb/q184023/
Thanks to Craig McAdams for this tip.
Run Norton Windoctor.
If you have a copy of Norton System Works run the Win Doctor program which is part of it. Win Doctor can detect and fix lots of common problems that can occur in Windows. There are also other utilities which come with Norton System Works which are useful for servicing your PC. I have not yet been able to find a free alternative to Win Doctor but when I do so I will promote it here.
Run Scandisk / Check Disk / Norton Disk Doctor.
Below shows the console version which can be run from the command prompt. With the /F parameter for fix it will repair errors to the hard disk. As shown in the screen shot below it will need to do this on the next reboot.
Before servicing a PC I like to check for any errors that may be on the hard disk. You can do this by running Scandisk which is part of Windows or if you have a copy of Norton System Works you can run Norton Disk Doctor which is much more comprehensive.
Remove temp file, history files and other junk files.
When you use your computer in general a particularly when you surf the internet your computer creates lots of temporary files. Software installs often decompress themselves to a temporary folder which doesn't get cleared down afterwards. Temporary files can add up to hundreds of megabytes and is simply a waste of space. I have also encountered situations where poorly written software uses a sequence of numbers to generate its temporary files and looks through the all the existing temporary files to find the next one in the sequence which is very slow.
Windows has a disk cleanup tool which I find to be very slow. I like Ultra Win Cleaner which is much faster for doing a quick clean up. It also has a registry cleaner. I am currently working of my own PC Servicing tool which will have a disk clean function.
Install Latest Windows Service Packs and security fixes.
Installing to latest Windows service packs and security fixes is a must as Microsoft are frequently finding security holes and bugs and bringing out updates to fix them. This process is also a good way of replacing any corrupt system files you may have on your PC. If you have broadband you can download the latest service packs from www.microsoft.com. If you only have a 56K modem you can often find them on the cover CDs and DVDs of various computer magazines.
If you have a dialup modem instead of broadband and find that downloading Microsoft's updates takes a long time then you can order a CD containing a summary of there security fixes from this address http://www.microsoft.com/security/protect/cd/order.asp
Update or reinstall the Internet Explorer.
Although this also falls under the heading of the previous section I think it is so important I have given it its own section. You can fixes loads of browsing and stability problems by installing the latest Internet explorer upgrade. If how ever you already have the latest version of the internet explorer installed you can refresh any corrupt files by performing a reinstall.
Install latest runtime libraries.
This one is optional but if you have a computer which is unstable it may be worth installing the latest runtime libraries for various technologies as this might replace current versions that may have become corrupt. The latest versions may also have bug fixes in them.
Runtime libraries can be downloaded from here
Scan and remove viruses.
This is an obvious one but often when people bring a computer to me to service I find that it has no anti virus software installed and is therefore infected with many viruses. If your computer is infected with a virus or viruses your computer will slow down and become very unstable as the viruses instruct your computer to look for other files or emails to infect and well as the damage they may be doing to your system files.
I currently recommend the Kaspersky Anti-Virus scanner.
If you do not have a virus scanner installed there are a number of online virus scanners:-
http://www.bitdefender.com/scan8/ie.html
http://www.kaspersky.com/remoteviruschk.html
http://housecall.trendmicro.com/housecall/start_corp.asp
http://security.symantec.com/sscv6/default.asp?langid=ie&venid=sym
Sophos do a useful command line virus scanner which can be downloaded for free from :-
http://www.sophos.com/tools/sav32sfx.exe This tool does not disinfect files but will tell you which files are infected to you can delete them yourself if you wish.
The AVG virus scanner has a free edition which can be downloaded from http://free.grisoft.com/doc/2/lng/us/tpl/v5. This version allows free updates once a day. With virus scanners like this available no one has any excuse not to have antivirus software installed.
One of the main ways in which viruses spread is through emails. Once your computer becomes infected the virus can read your contacts in outlook and email each of them a copy of itself. To prevent this I recommend disabling the preview pane so that HTML emails which contain viruses attached our not automatically executed before you have had chance to delete them. I also strongly recommend installing Service Pack 2 if you are running Windows XP.
Perform system tweaks.
There are many tweaks you can perform on your system that can increase performance. Older operating systems such as Windows 98 can have tweaks to increase various cache setting which are set at a lower default setting for the hardware which was current at the time of release. There are also tweaks to remove built it delays and remove unnecessary features. There are a number of programs that can do this. I recommend PCBooster.
Defragment your hard disk.
When files are deleted from your hard disk a gap is left where the file used to be. The next time a file is written to the hard disk the gap is filled with part of that new file (if the new file is larger) and the rest in other gaps or spaces which are marked as available. Over a period of time instead of files be stored in a continuous block they are fragmented across the disk. Defragmenting the disk is the process of taking these fragmented files and concatenating them to continuous blocks. This means to hard disk head is not continuously moving about all over the disk to read the files.
This may be obvious to some people but it's amazing how many technical people do not perform this tasks regularly or at all and it can make serious improvements to performance.
To defrag a hard drive simply
- right click on the drive in My Computer
- select Properties
- Tools
- Defragment Now
Drivers
Make sure all your hardware drivers are installed and up to date. One of the quickest and easiest way to do this is using the website http://www.driveragent.com