I must create an installer which will change default font in MS Office (versions 2010, 2007 and 2003) for default user.
How can I accomplish this?
My first guess was to iterate over MS products and set registry key:
I have tried with registry key (ex. ...Office/14.0/(product ex. Word)/Options with default font: Arial,11), but there was no effect.
After this I’ve tried to create folder Templates in .../Default User/App Data/Microsoft/Templates/ and put there Normal.dotm. After creating new user – in his local App Data – this file was renamed to NormalOld.dotm and standard Normal.dotm file was created by MS Word.
How should I do this?
I’m using WIX installer so I can modify registry keys, copy files, and so on in installation process.
Ok. I’ve found solution:
For MS Word
customNormal.dotm(cusotmNormal.dotfor 2007) – simplyopen new document, modify it as you wish and “Save as…” template (“ms word 97-2003
template” for word 2003).
C:\Users\Default\AppData\Roaming\Microsoft\Windows\Templates(in win 7 eng). In other Windows distrubutions seek inDocuments and Settings,Application Data, and withoutRoamingin path.HKU/<hive>. Hive is inC:\Users\Default\ntuser.dat(hidden)HKU/[your hive name]/Software/Microsoft/Office/[11.0|12.0|14.0]/Word/Optionsname:GlobalDotName, value:customNormal.dotm, type:REG_SZif you have MS Word 2010 (14.0) or MS Word 2007 (12.0) andcustomNormal.dotfor MS Word (11.0).For MS PowerPoint
Blank.potx(2010 and 2007) template just like for MS Word above andBlank.pot(2003)For MS Excel
book.xltx(2010 and 2007) template just like for MS Word above andbook.xlt(2003)<templates folder>/../Excel/XLSTART. For example:C:/Users/Default/AppData/Roaming/Microsoft/Excel/XLSTARTEDIT
And for MS Outlook
NormalEmail.dotmin yourtemplates folderchange styles->fonts->(your font)and change it as you wish. Save it.templates folderfor win 7:C:\Users\Default\AppData\Roaming\Microsoft\Windows\TemplatesThere is other solution for Normal.dotm MS Word 2010/2007 and for Outlook 2010 (that didn’t work for me):
Resolution for Normal.dotm and Outlook 2010