2097 Posted March 22, 2010 Posted March 22, 2010 Any body got a script that on logoff will set either office 2003 or 2007 as the default office program Atm using Detect and repair .. and its very time consuming I need both because we use enlight testing , and it checks to see what version is installed .. Some people are doing office 2003 tests and some 2007 .. And its quite anoying ! Many thanks
srochford Posted March 22, 2010 Posted March 22, 2010 Defaults are normally set on a per-user basis so if you run something at logoff I think that it can only make changes for the user who is currently logging off. Is this so that you can double click on (say) a .DOC file and it opens in the correct version of Word? You could setup files called "Configure Office 2007" and "Configure Office 2003" and tell users to click them when they start working. The content would be a series of statements something like: ftype word.document.8="C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /n /dde ftype Excel.Sheet.8="C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e for Office 2007 and ftype word.document.8="C:\Program Files\Microsoft Office\Office11\WINWORD.EXE" /n /dde ftype Excel.Sheet.8="C:\Program Files\Microsoft Office\Office11\EXCEL.EXE" /e for Office 2003 2
2097 Posted March 22, 2010 Author Posted March 22, 2010 Defaults are normally set on a per-user basis so if you run something at logoff I think that it can only make changes for the user who is currently logging off. Is this so that you can double click on (say) a .DOC file and it opens in the correct version of Word? You could setup files called "Configure Office 2007" and "Configure Office 2003" and tell users to click them when they start working. The content would be a series of statements something like: ftype word.document.8="C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /n /dde ftype Excel.Sheet.8="C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e for Office 2007 and ftype word.document.8="C:\Program Files\Microsoft Office\Office11\WINWORD.EXE" /n /dde ftype Excel.Sheet.8="C:\Program Files\Microsoft Office\Office11\EXCEL.EXE" /e for Office 2003 Thanks for the Info Things that i find strange is , any user account can run 'detect and repair' within WORD .. And it will set what ever version back to Defaults for all users of the system..
srochford Posted March 22, 2010 Posted March 22, 2010 The detect and repair will use the installer service. This can be triggered by any user but then runs in the system context so that you can do things like repairing software which is already installed.
2097 Posted March 22, 2010 Author Posted March 22, 2010 The detect and repair will use the installer service. This can be triggered by any user but then runs in the system context so that you can do things like repairing software which is already installed. so the commands above in a .bat will Basically allow the same as the detect and repair ?
2097 Posted March 22, 2010 Author Posted March 22, 2010 just tried the following on a computer which is opening both .doc and docx files in office 2007 ftype word.document.8="C:\Program Files\Microsoft Office\Office11\WINWORD.EXE" /n /dde Sadly it keeps opening them in office 2007 and does not change to 2003
srochford Posted March 22, 2010 Posted March 22, 2010 For .docx files I think you will need to do: ftype word.document.12="C:\Program Files\Microsoft Office\Office11\WINWORD.EXE" /n /dde This should only affect the currently logged on user but I don't have a machine with Office 2003 to try this on at the moment.
2097 Posted March 25, 2010 Author Posted March 25, 2010 For .docx files I think you will need to do: ftype word.document.12="C:\Program Files\Microsoft Office\Office11\WINWORD.EXE" /n /dde This should only affect the currently logged on user but I don't have a machine with Office 2003 to try this on at the moment. Sorry mate i couldnt get either examples to work , says there changed in the CMD prompt but dont seem to do anything .. looks like detect and repair will be the only option
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now