home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Skins and Plugins Installer (MPEI)
Extensions: A GUI Plugin for MediaPortal's MPEI Installer
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ltfearme" data-source="post: 738615" data-attributes="member: 52219"><p>Dukus, does MPEI installer have the ability to mark a file as Shared? What I mean by this, is if two or more installers share a common component?</p><p></p><p>e.g.</p><p>Maya installs SkinTranslations.dll</p><p>BlackGlass installs SkinTranslations.dll</p><p></p><p>If one of those gets uninstalled, then the skin functionality is broken for the other as it depends on translations.</p><p></p><p>Typically in a MSI setup when a component is marked as Shared it creates a reference count in the registry:</p><p>HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDlls.</p><p></p><p>How this works is like this:</p><p>a DWORD is created for the file that is shared e.g.</p><p></p><p>C:\Program Files\Team MediaPortal\MediaPortal\plugins\Process\SkinTranslations.dll</p><p></p><p>If the value exists before installation, then the value is incremented. If it does not exist then its set to a count of 1 with the exception if the file existed on disk prior to installation in which case it will be set to 2.</p><p></p><p>If the installer removes a file, then it checks if there is a shareddll reference and decrements the count, if it gets set to 0 the entry is removed and the file/component is removed. If the count is greater than one then the file remains.</p><p></p><p>If we make this change, all installers weather it be MSI, NSIS, MPEI can all live in harmony <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ltfearme, post: 738615, member: 52219"] Dukus, does MPEI installer have the ability to mark a file as Shared? What I mean by this, is if two or more installers share a common component? e.g. Maya installs SkinTranslations.dll BlackGlass installs SkinTranslations.dll If one of those gets uninstalled, then the skin functionality is broken for the other as it depends on translations. Typically in a MSI setup when a component is marked as Shared it creates a reference count in the registry: HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDlls. How this works is like this: a DWORD is created for the file that is shared e.g. C:\Program Files\Team MediaPortal\MediaPortal\plugins\Process\SkinTranslations.dll If the value exists before installation, then the value is incremented. If it does not exist then its set to a count of 1 with the exception if the file existed on disk prior to installation in which case it will be set to 2. If the installer removes a file, then it checks if there is a shareddll reference and decrements the count, if it gets set to 0 the entry is removed and the file/component is removed. If the count is greater than one then the file remains. If we make this change, all installers weather it be MSI, NSIS, MPEI can all live in harmony :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Skins and Plugins Installer (MPEI)
Extensions: A GUI Plugin for MediaPortal's MPEI Installer
Contact us
RSS
Top
Bottom