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)
Extension Installer V2
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="Disore" data-source="post: 744041" data-attributes="member: 89076"><p>I've tracked down my problem, and it is a bug.</p><p></p><p>In class PackageClass we have the following code:</p><p></p><p>[CODE]/// <summary></p><p>/// Do the unistall procces. The unistall file info should be alredy loaded.</p><p>/// </summary></p><p>public void UnInstall()</p><p>{</p><p> for (int i = UnInstallInfo.Items.Count - 1; i > 0; i--)</p><p> {</p><p> UnInstallItem item = UnInstallInfo.Items[i];</p><p> if (string.IsNullOrEmpty(item.ActionType))</p><p> {</p><p> MpeInstaller.InstallerTypeProviders[item.InstallType].Uninstall(this, item);</p><p> if (FileUnInstalled != null)</p><p> FileUnInstalled(this, new UnInstallEventArgs("Removing file " + Path.GetFileName(item.OriginalFile), item));</p><p> }</p><p> else</p><p> {</p><p> MpeInstaller.ActionProviders[item.ActionType].UnInstall(this, item);</p><p> if (FileUnInstalled != null)</p><p> FileUnInstalled(this, new UnInstallEventArgs("Removing action " + item.ActionType, item));</p><p> }</p><p> }</p><p> UnInstallInfo.Items.Clear();</p><p> DoAdditionalUnInstallTasks();</p><p>}[/CODE]</p><p></p><p>The problem is that the first file with index == 0 won't be uninstalled since 'i > 0' is stated in the for-loop. Dukus, can you fix this? Or else I volunteer to fix it if given the correct permissions. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>It won't help me since I've already released a second version of my plugin, and the leftover file from uninstalling the first version will be cached by MPE when installing the second version, but it may help new plugin developers.</p></blockquote><p></p>
[QUOTE="Disore, post: 744041, member: 89076"] I've tracked down my problem, and it is a bug. In class PackageClass we have the following code: [CODE]/// <summary> /// Do the unistall procces. The unistall file info should be alredy loaded. /// </summary> public void UnInstall() { for (int i = UnInstallInfo.Items.Count - 1; i > 0; i--) { UnInstallItem item = UnInstallInfo.Items[i]; if (string.IsNullOrEmpty(item.ActionType)) { MpeInstaller.InstallerTypeProviders[item.InstallType].Uninstall(this, item); if (FileUnInstalled != null) FileUnInstalled(this, new UnInstallEventArgs("Removing file " + Path.GetFileName(item.OriginalFile), item)); } else { MpeInstaller.ActionProviders[item.ActionType].UnInstall(this, item); if (FileUnInstalled != null) FileUnInstalled(this, new UnInstallEventArgs("Removing action " + item.ActionType, item)); } } UnInstallInfo.Items.Clear(); DoAdditionalUnInstallTasks(); }[/CODE] The problem is that the first file with index == 0 won't be uninstalled since 'i > 0' is stated in the for-loop. Dukus, can you fix this? Or else I volunteer to fix it if given the correct permissions. :) It won't help me since I've already released a second version of my plugin, and the leftover file from uninstalling the first version will be cached by MPE when installing the second version, but it may help new plugin developers. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Skins and Plugins Installer (MPEI)
Extension Installer V2
Contact us
RSS
Top
Bottom