GravityCube - Development, design, and simplicity.

Visual Studio 2008 and Visio for Enterprise Architects

Saturday, 7 June 2008 11:41 by jf26028

So, I rebuilt a workstation because I am soon to lose my current wicked awesome hp laptop.  Like many people, reloading a workstation is both, a pleasure and a pain.  On one hand, you get to refresh your xp installation, so everything seems super fast again.  On the down side, none of your tools, plug-ins, extensions, settings, or any of that stuff is in place, so you have to redo all that work.

Anyway, I installed visual studio 2008 and Visio.  Then, like zillions of other people, I said "Hey!  Where did the generate menu go?".  Turns out, Visio Professional is just not quite professional enough to generate a script from a database diagram.  Good grief.  So, where is this Enterprise Architect version?  Sweet.  Its on msdn.  Pulled it down, and started to install, and soon, all would be well in the world....or so I thought.

Now, I came up against the dreaded "You must first install one of the qualified Visual Studio editions" or it's evil cousin "you must first install visual studio 2003 enterprise architect".  Blast!  Turns out, you can only install the good Visio if you have visual studio 2003 or 2005 enterprise architect installed.  You have got to be kidding me.  I have msdn.  I have access to both of those applications.  I do not want to re-install visual studio 2005 over my new, pristine 2008 installation, but I really need Visio, with the generate functionality.

Well, after lots of searching, and accepting the fact that I was probably violating some sort of licensing agreement, I came up with a hack workaround.  If you have an installation of visual studio 2008, and want Visio enterprise architect, but do not want to install visual studio 2005, this can work for you.  I gave filemon a try, but it didn't look like it was doing anything interesting.  Then, I gave regmon a try, filtered on msiexec, and found some interesting keys.  The last thing it did before bailing out on the installation was look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0.  I did have that key in my registry, but it obviously didn't have exactly what the installer was looking for.  In the 9.0 folder was my visual studio 2008 installation.

I exported the 8.0 folder using regedit for a backup, exported the 9.0 folder, opened the exported .reg file, did a search/replace on "9.0" to "8.0", and saved it.  Then, I imported the modded 9.0->8.0 .reg file into the registry, basically pretending that my visual studio 2008 installation was actually a visual studio 2005 installation, at least as far as the registry was concerned.  Fired up the Visio installer, and, kachow, it worked.  After installing, I reverted back to my original 8.0 export, and everything is good to go.

It is a hack to get you going, but if you have the same problem, and are crazy like me, this can get you going.

Jesse Foster | jf26028

Currently rated 4.3 by 6 people

  • Currently 4.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   , ,
Categories:   Tools
Actions:   E-mail | del.icio.us | Permalink | Comments (22) | Comment RSSRSS comment feed

Related posts

Comments

June 9. 2008 08:27

jw

The work around works.

Thanks Jesse

jw

June 25. 2008 22:50

dan

Thanks. It also worked for me. It would be kinda nice to know the exact key(s) to alter so I didn't copy so much unnecessary junk (that 9.0 key is huge!), but hey, the cheap solution worked!

dan

June 26. 2008 10:50

Cristian remy

Thanks man!!

Cristian remy

June 27. 2008 19:35

Cristian Remy

Ok the exactly key is:
HKLM\Software\Microsoft\VisualStudio\8.0\Setup\VS\VSTD\

Inside from the key add a String with name ProductDir and put any text inside.

VSTA installation will start

Cristian Remy

June 28. 2008 03:50

关涛

2008的要钱吗?

关涛

June 30. 2008 19:19

jf26028

guan,

No, not money 2008. Visio 2003/2005 and Visual Studio 2008.

Jesse

jf26028

June 30. 2008 23:52

关涛

谢谢你!我使用的是 Visual Studio 2005 + SQL Server 2005,感觉非常的不错!但是 Visual Studio 2008 发布以后,我一直还没有使用过,我一直以为是要付费的!

关涛

July 3. 2008 09:21

Caio

Great, it works like a charm!

Thanks a lot, great work!

Caio

July 11. 2008 03:32

Adventure Lover

But why do they make us jump through these hoops to begin with. Microsoft licensing is so-overcomplicated it just drives people into the arms of open-source

Adventure Lover

August 6. 2008 01:50

kuklei

Visio for Enterprise Architects is a great tool for database design and generation (with some caution). Works perfectly with VS 2K5, and surprising why it does not come with 2K8.

The workaround works perfectly. Previously I had installed VS 2K5 (minimal), installed Visio then uninstalled 2K5, but this takes more time than the method described here.

Thanks jf26028

p.s. Did anyone try Remi's key suggestion. I forgot to give it a try before replacing the whole 8.0 key

kuklei

August 17. 2008 17:07

Adron

I've had this same issue too. It made me stop Visio usage across all my tasks. I now either use 3rd party tools or just design the database straight and use the script generation inside VS.NET 2008.

...after the frustration, I've actually increased the speed that I can get DB changes put into place just using VS.NET 2008 and not even touching Viso anymore.

Adron

August 18. 2008 05:20

Manie

[Quote]Ok the exactly key is:
HKLM\Software\Microsoft\VisualStudio\8.0\Setup\VS\VSTD\

Inside from the key add a String with name ProductDir and put any text inside.

VSTA installation will start

Cristian Remy
[/Quote]

This works like a charm. Minimal fuss and the key can stay there.

Manie

August 20. 2008 20:59

GMF

Note that some versions will look for:

HKLM\SOFTWARE\Microsoft\7.0\Setup\Vs\Arch\
(string) ProductDir [some value]

AND

HKLM\SOFTWARE\Microsoft\7.1\Setup\Vs\Arch\
(string) ProductDir [some value]

GMF

August 22. 2008 03:02

thegamer

I had neither the HKLM\Software\Microsoft\VisualStudio\8.0\Setup\VS\VSTD\ key nor one of the others.

But I just created them like explained above and it worked smoothly.

Thanks and cheers

thegamer

August 28. 2008 14:18

busby seo challenge

Nice Visual Studio 2008 and Visio for Enterprise Architects, thanks and great post..

busby seo challenge

September 4. 2008 22:07

Mark M

On Windows 2008 Server 64 bit I couldn't get the above key to work. I used process monitor to watch my registry, this worked for me:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\8.0\Setup\VS\VSTD

Mark M

September 5. 2008 05:46

Jesse Foster

Thanks for the update, Mark.

Jesse

Jesse Foster

September 7. 2008 09:42

kabonfootprint

On Windows 2008 Server 64 bit I couldn't get the above key to work. I used process monitor to watch my registry, this worked for me:

Great post mark..

kabonfootprint

September 17. 2008 21:19

Don Almeida

Nice, the installation was a success, thanks, are there any side effects that any one has come acorss after using this hack.

Don Almeida

September 17. 2008 23:21

Jesse Foster

Don,

I haven't experienced any, and none have been reported, but there's no guarantee, I guess. If you do find any issues, please post so we know that this isn't the best way to go.

Jesse

Jesse Foster

October 1. 2008 10:19

Janice

The registry hack worked great for me, too. However, I'd always recommend SmartDraw as an alternative to Visio. So much more to work with and easier, too.

Janice

October 1. 2008 10:55

jf26028

Janice,

Thanks for the heads up. Ill take a look at SmartDraw.

Jesse

jf26028

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading