This project is read-only.


Topics: Developer Forum
May 29, 2008 at 6:47 PM
Is there any reason that the batch file tells you to copy the zip files instead of just copying them?  Is there an issue with determining the Visual Studio folder?

May 30, 2008 at 10:27 PM
Edited May 30, 2008 at 10:36 PM
Not really.
I was just lazy.
You have to detect the operating system first I think, and from Memory,  between XP, Vista & Server 2003/2008, there were some differences in the VS.NET 2008 directories.
May have also been something to do with VS.NET 2005...
I didn't have all the OS' up to test against all of them, so I decided to play safe & document it.


Jun 3, 2008 at 5:06 PM

I changed the code to:
@echo off

FOR /F "tokens=2* delims=     " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0" /v UserItemTemplatesLocation') DO SET location=%%B
copy Source\ESB\BASE\Solutions\Main\SDK\ESBVBProjectTemplates\VB9\ItemTemplates\ESB.NET "%location%\Visual Basic\ESB.NET"

FOR /F "tokens=2* delims=     " %%A IN ('reg query HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0 /v UserProjectTemplatesLocation') DO SET location=%%B
copy Source\ESB\BASE\Solutions\Main\SDK\ESBVBProjectTemplates\VB9\ProjectTemplates\ESB.NET "%location%\Visual Basic\ESB.NET"

It works for me on XP, but I don't have the other OSes to test on.

Jun 3, 2008 at 9:14 PM

Cool. Works for me on Vista too.
My Win2k3 stuff still has VS 2005 & Win2k8 has nothing atm.

I'll put in as above, and leave the existing text as a comment etc.