Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

PlayMMedia question


1 reply to this topic

RayKode

RayKode
  • Full Members
  • 58 posts

Posted 05 July 2006 - 17:07

Morning everyone.

Here's the deal.

InstallShield 12 Professional.
Basic MSI.

I want to play a .mid file during the installation.

I want the file to play in the background while the installation goes on.

I CAN get the .mid file to pay Sync.

But when I change "MMEDIA_PLAYSYNCH" to "MMEDIA_PLAYASYNCH", nothing plays at all.
No error messages.
Nothing.

Any idea what I might be doing wrong ?

Thanks in advance for all responses.

Ray


Here's my InstallScript code for clarification.


// Include header files
//#include "ifx.h" //DO NOT REMOVE
#include "isrt.h" // Include Isrt.h for built-in InstallScript function prototypes.
#include "iswi.h" // Include Iswi.h for Windows Installer API function prototypes and constants.

// All custom function prototypes to go next
// Entry-point functions...
export prototype PlayMedia(HWND);


//////////////////////////////////////////////////////////////////////////////
//
// FUNCTION: PlayMedia
//
// EVENT: Plays a .mid file while the installation is in progress
//
//
//////////////////////////////////////////////////////////////////////////////
function PlayMedia(hMSI)

#define SOURCE SRCDIR + "mstrpiec.mid"

begin


PlayMMedia (MMEDIA_MIDI, SOURCE, MMEDIA_PLAYASYNCH, 0);


return ERROR_SUCCESS;
end;

RayKode

RayKode
  • Full Members
  • 58 posts

Posted 06 July 2006 - 20:35

Hello again folks,

My previously posted issue, has been confirmed by InstallShield, to be a problem in InstallShield Professional version 12.

Even though they do not "yet", have a work around, it IS nice to know I was doing everything correctly.

Take care eveyone.

Ray in Wisconsin