I want to use the Windows SAPI COM object to make a sound during installation. I know that in VBScript they do it like this:
Set oVoice = CreateObject("SAPI.SpVoice")
set oSpFileStream = CreateObject("SAPI.SpFileStream")
oSpFileStream.Open "xxx.wav"
oVoice.SpeakStream oSpFileStream
oSpFileStream.Close
I asked, how to do this in an Inno Setup script.
I'm pretty new to Inno Setup, and still have not learned how to use the CreateOleObject
function and so on.
I tried to understand the Inno Setup documentation and it did not help me.
Other answers about using COM objects also did not make me understand this.
Thanks for your help