Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

858

Downloads of v 2.5.1:

17

Last Update:

03 Dec 2024

Package Maintainer(s):

Software Author(s):

  • u-he

Tags:

u-he mfm2 more feedback machine audio vst vst3 aax clap effect delay admin trial

MFM2

  • 1
  • 2
  • 3

2.5.1 | Updated: 03 Dec 2024

Downloads:

858

Downloads of v 2.5.1:

17

Maintainer(s):

Software Author(s):

  • u-he

MFM2 2.5.1

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by u-he. The inclusion of u-he trademark(s), if any, upon this webpage is solely to identify u-he goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Exemption for this package version only:

This is a problem with package-scanner itself, and not with this package.

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install MFM2, run the following command from the command line or from PowerShell:

>

To upgrade MFM2, run the following command from the command line or from PowerShell:

>

To uninstall MFM2, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade uhe-mfm2 -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade uhe-mfm2 -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install uhe-mfm2
  win_chocolatey:
    name: uhe-mfm2
    version: '2.5.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'uhe-mfm2' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.5.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller uhe-mfm2
{
    Name     = "uhe-mfm2"
    Version  = "2.5.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'uhe-mfm2':
  ensure   => '2.5.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator gep13 on 09 Dec 2024.

Description

MFM2: More Feedback Machine
MFM2 is our over-the-top digital delay plug-in. You can create anything from subtle textured echos to huge spacey reverbs, from wild tonal steps on a pad to rhythmic deconstruction of a drum track. As a regular delay MFM2 already offers as much control and inspiration as possible, while the advanced features in version 2.5 open up wider horizons. More feedback, more control, more inspiration!

Package Specific

Package Parameters

The following package parameters can be set:

  • /NoClapx64 - Do not install the x64 CLAP version
  • /NoVst3x86 - Do not install the x86 VST3 version
  • /NoVst3x64 - Do not install the x64 VST3 version
  • /NoAaxx64 - Do not install the x64 AAX version
  • /NoPresets - Do not install factory presets
  • /CompanyPath: - Path of the company to put all program files in. Override if you want to have the program files at a custom location. Attention: u-he program files are expected to be directly writeable (no UAC involved) by the user running the software.

Note: The current u-he installer stopped accepting customizing the VST2 paths via registry keys and also doesn't have a VST2 default path anymore. This breaks silent installation. Therefore, the package parameters NoVst2x86, NoVst2x64, Vst2Path and Vst2x86Path are disabled for this version.

You must pass the package parameters like this:

$VST2x86 = [System.Environment]::GetEnvironmentVariable('CommonProgramFiles(x86)') + "\VST2\u-he"
choco install uhe-mfm2 --package-parameters "'/NoVst2x64 /Vst2x86Path:$VST2x86 '"

tools\.skipAutoUninstall
 
tools\chocolateyfunctions.ps1
# Installer Functions

<#
.SYNOPSIS
Checks for default installer values
#>
function GetDefaultValues () {
  $newDefaultPath = GetDefaultVst2Directory(64)
  If (![string]::IsNullOrWhiteSpace($newDefaultPath)) {
    Write-Debug("Default VST2 64 Path found: " + $newDefaultPath)
    $global:vst2DefaultPath = $newDefaultPath
  }
  $newDefaultPath = GetDefaultVst2Directory(32)
  If (![string]::IsNullOrWhiteSpace($newDefaultPath)) {
    Write-Debug("Default VST2 32 Path found: " + $newDefaultPath)
    $global:vst2x86_64DefaultPath = $newDefaultPath
  }
}
<#
.SYNOPSIS
If default values were found (for instance in the registry) and no overrides have been given, set default installer settings

.DESCRIPTION
If default values were found (for instance in the registry) and no overrides have been given, set default installer settings

#>
function PickDefaultValuesFromSystem () {
  If ([string]::IsNullOrWhiteSpace($pp["Vst2Path"])) {
    If (![string]::IsNullOrWhiteSpace($global:vst2DefaultPath)) {
      Write-Debug("Overwriting VST2 path with value found in registry: " + $vst2DefaultPath)
      $global:vst2Path = $global:vst2DefaultPath
    }
  }

  If ([string]::IsNullOrWhiteSpace($pp["Vst2x86Path"])) {
    If (![string]::IsNullOrWhiteSpace($global:vst2x86_64DefaultPath)) {
      Write-Debug("Overwriting VST2x86 path with value found in registry: " + $global:vst2x86_64DefaultPath)
      $global:vst2x86_64Path = $global:vst2x86_64DefaultPath
    }
  }

  If ($pp["CompanyPath"] -eq $false) {
    # Some installers have an automatic detection mechanism for this path next to a default
    Write-Debug "Checking if automatic install path detection is implemented ..."
    if (Get-Command InstallerCompanyPathAutomaticDetection -errorAction SilentlyContinue) {
      Write-Debug "InstallerCompanyPathAutomaticDetection defined, so dot sourcing $PSScriptRoot\helpers-pathresolve.ps1"
      . $PSScriptRoot\helpers-pathresolve.ps1

      InstallerCompanyPathAutomaticDetection
      If ($autoInstDetectionCompanyPath) {
        Write-Debug("AutoInstDetectionCompanyPath: " + $autoInstDetectionCompanyPath)
        $global:companyPath = $autoInstDetectionCompanyPath
      }
    }
  }
}

<#
.SYNOPSIS
Try to find the default VST2 directory

.DESCRIPTION
Try to find the default VST2 directory

.PARAMETER bitToCheck
Wether to find the default 32 bit or 64 bit directory

.NOTES
Comment added because reviewer asked to do so.
#>
function GetDefaultVst2Directory ($bitToCheck) {
  If ($bitToCheck -eq 32) {
    $defaultRegBasePath = "HKLM:\\SOFTWARE\WOW6432Node\VST"
    $installerDefaultRegPath = $vst2x86_64PathReg
  } ElseIf ($bitToCheck -eq 64) {
    $defaultRegBasePath = "HKLM:\\SOFTWARE\VST"
    $installerDefaultRegPath = $vst2PathReg
  }

  $returnVst2Path = $null

  If (Test-Path -Path $defaultRegBasePath) {
    $newVst2Path = Get-ItemProperty -Path $defaultRegBasePath -ErrorAction SilentlyContinue | Select-Object -ExpandProperty VstPluginsPath -ErrorAction SilentlyContinue
    If (![string]::IsNullOrWhiteSpace($newVst2Path)) {
      If ($vst2AddSubfolder) {
        $newVst2Path += "\$companyPath"
      }
      $returnVst2Path = $newVst2Path
    }
  }

  If (![string]::IsNullOrWhiteSpace($installerDefaultRegPath.key)) {
    $newVst2Path = Get-ItemProperty -Path $installerDefaultRegPath.key -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $installerDefaultRegPath.name -ErrorAction SilentlyContinue
    If (![string]::IsNullOrWhiteSpace($newVst2Path)) {
      $returnVst2Path = $newVst2Path
    }
  }

  return $returnVst2Path
}

# Creates/Overwrites bit-aware variables, so x86 files can use the same path-var on both platforms
function CreateBitAwareVariables () {
  if($osBitness -eq 64) {
    $global:vst2x86BitAware = "$vst2x86_64Path"
    $global:vst3x86BitAware = "$vst3x86_64Path"
    $global:aaxx86BitAware  = "$aaxx86_64Path"
    $global:vst2x86PathRegBitAware = "$vst2x86_64PathReg"
    $global:rtasBitaware = "${env:COMMONPROGRAMFILES(x86)}\Digidesign\DAE\Plug-Ins"
  }
  if($osBitness -eq 32) {
    $global:vst2x86BitAware = "$vst2Path"
    $global:vst3x86BitAware = "$vst3Path"
    $global:aaxx86BitAware  = "$aaxPath"
    $global:vst2x86PathRegBitAware = "$vst2PathReg"
    $global:rtasBitaware = "${env:COMMONPROGRAMFILES}\Digidesign\DAE\Plug-Ins"
  }
}

<#
.SYNOPSIS
Which installation steps are actually necessary for the given OS and package parameters?

.DESCRIPTION
Checks the current OS bitness and the given package parameters and marks all steps from the chocolateyvariables file to be actually executed by setting their 'execute' bit.

.PARAMETER objectsList
A list of objects with a 'validpp' key and a 'bit' key from the chocolateyvariables.ps1 file.

.NOTES
#>

function DetermineExecutionOfAllObjects ($objectsList) {
  Foreach ($object in $objectsList) {
      $object.Add('execute', $false)
      $bitStatus = ($object.bit -eq $null) -Or ($object.bit -Contains $osBitness)
      $ppIndependent = (($object.validpp -eq $null) -Or ($object.validpp -Like "Always"))
      Write-Debug ("ppindependent: " + $ppIndependent)
      Write-Debug ("bitStatus: " + $bitStatus)

      Foreach ($packageParameter in $object.validpp) {
          Write-Debug ("Status of evaluated package parameter:" + $packageParameter)
          if ((Test-Path variable:pp.packageParameter) -eq $true) {
              Write-Debug $pp[$packageParameter]
              Write-Debug ($pp[$packageParameter] -eq $false)
          }
          if (($pp[$packageParameter] -eq $false) -And $bitStatus) {
              $object.execute = $true
          }
      }

      if ($ppIndependent -And $bitStatus) {
          $object.execute = $true
      }

      If ($object.ContainsKey("dropIfNull")) {
          Write-Debug ("Object $object contains a dropIfNull!")

          Foreach ($variableToCheck in $object.dropIfNull) {
              If ([string]::IsNullOrWhiteSpace($variableToCheck)) {
                  Write-Debug ("Dependent variable is NULL")
                  $object.execute = $false
              }
              else {
                  Write-Debug ("Dependent variable is $variableToCheck")
              }
          }
      }
  }
}
tools\chocolateyinstall.ps1
# Comments to this script have been added upon request by the chocolatey community reviewer
$ErrorActionPreference = 'Stop';

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$unzPath = "${env:TEMP}"
$chocolateyPackageFolder = ($(Get-ChocolateyPath -PathType 'PackagePath'))
$osBitness = Get-ProcessorBits

if((Test-Path $chocolateyPackageFolder) -And (Test-Path $chocolateyPackageFolder\tools\chocolateyfunctions.ps1)) {
  . $chocolateyPackageFolder\tools\chocolateyfunctions.ps1
  . $chocolateyPackageFolder\tools\chocolateyvariables.ps1
} else {
  . ((Get-Item -Path ".\" -Verbose).FullName + "\tools\chocolateyfunctions.ps1")
  . ((Get-Item -Path ".\" -Verbose).FullName + "\tools\chocolateyvariables.ps1")
}

Remove-Variable chocolateyPackageFolder

# Get default values that may or may not be already on the machine
GetDefaultValues

$pp = Get-PackageParameters
# Audio plugins can come in various formats for multiple platforms, all contained in one single installer with different control schemes at the CLI (if available).
# With the package parameters below it is possible for the user to have a single unified interface for all audio plugin packages I create.
# If the package parameter is set here and an equivalent installation action is found in the chocovariables.ps1 with the 'validpp' key being equal to the
# package parameter, the default behaviour of the package/installer can be changed.
# Not all possible package parameters here actually do something as this depends on the specific package/software vendor. If a package parameter either does
# not exist below or does not exist in a 'validpp'-key in the chocolateyvariables.ps1, it will be ignored and have no effect.
if ($pp["NoClapx64"]      -eq $null -or $pp["NoClapx64"] -eq '')     { if($osBitness -eq 64) { $pp["NoClapx64"] = $false }}
if ($pp["NoVst2x86"]      -eq $null -or $pp["NoVst2x86"] -eq '')     { $pp["NoVst2x86"] = $false }
if ($pp["NoVst2x64"]      -eq $null -or $pp["NoVst2x64"] -eq '')     { if($osBitness -eq 64) { $pp["NoVst2x64"] = $false }}
if ($pp["NoVst3x86"]      -eq $null -or $pp["NoVst3x86"] -eq '')     { $pp["NoVst3x86"] = $false }
if ($pp["NoVst3x64"]      -eq $null -or $pp["NoVst3x64"] -eq '')     { if($osBitness -eq 64) { $pp["NoVst3x64"] = $false }}
if ($pp["NoAaxx86"]       -eq $null -or $pp["NoAaxx86"] -eq '')      { $pp["NoAaxx86"] = $false }
if ($pp["NoAaxx64"]       -eq $null -or $pp["NoAaxx64"] -eq '')      { if($osBitness -eq 64) { $pp["NoAaxx64"] = $false }}
if ($pp["NoRtas"]         -eq $null -or $pp["NoRtas"] -eq '')        { $pp["NoRtas"] = $false }
if ($pp["NoPresets"]      -eq $null -or $pp["NoPresets"] -eq '')     { $pp["NoPresets"] = $false }
if ($pp["NoNks"]          -eq $null -or $pp["NoNks"] -eq '')         { $pp["NoNks"] = $false }
if ($pp["NoUserFolder"]   -eq $null -or $pp["NoUserFolder"] -eq '')  { $pp["NoUserFolder"] = $false }
if ($pp["NoShortcuts"]    -eq $null -or $pp["NoShortcuts"] -eq '')   { $pp["NoShortcuts"] = $false }
if ($pp["NoStandalone"]   -eq $null -or $pp["NoStandalone"] -eq '')  { $pp["NoStandalone"] = $false }
if ($pp["InstallerPath"]  -eq $null -or $pp["InstallerPath"] -eq '') { $fileLocation = "$unzPath\$unzInstPath"; $pp["InstallerPath"]=$false } else { $fileLocation = $pp["InstallerPath"] }
if ($pp["CompanyPath"]    -eq $null -or $pp["CompanyPath"] -eq '')   { $pp["CompanyPath"] = $false }                                          else { $standardCompanyPath=$global:companyPath; $global:companyPath = $pp["CompanyPath"] }
if ($pp["LibraryPath"]    -eq $null -or $pp["LibraryPath"] -eq '')   { $pp["LibraryPath"] = $false }                                          else { $libraryPath = $pp["LibraryPath"] }
if ($pp["UserFolderPath"] -eq $null -or $pp["UserFolderPath"] -eq ''){ }                                                                      else { $userFolderPath = $pp["UserFolderPath"]}
if ($pp["Vst2Path"]       -eq $null -or $pp["Vst2Path"] -eq '')      { }                                                                      else { $global:vst2Path = $pp["Vst2Path"] }
if ($pp["Vst2x86Path"]    -eq $null -or $pp["Vst2x86Path"] -eq '')   { }                                                                      else { $global:vst2x86_64Path = $pp["Vst2x86Path"] }
if ($pp["Vst3Path"]       -eq $null -or $pp["Vst3Path"] -eq '')      { }                                                                      else { $vst3Path = $pp["Vst3Path"] }
if ($pp["Vst3x86Path"]    -eq $null -or $pp["Vst3x86Path"] -eq '')   { }                                                                      else { $vst3x86_64Path = $pp["Vst3x86Path"] }

# Create/Overwrite bit-aware variables. These variables are used to access different paths across different OS bitnesses in a uniform way.
CreateBitAwareVariables

# Create all the necessary information for the setup after package parameters changed the packages default values.
# This includes registry keys to write, shortcuts to create or additional installer parameters to parse.

# Begin with handling the components of the installer so the settings can be written to registry afterwards
if (Get-Command 'CreatePackageParametersObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreatePackageParametersObjects defined, so dot sourcing $PSScriptRoot\helpers-installer.ps1"
  . $PSScriptRoot\helpers-installer.ps1

  # Handle installer components first
  if (Get-Command 'CreateInstallerObjects' -ErrorAction SilentlyContinue) { 
    Write-Debug "CreateInstallerObjects defined"
    CreateInstallerObjects
  
    DetermineExecutionOfAllObjects($installerComponentsList)
    Foreach ($item in $installerComponentsList)  { CreateInstallerParameters($item) }
  }

  ## Now handle installer
  Write-Debug "CreatePackageParametersObjects defined"
  CreatePackageParametersObjects

  # Decision to use previous values or package parameters have been made. Whatever it is, finalize and append to installer call.
  Foreach ($item in $packageParametersObjectsList) { HandlePackageArgs($item) }
}

# Now that the package parameters (from possibly previous installations) have been evaluated
# as well as the installer components, we pick default values for any settings without overrides
PickDefaultValuesFromSystem

# Installer components are now fully evaluated and can be written to registry in case some installers don't save these settings on their own (needed for upgrades)
$objectsLists

if (Get-Command 'CreateRegistryObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateRegistryObjects defined, so dot sourcing $PSScriptRoot\helpers-regkey.ps1"
  . $PSScriptRoot\helpers-regkey.ps1
  CreateRegistryObjects 
  $objectsLists += $regKeys
}

if (Get-Command 'CreateRegistryFileObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateRegistryFileObjects defined, so dot sourcing $PSScriptRoot\helpers-regkey.ps1"
  . $PSScriptRoot\helpers-regkey.ps1
  CreateRegistryFileObjects 
  $objectsLists += $regKeyFileObjects
}

if (Get-Command 'CreateShortcutObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateRegistryFileObjects defined, so dot sourcing $PSScriptRoot\helpers-links.ps1"
  . $PSScriptRoot\helpers-links.ps1
  CreateShortcutObjects
  $objectsLists += $shortcuts
}

if (Get-Command 'CreateSymlinkObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateSymlinkObjects defined, so dot sourcing $PSScriptRoot\helpers-links.ps1"
  . $PSScriptRoot\helpers-links.ps1
  CreateSymlinkObjects
  $objectsLists += $symlinks
}

if (Get-Command 'CreatePackageRessourcePathObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateSymlinkObjects defined, so dot sourcing $PSScriptRoot\helpers-packageressources.ps1"
  . $PSScriptRoot\helpers-packageressources.ps1
  CreatePackageRessourcePathObjects
  $objectsLists += $PackageRessourcePathList
}

if (Get-Command 'CreateTxtFileObjects' -ErrorAction SilentlyContinue) { 
  Write-Debug "CreateSymlinkObjects defined, so dot sourcing $PSScriptRoot\helpers-textfiles.ps1"
  . $PSScriptRoot\helpers-textfiles.ps1
  CreateTxtFileObjects
  $objectsLists += $PackageNewFiles
}

if (Get-Command 'CreatePackageRessourcePathObjects' -ErrorAction SilentlyContinue) { 
  # These functions are necessary for embedded installer and other embedded files, only. Nothing actually happens if
  # this package doesn't include something in the 'bin' folder.
  ReducePackageSize
  CreateUninstallFile
}

# For each possible install action defined in chocolateyvariables.ps1 that can be customized via package parameter or depends on the OS bitness,
# it is determined if it is ultimately executed or not. Up until here including all DetermineExecutionOfAllObjects calls, nothing has actually
# happened on the system.
Foreach($objectsList in $objectsLists) { DetermineExecutionOfAllObjects($objectsList) }

# Each possible install action defined in chocolateyvariables.ps1 with the execute-bit set to true is being executed by each corresponding function.
Foreach ($item in $regKeys)                  { CreateRegKey($item)              }
Foreach ($item in $regKeyFileObjects)        { CreateRegKeyFromFile($item)      }
Foreach ($item in $shortcuts)                { CreateShortcut($item)         }
Foreach ($item in $symlinks)                 { CreateSymlink ($item)         }
Foreach ($item in $PackageRessourcePathList) { CopyPackageRessources($item)     }
Foreach ($item in $PackageRessourcePathList) { WriteUninstallData($item)        }
Foreach ($item in $PackageRessourcePathList) { RemoveTemporaryFiles($item)      }
Foreach ($item in $PackageNewFiles)          { CreateTxtFiles($item)            }
Foreach ($item in $packageParametersObjectsList) { RunInstallerWithPackageParametersObject($item) }
Foreach ($item in $packageParametersObjectsList) { RemoveInstallerObjects($item) }
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';
$installerType = 'EXE'

$chocolateyPackageFolder = ($(Get-ChocolateyPath -PathType 'PackagePath'))
. $chocolateyPackageFolder\tools\chocolateyfunctions.ps1
. $chocolateyPackageFolder\tools\chocolateyvariables.ps1
. $chocolateyPackageFolder\tools\helpers-regkey.ps1

$silentArgs = '/qn /norestart'
$validExitCodes = @(0, 3010, 1605, 1614, 1641)
if ($installerType -ne 'MSI') {
  $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' # Inno Setup
  $validExitCodes = @(0)
}

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName

if ($key.Count -eq 1) {
  $key | % {
    $file = "$($_.UninstallString)"

    if ($installerType -eq 'MSI') {
      $silentArgs = "$($_.PSChildName) $silentArgs"
      $file = ''
    }

    Uninstall-ChocolateyPackage -PackageName $softwareName `
                                -FileType $installerType `
                                -SilentArgs "$silentArgs" `
                                -ValidExitCodes $validExitCodes `
                                -File "$file"
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$softwareName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$key.Count matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % {Write-Warning "- $_.DisplayName"}
}

CreateRegistryObjects
Foreach ($item in $regKeys) { DeleteRegKeyFromObjects($item) }
tools\chocolateyvariables.ps1
$packageNameFull = 'MFM2'
$version = '2.5.1'
$company = 'u-he'
$packageName = $packageNameFull.Replace(" ", "")
$softwareName = "$packageName ${version}"
$versionWithoutDots = $version -replace "\.", ""
$revision = '16742'
$url        = "https://u-he.com/downloads/releases/MFM2_${versionWithoutDots}_${revision}_Win.zip"
$urlAlternative = "https://u-he.com/downloads/release-archive//mfm2//MFM2_${versionWithoutDots}_${revision}_Win.zip"
$releases = 'https://u-he.com/products/mfm2/'
$checksum = '69cc47ec9bc9a99968a966fd8e45dbb5d0b06e7738c18378f82ea065e4446430'
# The installer doesn't have a default value, causing installation to exit without success if we don't provide a default value
$global:vst2Path = "${env:PROGRAMFILES}\Steinberg\VSTPlugins\$company"
$global:vst2x86_64Path = "${env:ProgramFiles(x86)}\Steinberg\VSTPlugins\$company"
$global:vst2AddSubfolder = $true
$global:vst2DefaultPathReg = @{'key'="HKLM:\SOFTWARE\U-HE\VST"; 'name'="VSTPluginsPath"}
$global:vst2x86_64DefaultPathReg = @{'key'="HKLM:\SOFTWARE\WOW6432Node\U-HE\VST"; 'name'="VSTPluginsPath"}
$global:vst2ProductPathReg = @{'key'="HKLM:\SOFTWARE\U-HE\$packageName"; 'name'="VSTPluginsPath"}
$global:uheDataPathReg = @{'key'="HKLM:\SOFTWARE\U-HE\VST"; 'name'="DataPath"}
$global:uheProductDataPathReg = @{'key'="HKCU:\SOFTWARE\U-HE\$packageName"; 'name'="DataPath"}
$global:userFolderPath = $null
$unzInstPath = "${packageName}_Win\${packageName}-${versionWithoutDots}-Winstaller.exe"
$zipSuffix = "Win.zip"

# This needs to be wrapped into a function so this object also has the data from the package parameters
function CreateRegistryObjects () { $global:regKeys =
  # The installer does not have an option for custom paths so we need to create the registry entry before
  # We drop those keys if they're null, but as long as the u-he installer doesn't come with sensible default values (or actually, any default values at all), we practically always have to create the registry keys
  # @{'path'=$vst2DefaultPathReg.key;       'key'=$vst2DefaultPathReg.name;       'value'="$vst2Path";                      'bit'=64;     'validpp'="NoVst2x64";              'delete'=$false;  'dropIfNull'=@("$vst2Path")},
  # @{'path'=$vst2x86_64DefaultPathReg.key; 'key'=$vst2x86_64DefaultPathReg.name; 'value'="$vst2x86BitAware";               'bit'=64,32;  'validpp'="NoVst2x86";              'delete'=$false;  'dropIfNull'=@("$vst2x86BitAware")},
  # @{'path'=$vst2ProductPathReg.key;       'key'=$vst2ProductPathReg.name;       'value'="$vst2Path";                      'bit'=64,32;  'validpp'="NoVst2x64","NoVst2x86";  'delete'=$true;   'dropIfNull'=@("$vst2Path")},
  @{'path'=$uheDataPathReg.key;           'key'=$uheDataPathReg.name;           'value'="$companyPath\$packageName.data"; 'bit'=64,32;  'validpp'="Always";                 'delete'=$false;  'dropIfNull'=@("$companyPath")},
  @{'path'=$uheProductDataPathReg.key;    'key'=$uheProductDataPathReg.name;    'value'="$companyPath\$packageName.data"; 'bit'=64,32;  'validpp'="Always";                 'delete'=$true;   'dropIfNull'=@("$companyPath")}
}

function CreateInstallerObjects () { $global:installerComponentsList =
  #Warning: The order of the list *is* important
  # u-he's current installer stopped being able to pick up VST2 path values from the registry
  # That changes makes it mandatory to enter the VST2 path via the GUI breaking silent installation
  # So we disable the VST2 plugin option for now
  # @{'value'="vst2_32";   'bit'=64,32; 'validpp'="NoVst2x86"},
  # @{'value'="vst2_64";   'bit'=64;    'validpp'="NoVst2x64"},
  @{'value'="vst3_32";   'bit'=64,32; 'validpp'="NoVst3x86"},
  @{'value'="vst3_64";   'bit'=64;    'validpp'="NoVst3x64"},
  @{'value'="clap_64";   'bit'=64;    'validpp'="NoClapx64"},
  @{'value'="aax_64";    'bit'=64;    'validpp'="NoAaxx64"},
  @{'value'="presets";   'bit'=64,32; 'validpp'="NoPresets"}
}

function CreatePackageParametersObjects () {
  $global:packageArgs = @{
    packageName    = $packageName
    unzipLocation  = $unzPath
    fileType       = 'exe'
    url            = $url
    urlAlternative = $urlAlternative
    softwareName   = $softwareName
    checksum       = $checksum
    checksumType   = 'sha256' #default is md5, can also be sha1, sha256 or sha512
    silentArgs     = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- " # Inno Setup
  }

  $global:packageParametersObjectsList = $packageArgs
}
tools\helpers-installer.ps1
# Helper functions for managing installer

<#
.SYNOPSIS
Create the component list that will be parsed to the installer.

.DESCRIPTION
Create the component list that will be parsed to the installer. A component is a tickable box in an installer.
The resulting component list depends on the 'execute' bool that should be set before handing the installer
component into this function.

.PARAMETER instParamObject
An installer parameter object/action defined in the chocolateyvariables.ps1.
.NOTES
#>
function CreateInstallerParameters ($instParamObject) {
    if ($instParamObject.execute -eq $true) {
        Write-Debug "Checking Installer Components for: "; Write-Debug $instParamObject.value
        $global:installerComponents += $instParamObject.value
        $global:installerComponents += ","
        Write-Debug ("These are the current installerComponents: " + $global:installerComponents + ".")
    }
}


# This name is too generic, it actually handles the components argument of installers
function HandlePackageArgs ($packageParameterObject) {
    if ($global:installerComponents) {
        If ($global:installerComponents.EndsWith(',')) {
            Write-Debug ("Components list ends with , - removing.")
            $global:installerComponents = $global:installerComponents.Substring(0, $global:installerComponents.Length - 1)
        }
        $packageParameterObject["silentArgs"] += " /Components=$global:installerComponents"
    }
    Write-Debug "These are the silentArgs"; Write-Debug $packageParameterObject["silentArgs"]
}

function RunInstallerWithPackageParametersObject ($packageParameterObject) {
    $installerPathViaPP = (Test-Path $pp["InstallerPath"])
    $chocolateyPackageFolder = ($(Get-ChocolateyPath -PathType 'PackagePath'))
    $installerEmbedded = ((Test-Path ($chocolateyPackageFolder + "\" + $packageParameterObject.file)) -And ($packageParameterObject.file64 -ne $null) -And (Test-Path ($chocolateyPackageFolder + "\" + $packageParameterObject.file64)))
    $installerDownload = (($packageParameterObject.url -ne $null) -Or ($packageParameterObject.url64 -ne $null))
    $installerDownloadExe = (($packageParameterObject.url -ne $null) -And ($packageParameterObject.url).EndsWith(".exe"))
    Write-Debug ("This is the InstallerPath Variable: " + $pp["InstallerPath"])
  
    if ($installerPathViaPP -eq $true) {
        Write-Debug "Installer overridden via package parameter"
        $packageParameterObject["file"] = $fileLocation
        Install-ChocolateyInstallPackage @packageParameterObject
        return
    }
  
    if ($installerEmbedded -eq $true) {
        Write-Debug "Installer is embedded"
        $packageParameterObject.file = ($chocolateyPackageFolder + "\" + $packageParameterObject.file)
        $packageParameterObject.file64 = ($chocolateyPackageFolder + "\" + $packageParameterObject.file64)
        Write-Debug ("Installer (32 bit referenced) embedded path: " + $packageParameterObject.file)
        Write-Debug ("Installer (64 bit referenced) embedded path: " + $packageParameterObject.file64)
        Install-ChocolateyInstallPackage @packageParameterObject
        return
    }
  
    if ($installerDownload -eq $true -And $installerPathViaPP -eq $false) {
        Write-Debug ("Installer needs to be downloaded from " + $packageParameterObject.url)
        if ($installerDownloadExe -eq $true) { 
            Write-Debug "Installer is exe, running now..."
            try {
                Install-ChocolateyPackage @packageParameterObject
            }
            catch {
                Write-Host "Error running installer: " $_.Exception.Message
                if($packageParameterObject.ContainsKey('urlAlternative')) {
                    $packageParameterObject.url = $packageParameterObject.urlAlternative
                    Write-Host "Package contains alternative URL. Trying that."
                    Install-ChocolateyPackage @packageParameterObject
                } else {
                    throw $_
                }
            }
        }
        else { 
            Write-Debug "Installer inside zip"
            Write-Debug ("UnzipLocation is: " + $packageParameterObject.unzipLocation)
            $packageParameterObject["file"] = $fileLocation
            try {
                Install-ChocolateyZipPackage @packageParameterObject
            }
            catch {
                Write-Host "Error while downloading and unziping: " $_.Exception.Message
                if($_.Exception.Message -like "*404*" -and $packageParameterObject.ContainsKey('urlAlternative')) {
                    $packageParameterObject.url = $packageParameterObject.urlAlternative
                    Write-Host "Package contains alternative URL. Trying that."
                    Install-ChocolateyZipPackage @packageParameterObject
                } else {
                    throw $_
                }
            }

            Install-ChocolateyInstallPackage @packageParameterObject
        }
        return
    }
  
    Write-Warning ("No installer found!");
}

function RemoveInstallerObjects ($packageParameterObject) {
    Write-Debug "Starting cleanup of installer files"
  
    if ($packageParameterObject.removePostInstall) {
      ("Entries to remove: " + ($packageParameterObject.removePostInstall | Out-String -stream)) | Write-Debug
  
        foreach ($entry in $packageParameterObject.removePostInstall) {
            $chocolateyPackageFolder = ($(Get-ChocolateyPath -PathType 'PackagePath'))
            $pathToRemove = $chocolateyPackageFolder + "\" + $entry
            Write-Debug "Trying to delete $pathToRemove"
            Write-Debug (Test-Path ($pathToRemove) -ErrorAction Ignore)
  
            if (Test-Path ($pathToRemove) -ErrorAction Ignore) {
                Write-Debug "Deleting $pathToRemove"
                if (Test-Path $pathToRemove -pathType leaf) {
                    $directoryName = (Get-Item $pathToRemove).DirectoryName
                    Write-Debug "$pathToRemove will be deleted."
                    Remove-Item "$pathToRemove" -Force
                }
                if (Test-Path $pathToRemove -pathType container) {
                    $parentDirectory = (Get-ItemProperty $pathToRemove).Parent.FullName
                    Write-Debug "$pathToRemove will be deleted."
                    #Remove-Item "$pathToRemove" -Recurse -Force #fails if folder contains a symlink -.-
                    [System.IO.Directory]::Delete("$pathToRemove", $true)
                }
            }
        }
    }
    else {
        # ATM, keep old behaviour when no removePostInstall variable has been defined
        if ($packageParameterObject.file) {
            if (Test-Path ($packageParameterObject.file) -ErrorAction Ignore) {
                Remove-Item $packageParameterObject.file -Force -ErrorAction SilentlyContinue
            }
        }
        if ($packageParameterObject.file64) {
            if (Test-Path ($packageParameterObject.file64) -ErrorAction Ignore) {
                Remove-Item $packageParameterObject.file64 -Force -ErrorAction SilentlyContinue
            }
        }
    }
}
tools\helpers-regkey.ps1
# Helper functions for managing registry keys

function CreateRegKey ($regKeyObject) {
    If ([string]::IsNullOrWhiteSpace($regKeyObject.path)) {
        Write-Warning ("Given Registry Object Path is NULL.")
        return
    }
  
    if ($regKeyObject.execute -eq $true) {
        # Determine value type
        if (${regKeyObject}.value -is [String]) {
            $registryValueType = "String"
            Write-Debug("Registry value type is String.")
        }
        elseif (${regKeyObject}.value -is [Int32]) {
            $registryValueType = "DWORD"
            Write-Debug("Registry value type is DWORD.")
        }
        else {
            $registryValueType = "String"
            Write-Warning("Registry value type unknown. Using String as type.")
        }
  
        # Write reg key
        if ($regKeyObject.key -eq '') {
            New-Item -Path ${regKeyObject}.path -Value ${regKeyObject}.value -Force
        }
        else {
            if (Test-Path ${regKeyObject}.path) { } else { New-Item ${regKeyObject}.path -force }
            New-ItemProperty -PropertyType $registryValueType -Path ${regKeyObject}.path -Name ${regKeyObject}.key -Value ${regKeyObject}.value -force
        }
    }
}
  
function CreateRegKeyFromFile ($regKeyFileObject) {
    if ($regKeyFileObject.execute -eq $true) {
        $chocolateyPackageFolder = ($(Get-ChocolateyPath -PathType 'PackagePath'))
        Write-Debug ("Creating registry entry from file " + $chocolateyPackageFolder + "\" + $regKeyFileObject.path)
        regedit.exe /S ($chocolateyPackageFolder + "\" + $regKeyFileObject.path)
    }
}
  
# Removes all registry entires in a given registry file from the registry
function DeleteRegKeysFromFile ($file) {
    if (Test-Path $file) {
      (Get-Content $file) -replace "^\[", "[-" | out-file $file
        regedit.exe /S ($file)
    }
}
  
# Deletes a registry key or property, if it exists and is not marked as delete=$false
function DeleteRegKeyFromObjects ($regKey) {
    Write-Debug ("About to delete Registry Entry: " + $regKey.path + $regKey.key)
    if ($regKey.ContainsKey("delete")) {
        return
    }
    If ([string]::IsNullOrWhiteSpace($regKey.path)) {
        Write-Debug("Given Registry Path is null or empty.")
        return
    }
    if ((Test-Path -Path $regKey.path) -eq $false) {
        Write-Debug ("Registry Entry does not exist anymore.")
        return
    }
    if (($regKey.key -eq "")) {
        Write-Debug ("Deleting " + $regKey.path)
        Remove-Item -Path $regKey.path -Force
        return
    }
    if ($regKey.key -ne "") {
        Write-Debug ("Deleting Key " + $regKey.key + " at Path " + $regKey.path)
        Remove-ItemProperty -Path $regKey.path -Name $regKey.key -Force -ErrorAction SilentlyContinue
        return
    }

    If (([string]::IsNullOrWhiteSpace((Get-Item -Path $regKey.path | Get-ItemProperty))) -And ([string]::IsNullOrWhiteSpace((Get-ChildItem -Path $regKey.path)))) {
        Write-Debug ("Deleting orphaned key " + $regKey.path)
        Remove-Item -Path $regKey.path
        return
    }
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
MFM2 (Install) 2.5.0.20241130 17 Saturday, November 30, 2024 Approved
MFM2 (Install) 2.5.0.20240613 49 Thursday, June 13, 2024 Approved
MFM2 (Install) 2.5.0.20230617 94 Saturday, June 17, 2023 Exempted
MFM2 (Install) 2.5.0 142 Thursday, September 22, 2022 Approved
MFM2 (Install) 2.2.1.20200131 325 Friday, January 31, 2020 Approved
MFM2 (Install) 2.2.1 214 Wednesday, January 1, 2020 Approved
Discussion for the MFM2 Package

Ground Rules:

  • This discussion is only about MFM2 and the MFM2 package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or MFM2, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus