Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


How to include an NSIS or an MSI installer in a MediaPortal Extension Packages?

I will use the package for aMPed skin here as an example.

1. Start MpeMaker and create a new project. You can fill in here any infos you would like to.

2. Groups & Files The setup file (exe, msi) needs to be added to the package, we simply add it to the default group. the add button can be found on the toolbar. We set the option to always overwrite the setup file and the path to %base%\aMPedSetup.exe to save the setup temporary in the mp installation dir.

3. Install sections On Install sections i removed every pre define section from the listbox and added a new one: [Group] Set State and added 3 actions to it:

Install Files: to extract the setup.exe to a temporary dir, see point 2

?RunApplication: to start the the setup.exe and define paths and parameters for uninstallation

Script: to delete the setup.exe

Be sure that all section are using the same "Execute when"

4. On run application set

path to application: in this case %Base%\aMPedSetup.exe

parameters for installation: <empty>

wait for exit: true

path to apllication on uninstall %Base%\uninstall-aMPed.exe

parameters for uninstallation: _?=%Base% for a http://nsis.sourceforge.net/Docs/Chapter3.html#3.2.2 nsis-uninstaller

wait for exit on uninstall: true

5. to delete the setup script after running it, you need to edit the ?properties for script action MpeMaker/Script#Deleting_a_File

6. in the nsis uninstaller script i used

ExecWait '"$MPdir.Base\MpeInstaller.exe" /Uninstall=${MPE_GUID}' to remove the extension from MpeInstaller, even if the uninstaller was started from windows' control panel.

 

   

 

This page has no comments.