Programmatically Set the Workgroup Templates location

G

Guest

I want to create an installation program in Visual Basic.NET to install Excel
templates on a user's computer system. That's no problem, but I also need to
see if the user already has a Microsoft Office Workgroup Templates location
identified. If they do, then I want the Excel templates to be installed in
that directory. If they don't, I want to set the Workgroup Templates
location programmatically.

So, what namespace and class allows me to read and change the Workgroup
Templates location?

Thanks,
joe
 
D

David Lloyd

Joe:

The following KB article contains information about the registry location
for the Workgroup templates.

http://support.microsoft.com/default.aspx?scid=kb;en-us;889495

Generally, although I don't know all of your specifics (version of Visual
Studio, Office, etc.), you can use the Registry Installation Editor to write
registry values , and the Launch Conditions Editor to read registry values.
The following KB article has more information.

http://support.microsoft.com/default.aspx?scid=kb;en-us;827026


--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I want to create an installation program in Visual Basic.NET to install
Excel
templates on a user's computer system. That's no problem, but I also need
to
see if the user already has a Microsoft Office Workgroup Templates location
identified. If they do, then I want the Excel templates to be installed in
that directory. If they don't, I want to set the Workgroup Templates
location programmatically.

So, what namespace and class allows me to read and change the Workgroup
Templates location?

Thanks,
joe
 
G

Guest

David-
I read through the articles that you referenced and I see how to proceed.
Thank you very much for your advice.
-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top