Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> SOLUTION : Installation error 1325 Templates is not a valid short name for Oracle XE

SOLUTION : Installation error 1325 Templates is not a valid short name for Oracle XE

From: Norman Dunbar <>
Date: Thu, 15 Mar 2007 11:08:49 +0000
Message-Id: <>

Morning all,

some time back I posted about a problem I was having installing Oracle XE on a Windows box. I got no replies :o(. I got as far as extracting the MSI file and then it all blew up with an "Error 1325 Templates is not a valid short name" message box displayed. After that, the installation aborts.

I have now had the same problem with another install so I went hunting and found the solution. I suspect this will work for other problems of this kind as it is not (just) Oracle XE related.

PROBLEM : The registry entry for
HKEY_CURRENT_USER\software\microsoft\windows\currentversion\explorer\UserShellFolders\Templates was defined as %USERPROFILE%\Templates with a type of REG_SZ. Unfortunately, because of the %USERPROFILE% part, it should have been a REG_EXPAND_SZ to get the expansion of the environment variable.

SOLUTION 1 : Using REGEDT32 (Regedit doesn't allow the type to be specifically chosen) navigate to the above location and note down the Template setting. Delete the Template value. (Edit->Delete when Templates is highlighted.)

Now Edit->Add Value.
Enter Templates as the name.
Choose a Type of REG_EXPAND_SZ
Click OK.

Type in the value you noted down earlier, probably %USERPROFILE%\Templates
Click OK.

Check it and exit from the regedt32 app.

Now, double click on the OracleXE.exe file to install it. You do not need to be an administrator to do this.

If you try to install XE while logged in as the administrator user, you will have to redo all of the above because you only changed it for your own login.

Trying to Shift+Right-Click and Run as to install as an administrator will continue to give you the same error that I originally reported.

POSSIBLE SOLUTION 2 : I suspect - but have not tested - that another method of changing the original (wrong) registry entry is simply to change the %USERPROFILE% part of the REG_SZ entry to the fully expanded path to something like c:\documents and settings\username\.


Norman Dunbar.
Contract Oracle DBA.
Rivers House, Leeds.

Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.

We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at

Received on Thu Mar 15 2007 - 06:08:49 CDT

Original text of this message