Vista: Running a command as an Administrator

July 31, 2008

Sometimes the learning curve is just too big! Anyhow…

I’ve being trying to install SQL Server 2005 Express on my new Vista Ultimate 64-bit laptop. Well, I got the main files installed, but also wanted to install the Management Studio too. First I was thwarted by an Asian version on the Microsoft SQL Express download page (no English version available). Anyhow after a lot of searching I found an English language version (link below).

Then when I tried to install it, I kept getting error code 29506 messages at the END of the installation (why couldn’t they give me the error message at the BEGINNING of an installation?). More Googling, swearing, frustration, etc. I found the answer on some of the forums—obviously others have had this problem too! The error is all related to Vista permissions (so, why doesn’t the error message tell me that?), and the solution is to install the application from a command prompt (hello??? DOS??? on Vista???) that’s been set up to run as an Administrator. What the…?

Again, this is easy once you know how, but when you’re new to Vista—as I am—and have no-one to help, it just takes a lot of perseverance and frustration… Here’s what you do:

  1. Click the Start icon.
  2. Type CMD into the Search box.
  3. Right-click on cmd.exe then select Run as Administrator. THIS IS IMPORTANT!
  4. On the Command window, use the cd command to change the directory to where the file you want to install is located. (NOTE: It must be on a local drive—I tried entering a UNC path to the server where it was located, but got a message that ‘CMD does not support UNC paths as current directories’; I also tried the mapped drive letter, but it didn’t like that either!)
  5. Type the location and name of the executable or MSI file (e.g. C:\Users\<username>\Documents\<filename.extension>), then press Enter.
  6. The installation will happen as normal, except this time it will work!

Location of English language version of SQL Server 2005 Express Management Studio file: http://tinyurl.com/mkvgw (Microsoft Downloads site)

[Link last checked July 2008]


  1. Yup, this is correct. I was googling for the same thing today and saw this fix in a few places now. At some point it got traction so it’s probably going to be well known soon enough, but damn it was frustrating.

  2. What I found frustrating was that all the places where I found it told me to run the executable from the Command window as an administrator, didn’t tell me how to do that first critical bit!

    Like anything new, once you know, it’s easy. But when it’s all unfamiliar, it’s baffling.

  3. […] If you still get that error code (I did), then install from the CMD prompt running as Administrator — I blogged about how to do this here: https://cybertext.wordpress.com/2008/07/31/vista-running-a-command-as-an-administrator/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: