当前位置: 动力学知识库 > 问答 > 编程问答 >

Programmatically install Windows Media player using .net

问题描述:

How to programmatically install Windows Media player using .net.

Windows media player is not a Product, It is Feature of Windows operating system. How to Turn On using .net program if it already off. and also Installing Higher version if necessary (ie., if Windows media player 9 is Exists and Turn On.. It should be Upgraded to Windows media player 11). Can all these done by programmatically.

What are all the ways for doing so.. In Versions of Windows - eg : xp,Vista,Windows 7, etc.

网友答案:

you could execute the DISM utility by Process.Start

this works at least in windows 7, if you open a cmd prompt and run this:

dism /online /enable-feature /featurename:WindowsMediaPlayer

see here for the full article: How to disable / enable Windows 7 features from a command line

分享给朋友:
您可能感兴趣的文章:
随机阅读: