Monday, September 25, 2006

Office 2003 SKU011.CAB problem

 



When Office2003 couldn't find file SKU011.CAB:


regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -> [11.0] -> [Delivery] -> {90000409-6000-11D3-8CFE-0150048383C9} -> [CDCache] change to [0] .... Done!

Friday, September 15, 2006

Clean up a SQL 2005 instance name

A nice trick provided by Aaron Stebner
Ref: http://blogs.msdn.com/astebner/archive/2005/12/08/501885.aspx

I have heard from a few customers who have tried to uninstall beta versions of SQL 2005 and then install the final release and have run into errors with both the beta uninstall and the final release install. I have already described the most common uninstall error and a suggested workaround in this previous blog post (an error reading property "Installids" from the cache and/or an error writing property "flagCommit" to the cache).

I wanted to address one of the most common final release install errors I have seen - a duplicate instance name error that causes SQL setup to fail and rollback. It is pretty easy to tell if you are running into this error if you launch SQL setup directly and step through the SQL setup UI. However, if you are installing SQL Express as a part of Visual Studio 2005, setup runs in silent mode and you will only see a generic error bubbled up from Visual Studio setup indicating that SQL Express failed to install.

VS 2005 configures SQL Express with an instance name of SQLEXPRESS when it runs SQL setup in silent mode. It also used this same instance name in the betas, so if something goes wrong with uninstall, you may end up with an orphaned instance name on your system, and then installing the final release will fail. In this case, the verbose setup log file for SQL Express will show an error that looks like the following:
MSI (s) (AC!38) [00:01:41:056]: Product: Microsoft SQL Server 2005 Express Edition -- Error 28086. An instance with the same name is already installed on this computer. To proceed with SQL Server Setup, provide a unique instance name.

Error 28086. An instance with the same name is already installed on this computer. To proceed with SQL Server Setup, provide a unique instance name.

If you are running into an error installing SQL Express as a part of Visual Studio 2005 setup, you can check in the SQL Express log files (located at %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG). If you are receiving an error about the instance name not being unique, you can manually clean off the orphaned instance name by doing the following:

  1. Click on the Start menu, choose Run and type regedit

  2. Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server

  3. Remove SQLEXPRESS from the REG_MULTI_SZ value named InstalledInstances

  4. Delete the subhive named MSSQL.1

  5. Delete the subhive named SQLEXPRESS

  6. Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Names\SQL

  7. Delete the value named SQLEXPRESS

  8. Delete the folder %ProgramFiles%\Microsoft SQL Server\MSSQL.1


Note - the above steps apply to the instance name that is created when SQL Express is installed as a part of Visual Studio 2005. The actual instance name on your system may vary if you have had any other beta version of SQL 2005 (such as the developer edition). Please make sure to adjust the steps accordingly based on what instance name information is in your registry and file system.

Thursday, September 7, 2006

DirectInput refresh

Simply remove files in:

Program Files\Common Files\DirectX\DirectInput\User Maps\*.*

Redirect Apache request to IIS

Just got some ideas for redirecting Apache request to IIS, if anyone make this work, please let me know.

RewriteEngine on
RewriteRule ^/(.*\.asp)$ http://localhost:81/$1 [P]

Usage on Weka Attribute Filter

I seldom use Weka, but just reminded me some work I did years ago...





AttributeFilter af = new AttributeFilter();
int i[] = {1,2,3};
af.setAttributeIndicesArray(i);
af.setInputFormat(data);
Instances ins = Filter.useFilter(data,af);
System.out.println(ins);



Thursday, August 24, 2006

Some nice software to remember...

hddsaver.com provides some cool ways to set up a portable office in a Flash drive.

Foxit Reader: Small PDF reader

Fast stone provides images viewer and screen capturing software for free.

Notepad2 a handy Notepad replacement.

Thursday, April 20, 2006

Click to activate and use this control - KB912812

After using WinXP SP2, IE may have the 'Click to activate and use this control' problem for most ActiveX control (e.g. Flash). Click here for a solution.

Thursday, March 16, 2006

Oracle instant client

The instant client could be downloaded here.

And some notes about the installation.

Sync multiple git repo at once

Use the following command in Linux will do the job:  ls -d RepoNames* | xargs -I{} git -C {} pull