1358: Installing diff versions of script [#7613]

Beta Testing for Windows Products and plugins

Moderator: Gurus

Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

1358: Installing diff versions of script [#7613]

Post by Psyker7 »

I had an extension installed for all users (program files) with version 2.0

I was able to install version 2.1 for only my user (appdata) , and it left both installed in MM.

This causes issues when the extension is a script only - also trying to remove the old version threw a debugging message instead of a simple 'permission denied' error - which I reported.


Before:
LastFmImport v. 2.0 installed in Program Folders

Action:
Installed LastFMImport v. 2.1 to this user only (appdata)

Behavior: Two options appear in extension menu instead of the expected one.
Expected Behavior: If not run as admin, a message letting me know that an old version is installed but can't be removed as non admin.
If run as admin, simply upgrade in place or give option to upgrade while migrating to appdata ?

Build: 4.0.0.1355
Win 7 x64

edit: ugh, guess I should try the latest dev build, bit late now, i'll leave the topic here for now and get back to this tomorrow if that's ok?
Last edited by Psyker7 on Wed Mar 30, 2011 8:42 am, edited 4 times in total.
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Installing extension of different version but same ID

Post by Psyker7 »

Confirmed to still be an issue with 4.0.0.1358

To Reproduce:
Start MM as admin, install (say) version 2.0 of my script: http://psykar.com/script-files/LastFmImport-2.0.mmip
Quit MM
Start MM as normal user (no admin), install version 2.1 of my script: http://psykar.com/script-files/LastFmImport-2.1.mmip


Note that both appear to install OK, and both appear in the extensions list, whereas 2.1 should overwrite 2.0, or in this case (as 2.0 was installed for all users) give an error message of some sort.

Also the 2.1 install does not overwrite the option in the scripts menu (tools -> scripts) and attempting to run my script after following the above instructions will only run the OLD version, 2.0
Ludek
Posts: 5101
Joined: Fri Mar 09, 2007 9:00 am

Re: Installing extension of different version but same ID

Post by Ludek »

Psyker7 wrote: Also the 2.1 install does not overwrite the option in the scripts menu (tools -> scripts) and attempting to run my script after following the above instructions will only run the OLD version, 2.0
That is strange, isn't it caused just by the fact that you installed both scripts in a row without restarting MM and thus MM loaded version 2.0 at first?


The idea here is that users should be able to install the script to both locations, but MM is loading only the "for current user only" installation (the "All users" script is ignored) if both exist.
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: Installing extension of different version but same ID

Post by Psyker7 »

Ludek wrote:
Psyker7 wrote: Also the 2.1 install does not overwrite the option in the scripts menu (tools -> scripts) and attempting to run my script after following the above instructions will only run the OLD version, 2.0
That is strange, isn't it caused just by the fact that you installed both scripts in a row without restarting MM and thus MM loaded version 2.0 at first?


The idea here is that users should be able to install the script to both locations, but MM is loading only the "for current user only" installation (the "All users" script is ignored) if both exist.
That is what I thought would have happened, and I was surprised at the result I got, and I did quit MM in between the installs as I mentioned.

I would understand if that was the intended outcome, but it would still be somewhat confusing for an end user to see two versions of the same script in the extensions menu - perhaps an indicator if it's installed per user or for all users would be helpful as a minimum?
Ludek
Posts: 5101
Joined: Fri Mar 09, 2007 9:00 am

Re: 1358: Installing extension of different version but same

Post by Ludek »

Tested myself and you are right, there is really a problem, reported as
http://www.ventismedia.com/mantis/view.php?id=7613
Psyker7
Posts: 255
Joined: Sat Mar 03, 2007 8:00 am

Re: 1358: Installing extension of different version but same

Post by Psyker7 »

I see you just marked it as resolved, thanks! Look forward to the next dev release =)
Post Reply