If it exists, the user has entered a "Default personal templates location". Try to read the value PersonalTemplates in that key. Open the key HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options.First, find out whether you need to write it and, if so, what to write. To answer 'Can I programmatically set the "Default personal templates location,"' yes you can, by writing to the registry. The logic here gets a bit twisty, but stick with it.
#How to install word template install
:-/Ĭan I programmatically set the "Default personal templates location," or does that have to be done by the user?īest case scenario: I can install these custom templates for them with my setup program and they are good to go! Worst case scenario: client has to do some manual set-up in order to use my templates. I installed Word 2013 and changed the "User Templates" setting before writing down what it was as default. How do I determine where I should be installing custom Word templates (including, if necessary, what registry entries to check)? Assume several cases: 1) user has just installed Word and has done nothing else prior to running my setup program to installĬustom templates 2) user has run Word but has not created any custom templates of their own 3) user has run Word and has created custom templates and 4) user has run Word and has modified both the "User Templates" setting in the "File Locations" dialog,Īnd/or has entered a custom "Default personal templates location."Īlso, what is the default "User Templates" folder with a fresh install of Word.
From what I can tell, the standard location for Word 2013 user templates is \Documents\Custom Office Templates (some docs say "Documents," internal testing indicates "My Documents").
I need to install some Word 2013 templates for my users.