Determining what components of Microsoft Office are installed
-
Hi all, Seeing as there's no MS Office board, I thought I might try here. Basically what I want to do is during setup is to check that all components of Microsoft Office have been installed and if not, launch Windows Installer to install the rest of the components. Doing this during setup is not a problem for me, it's just the checking of components of Microsoft Office that's the real difficulty.
-
Hi all, Seeing as there's no MS Office board, I thought I might try here. Basically what I want to do is during setup is to check that all components of Microsoft Office have been installed and if not, launch Windows Installer to install the rest of the components. Doing this during setup is not a problem for me, it's just the checking of components of Microsoft Office that's the real difficulty.
Don't know if it's any use but have you had a look at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\{Version}\{Application}
? I can't tell what's in here since I always install everything. But under each{Application}
node there is anInstallRoot
key.
The Welsh will always support two teams: The Welsh, and anyone playing England :)
-
Don't know if it's any use but have you had a look at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\{Version}\{Application}
? I can't tell what's in here since I always install everything. But under each{Application}
node there is anInstallRoot
key.
The Welsh will always support two teams: The Welsh, and anyone playing England :)
-
As far as I can tell, the Install Root key only contains the path to which Microsoft Office was installed. Any other ideas?
That would be correct because if you look in that directory you'll see that Word, Excel, Access, InfoPath etc are all installed there. A possibility would be to use this registry key to get the root path. Then check for the existance of: winword.exe = Word excel.exe = Excel msaccess.exe = Access infopath.exe = InfoPath ois.exe = Picture Manager etc etc Any use? If the exe doesn't exist then presumably the application doesn't exist.
The Welsh will always support two teams: The Welsh, and anyone playing England :)
-
That would be correct because if you look in that directory you'll see that Word, Excel, Access, InfoPath etc are all installed there. A possibility would be to use this registry key to get the root path. Then check for the existance of: winword.exe = Word excel.exe = Excel msaccess.exe = Access infopath.exe = InfoPath ois.exe = Picture Manager etc etc Any use? If the exe doesn't exist then presumably the application doesn't exist.
The Welsh will always support two teams: The Welsh, and anyone playing England :)
Just checking that Word, Excel and that lot is installed isn't quite what I want to do. If you go into Add/Remove programs can click Change on MS Office and then select add or remove components, you can see a listing of all the sub-components (ie. .NET programability support in Office 2003, or Mail Merge templates). Basically I want to check that all of this is installed during my programs installation.