Page 5 of 9

Re: Installation Packages [MM3]

Posted: Tue Oct 21, 2008 10:22 am
by Big_Berny
Any news about updateurl?

Re: Installation Packages [MM3]

Posted: Wed Oct 22, 2008 3:19 am
by Ludek
ZvezdanD wrote:MM developers, I think your installation process has a bug if there is some Install.vbs file in same folder as .mmip file. For example, if I have Install.vbs from RegExp Find & Replace script in same folder as MagicNodes.mmip, when I click on this .mmip file it is executed RegExp's Install.vbs, instead of Install.vbs from the MagicNodes.mmip.
Thank you, we were able to reproduce, this will be fixed in the next release.
Note: This bug occurs only if you double-click the MMIP file before MM starts. If you firstly start MM and then double-click MMIP then there is not the problem.

Re: Installation Packages [MM3]

Posted: Thu Oct 23, 2008 9:13 am
by ZvezdanD
One more thing. I think that MM should automatically remove old version of some script, i.e. it should start Uninstall.vbs before installation of the new version of same script. Well, I tried to put

Code: Select all

[Execute]
File=Uninstall.vbs

[Execute]
File=Install.vbs
into Install.ini, but Uninstall.vbs is not executed, only Install.vbs. So, I need to put same code from Uninstall.vbs into Install.vbs on its begin.

I am also interested about UpdateURL. And one question - what should be done to enable the Options button in the Extensions dialog box when I select my script?

Re: Installation Packages [MM3]

Posted: Mon Oct 27, 2008 8:24 am
by Ludek
ZvezdanD wrote:One more thing. I think that MM should automatically remove old version of some script, i.e. it should start Uninstall.vbs before installation of the new version of same script. Well, I tried to put

Code: Select all

[Execute]
File=Uninstall.vbs

[Execute]
File=Install.vbs
into Install.ini, but Uninstall.vbs is not executed, only Install.vbs. So, I need to put same code from Uninstall.vbs into Install.vbs on its begin.

I am also interested about UpdateURL. And one question - what should be done to enable the Options button in the Extensions dialog box when I select my script?
1. Yes, there was a tweak in performing of [Execute] and [Copy] sections in Install.ini, this will be fixed in the next release. i.e.

Code: Select all

[Execute]
File=Uninstall.vbs

[Execute]
File=Install.vbs
is going to work right.

2. Re: The update URL, you have to include VersionMajor, VersionMinor, VersionRelease, VersionBuild and
UpdateURL to your Install.ini. In order to find out how this works try this example script:
<invalid link>

Re: Installation Packages [MM3]

Posted: Mon Oct 27, 2008 9:42 am
by ZvezdanD
Ludek wrote:Re: The update URL, you have to include VersionMajor, VersionMinor, VersionRelease, VersionBuild and
UpdateURL to your Install.ini. In order to find out how this works try this example script:
<invalid link>
Thanks for your answers. If I understand correctly after looking this example I need to specify the URL address of my mmip file, right? I though it should be a way to specify some html or xml file where MM could check which the latest version of the script is available before installing it.

You didn't answer me what should I do to enable the Options button. I have already implemented the Options sheet in my script and I suppose that this button is intended to display this sheet.

Re: Installation Packages [MM3]

Posted: Mon Oct 27, 2008 5:35 pm
by rovingcowboy
ZvezdanD wrote:Thanks for your answers. If I understand correctly after looking this example I need to specify the URL address of my mmip file, right? I though it should be a way to specify some html or xml file where MM could check which the latest version of the script is available before installing it.

that is just what it is to be used for the url to find the new versions. but that url was to be the host site from mediamonkeys host site which as of yet is not online and ready for us to host the scripts and skins there.

you could put your own web site there. but when they get theirs ready then you would change to theirs, i just don't want to have to redo that many files which i have for my skins so i'm just not using the url until they get the host site online and ready. :)

Re: Installation Packages [MM3]

Posted: Mon Oct 27, 2008 6:22 pm
by ZvezdanD
rovingcowboy wrote:you could put your own web site there. but when they get theirs ready then you would change to theirs
It doesn't matter if this URL address is from my site or theirs. My point is that this URL links to the mmip file. So, when some user clicks on the Find updates button in the Extension dialog box, MM needs to download this mmip file, unzip it and check its ini file if version of the script is higher then existing (if it check that at all). I think it could be better if this URL links to some textual file which could contain only information about latest version, because download would be faster. In such way MM could periodically check if there is newer versions of installed scripts in same time when it checks for program update.

By the way, I tried to specify URL address of the mmip file on my site, but when I click on the Find updates button, MM displays "No Update Server Available".

Re: Installation Packages [MM3]

Posted: Mon Oct 27, 2008 9:31 pm
by rovingcowboy
strange i thought it should have taken you to your site.?

I'm not sure how they are planning the host site, i had thought we would post the file with the preview and information like we do on the wiki screenshots, where the script would then check the installed version numbers against the ones on the host site preview.

but not sure about that? :-?

Re: Installation Packages [MM3]

Posted: Tue Oct 28, 2008 4:21 am
by trixmoto
I imagine (although I have no official information on this) that there will be a central database which scripters will update to say that there is a new version of their script available and MM will check this when the button is clicked and if there is an update then it will follow the url to get the file. As I say, this is only a guess though! :)

Re: Installation Packages [MM3]

Posted: Tue Oct 28, 2008 5:10 am
by Ludek
The URL is XML and should look like this:
<invalid link>

Re: Installation Packages [MM3]

Posted: Tue Oct 28, 2008 7:25 am
by rovingcowboy
Ludek wrote:The URL is XML and should look like this:
<invalid link>
does that mean you and rusty and jiri or who ever else is working on the host site have it close to finished?
since you got this url or is this just an example url ? :o

Re: Installation Packages [MM3]

Posted: Tue Oct 28, 2008 7:58 am
by ZvezdanD
Ludek wrote:The URL is XML and should look like this:
<invalid link>
Now, this is something new. Thank you for information! I just tried and it works almost perfectly. I installed a script which has version 1.1.0.0 and put xml file on my site which has specified version 1.1.1.0. After I clicked the Find updates button, MM displays

Code: Select all

1.1.1 No Update Available
Via: http://solair.eunet.yu/~zvezdand/InvertSelection.mmip
If I understand correctly, it should display Update Available since 1.1.1 is newer than 1.1. When I click on the Install update button, the new version of the script is installed correctly, but version in the Extensions dialog is not displayed immediately after that, but only after closing and reopening dialog.

You still didn't answer me what should we do to enable the Options button.

Re: Installation Packages [MM3]

Posted: Wed Oct 29, 2008 4:15 am
by trixmoto
That link is broken for me :(

Re: Installation Packages [MM3]

Posted: Wed Oct 29, 2008 7:10 am
by Big_Berny
Right... The XML-link seems to be broken... :-?

Re: Installation Packages [MM3]

Posted: Wed Oct 29, 2008 7:20 am
by ZvezdanD
Here is its contents:

Code: Select all

<SoftwareVersion>
 <VersionMajor>1</VersionMajor>
 <VersionMinor>0</VersionMinor>
 <VersionRelease>2</VersionRelease>
 <VersionBuild>2</VersionBuild>
 <UpdateURL>[direct link to plugin installation mmip]</UpdateURL>
</SoftwareVersion>