Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Mark Mears Mark Mears is offline
external usenet poster
 
Posts: 3
Default Programmically set template security on 1 .DOT file

I have been asked to repackage a third party application that installs a Word
Template with a toolbar. The .DOT file is always placed in the Office
Startup folder so that the user can click in the toolbar to activate the
template. While I have been able to get this working by performing a
FileCopy type of operation in the MST, when the user opens Word 2003, they
get a security warning.

I need to be able to script the sequence of checking the €œAlways trust
macros from this publisher€ checkbox and clicking on the €œEnable Macros€
button at the time of installation of the third party application so that
each user does not get prompted with this warning. Can you provide me with
the registry settings necessary to be created or modified to accomplish this?
Office 2003 is a prerequisite to installing the application so it will
always be present at install time.

The customer is running Office 2003 with Service Pack 2, on a Windows XP SP2
platform. Please let me know if you need any additional information.


--
Thanks,
Mark
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Programmically set template security on 1 .DOT file

FWIW, if you install the template in the Word Startup folder instead of the
Office Startup folder, then it will be covered by "Trust all installed
templates and add-ins," and there will be no security message.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Mark Mears" wrote in message
...
I have been asked to repackage a third party application that installs a

Word
Template with a toolbar. The .DOT file is always placed in the Office
Startup folder so that the user can click in the toolbar to activate the
template. While I have been able to get this working by performing a
FileCopy type of operation in the MST, when the user opens Word 2003, they
get a security warning.

I need to be able to script the sequence of checking the €œAlways trust
macros from this publisher€ checkbox and clicking on the €œEnable Macros€
button at the time of installation of the third party application so that
each user does not get prompted with this warning. Can you provide me

with
the registry settings necessary to be created or modified to accomplish

this?
Office 2003 is a prerequisite to installing the application so it will
always be present at install time.

The customer is running Office 2003 with Service Pack 2, on a Windows XP

SP2
platform. Please let me know if you need any additional information.


--
Thanks,
Mark


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Mark Mears Mark Mears is offline
external usenet poster
 
Posts: 3
Default Programmically set template security on 1 .DOT file

What is that location? I looked in the Microsoft Office structure but did
not see anything that looked like it.
--
Thanks,
Mark


"Suzanne S. Barnhill" wrote:

FWIW, if you install the template in the Word Startup folder instead of the
Office Startup folder, then it will be covered by "Trust all installed
templates and add-ins," and there will be no security message.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Mark Mears" wrote in message
...
I have been asked to repackage a third party application that installs a

Word
Template with a toolbar. The .DOT file is always placed in the Office
Startup folder so that the user can click in the toolbar to activate the
template. While I have been able to get this working by performing a
FileCopy type of operation in the MST, when the user opens Word 2003, they
get a security warning.

I need to be able to script the sequence of checking the €œAlways trust
macros from this publisher€ checkbox and clicking on the €œEnable Macros€
button at the time of installation of the third party application so that
each user does not get prompted with this warning. Can you provide me

with
the registry settings necessary to be created or modified to accomplish

this?
Office 2003 is a prerequisite to installing the application so it will
always be present at install time.

The customer is running Office 2003 with Service Pack 2, on a Windows XP

SP2
platform. Please let me know if you need any additional information.


--
Thanks,
Mark



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Programmically set template security on 1 .DOT file

Its default location is C:\Documents and Settings\username\Application
Data\Microsoft\Word\STARTUP, although it can be altered in the Tools
Options File Locations dialog. It's specific to the user profile for
username.

You may have missed it because the Application Data folder and everything
under it is a hidden folder, so you need to turn on display of hidden
folders in Windows Explorer (Tools Folder Options View).

More info at
http://www.word.mvps.org/FAQs/Custom...latesStore.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Mark Mears wrote:
What is that location? I looked in the Microsoft Office structure
but did not see anything that looked like it.

FWIW, if you install the template in the Word Startup folder instead
of the Office Startup folder, then it will be covered by "Trust all
installed templates and add-ins," and there will be no security
message.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

"Mark Mears" wrote in message
...
I have been asked to repackage a third party application that
installs a Word Template with a toolbar. The .DOT file is always
placed in the Office Startup folder so that the user can click in
the toolbar to activate the template. While I have been able to
get this working by performing a FileCopy type of operation in the
MST, when the user opens Word 2003, they get a security warning.

I need to be able to script the sequence of checking the "Always
trust macros from this publisher" checkbox and clicking on the
"Enable Macros" button at the time of installation of the third
party application so that each user does not get prompted with this
warning. Can you provide me with the registry settings necessary
to be created or modified to accomplish this? Office 2003 is a
prerequisite to installing the application so it will always be
present at install time.

The customer is running Office 2003 with Service Pack 2, on a
Windows XP SP2 platform. Please let me know if you need any
additional information.


--
Thanks,
Mark



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Mark Mears Mark Mears is offline
external usenet poster
 
Posts: 3
Default Programmically set template security on 1 .DOT file

Is there a way that a new user would autiomatically receive the template? If
I could add it to the Default User profile I could see where that would work,
but Default User does not have a Word folder under Application Data. As
well, the third party application places the DOT file in the Office11\Startup
folder.

Would it accomplish what I want by using the CMW and importing ther CER file
from there and distributing it to the machines?
--
Thanks,
Mark


"Jay Freedman" wrote:

Its default location is C:\Documents and Settings\username\Application
Data\Microsoft\Word\STARTUP, although it can be altered in the Tools
Options File Locations dialog. It's specific to the user profile for
username.

You may have missed it because the Application Data folder and everything
under it is a hidden folder, so you need to turn on display of hidden
folders in Windows Explorer (Tools Folder Options View).

More info at
http://www.word.mvps.org/FAQs/Custom...latesStore.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Mark Mears wrote:
What is that location? I looked in the Microsoft Office structure
but did not see anything that looked like it.

FWIW, if you install the template in the Word Startup folder instead
of the Office Startup folder, then it will be covered by "Trust all
installed templates and add-ins," and there will be no security
message.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

"Mark Mears" wrote in message
...
I have been asked to repackage a third party application that
installs a Word Template with a toolbar. The .DOT file is always
placed in the Office Startup folder so that the user can click in
the toolbar to activate the template. While I have been able to
get this working by performing a FileCopy type of operation in the
MST, when the user opens Word 2003, they get a security warning.

I need to be able to script the sequence of checking the "Always
trust macros from this publisher" checkbox and clicking on the
"Enable Macros" button at the time of installation of the third
party application so that each user does not get prompted with this
warning. Can you provide me with the registry settings necessary
to be created or modified to accomplish this? Office 2003 is a
prerequisite to installing the application so it will always be
present at install time.

The customer is running Office 2003 with Service Pack 2, on a
Windows XP SP2 platform. Please let me know if you need any
additional information.


--
Thanks,
Mark






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Programmically set template security on 1 .DOT file

The footnote in the article I cited before explains why the Office11\Startup
folder isn't a good place for any templates.

You didn't say what kind of repackaging program you're using, but in general
you need to find the login name of the current user and use that to create
the template's installation path. The code in
http://www.word.mvps.org/FAQs/Macros...urUserName.htm may help, if you
can translate it into whatever scripting language your software uses.

I don't know the answer to the questions about the CMW. You might get
answers in the microsoft.public.office.setup or
microsoft.public.word.vba.general newsgroups.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Mark Mears wrote:
Is there a way that a new user would autiomatically receive the
template? If I could add it to the Default User profile I could see
where that would work, but Default User does not have a Word folder
under Application Data. As well, the third party application places
the DOT file in the Office11\Startup folder.

Would it accomplish what I want by using the CMW and importing ther
CER file from there and distributing it to the machines?

Its default location is C:\Documents and
Settings\username\Application Data\Microsoft\Word\STARTUP,
although it can be altered in the Tools Options File Locations
dialog. It's specific to the user profile for username.

You may have missed it because the Application Data folder and
everything under it is a hidden folder, so you need to turn on
display of hidden folders in Windows Explorer (Tools Folder
Options View).

More info at
http://www.word.mvps.org/FAQs/Custom...latesStore.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Mark Mears wrote:
What is that location? I looked in the Microsoft Office structure
but did not see anything that looked like it.

FWIW, if you install the template in the Word Startup folder
instead of the Office Startup folder, then it will be covered by
"Trust all installed templates and add-ins," and there will be no
security message.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

"Mark Mears" wrote in
message ...
I have been asked to repackage a third party application that
installs a Word Template with a toolbar. The .DOT file is always
placed in the Office Startup folder so that the user can click in
the toolbar to activate the template. While I have been able to
get this working by performing a FileCopy type of operation in the
MST, when the user opens Word 2003, they get a security warning.

I need to be able to script the sequence of checking the "Always
trust macros from this publisher" checkbox and clicking on the
"Enable Macros" button at the time of installation of the third
party application so that each user does not get prompted with
this warning. Can you provide me with the registry settings
necessary to be created or modified to accomplish this? Office
2003 is a prerequisite to installing the application so it will
always be present at install time.

The customer is running Office 2003 with Service Pack 2, on a
Windows XP SP2 platform. Please let me know if you need any
additional information.


--
Thanks,
Mark



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using .dot files over the Internet Eric Legault [MVP - Outlook] Microsoft Word Help 2 March 22nd 06 04:09 AM
AutoText entries will be lost Chuck Microsoft Word Help 8 March 13th 06 01:22 PM
difference between 'regular' template and global template? Jackie D Microsoft Word Help 7 July 15th 05 10:27 PM
How to creat relative and shorthand file path names? 2dogs Microsoft Word Help 1 May 15th 05 12:11 PM
Moving templates to other computer GeorgeMar Microsoft Word Help 10 February 19th 05 04:59 AM


All times are GMT +1. The time now is 07:57 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"