I'd like to ask for an advice. I'm building an installer for VBA project (MS Word) and need to insert some files to MS Word Startup folder.
This folder is usually (understand default) located at
Code: Select all
%AppData%Microsoft\Word\STARTUP
So far I figured out that I need use registry search for checking
Code: Select all
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options
16.0 - means Word 2016
because I need to check versions from 2007 to 2016 I believe I need to setup 4 searches (12.0,14.0,15.0,16.0), am I right?
If any of the searches return a value (a path) then, I think, I need to use property based folders to be able to install the files to the custom Startup folder. So far I think I know how to do that but here is the main question.
When the above searches didn't return any value, it means the user uses the default path. How can I prepare for it? I believe I need some sort of
Code: Select all
IF
Thanks in advance
Premysl