I am trying to make that when the program initialize it plays a sound, but when I pass the installer to someone else it doesn't work since the destination is not correct in their computer.
How can I refer to the file in a way that will work in others computer?
Here is the code that I used:
public partial class Form1 : Form
{
private SoundPlayer unacabeza = new SoundPlayer();
public Form1()
{
InitializeComponent();
unacabeza.SoundLocation = @"c:\Por_una_Cabeza_-_Carlos_Gardel_Gcxv7i02lXc.wav";
unacabeza.Play();
}
}