Hi,
I wrote a simple mock application that'll make some automated calls to
com objects.
using System.Management.Automation;
namespace PWSApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
RunspaceInvoke rsi = new RunspaceInvoke();
rsi.Invoke("$WMP = new-object -ComObject WMPlayer.OCX");
rsi.Invoke("$WMP.openPlayer(\"SongName.mp3\");");
}
}
}
My Question here is,
What all should I ship with this executable (apart from .NET Framework
2.0) so that I can ensure that this application works on all machines.
Is there any specific dll that should be distributed so that PowerShell
specific features will work? Or is this bundled with .NET Framework
2.0?
Regards,
Mugunth


