NsMCI plug-in

From NSIS Wiki


Download Link:
NsMCI.zip (22 KB)

Forum Thread Link


This plug-in allows the use of Media Control Interface (MCI) commands strings to play multimedia devices and record multimedia resource files.

Function Reference

Pop "ResultVar"
Gets the first letter associated to a CD-ROM drive in the system.
nsmci::SendString "Command" ...
Pop "ResultVar"
Pop "ErrorResultVar"
Sends a set of commands strings to a MCI device.
nsmci::GetErrorString "ErrorCode"
Pop "ResultVar"
Gets the error description of an error code.

Versions History

1.3 - 22/Oct/2005 (by deguix)
  • Changed function names:
    • "nsisGetFirstCDROMDrive" -> "GetFirstCDROMDrive".
    • "nsisMCISendString" -> "SendString".
  • Added a new function called "GetErrorString".
  • Adapted code to use stack to output the return value.
1.2 - 29/Aug/2005 (by deguix)
  • Renamed plug-in from "NSISExt_MCI" -> "nsMCI".
  • Adapted to support the current ExDLL plug-in version.
1.1 - 14/12/2001
  • Improved plug-in to take any command from stack to be executed (thanks petersa).
1.0 - 13/12/2001
  • First plug-in version.


Plug-in created by Florian Heidenreich (aka "F. Heidenreich").


Copyright (C) 2001-2005 Florian Heidenreich (nsis@mp3tag.de)

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Personal tools