View Issue Details

IDProjectCategoryView StatusLast Update
0009089MMW v4Framework: Scripts/Extensionspublic2012-04-26 23:31
Reporterzvezdan Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version4.0.4Fixed in Version4.0.5 
Summary0009089: One duplicate section added to the Scripts.ini file with every installation of the program
DescriptionHere is what I had before the first test installation:
[Statistics]

[ExportHTML]

[ExportXML]

... and several others sections.

1. After the installation I got:
[Statistics]

[ExportHTML]

[ExportXML]

...

[Statistics]

2. I removed the last Statistics sections and tried installation again, but I got it added on the end of the Scripts.ini file again.

3. I tried installation without removed duplicate section from the end, but in that case it is not added again.

4. I removed duplicate Statistics section from the end and moved the original Statistics section from the begin to the end:
[ExportHTML]

[ExportXML]

...

[Statistics]

after one more installation I got:
[ExportHTML]

[ExportXML]

...

[Statistics]
[ExportHTML]

However, in this case the added ExportHTML is not complete. The first (original) one contains:
[ExportHTML]
FileName=Export.vbs
ProcName=ExportHTML
Order=2
DisplayName=File List (&HTML)
Description=Exports list of selected files to a .htm file
Language=VBScript
ScriptType=1

and the added duplicate is:
[ExportHTML]
ScriptType=1
DisplayName=File List (&HTML)
Description=Exports list of selected files to a .htm file
TagsNo tags attached.
Fixed in build1480

Relationships

related to 0009068 closedLudek Scripts of type 0-1 are not correctly displayed in hotkey's Action list if some has 2 or more entries [1468] 

Activities

Ludek

2012-02-07 19:44

developer   ~0030326

Last edited: 2012-02-07 19:45

I haven't been able to reproduce the issue with the deafult scripts.ini file.

Try to find more exact steps, i.e.
-what exact script is installed ?
-for current/all users ?
-what exact MM build ?

zvezdan

2012-02-07 20:17

updater   ~0030327

> -what exact script is installed ?

[ExportHTML]
FileName=Export.vbs
ProcName=ExportHTML
Order=2
DisplayName=File List (&HTML)
Description=Exports list of selected files to a .htm file
Language=VBScript
ScriptType=1

[ExportXML]
FileName=Export.vbs
ProcName=ExportXML
Order=3
DisplayName=File List (&XML)
Description=Exports list of selected files to an .xml file
Language=VBScript
ScriptType=1

[ExportCSV]
FileName=Export.vbs
ProcName=ExportCSV
Order=4
DisplayName=File List (CS&V)
Description=Exports list of selected files to a .csv file
Language=VBScript
ScriptType=1

[ExportXLS]
FileName=Export.vbs
ProcName=ExportXLS
Order=5
DisplayName=File List (&Excel)
Description=Exports list of selected files to a .xls file
Language=VBScript
ScriptType=1

[AutoIncTrackN]
FileName=AutoIncTrackN.vbs
ProcName=AutoIncTrackNumbers
Order=10
DisplayName=Auto-&increment Track #s...
Description=Sequentially numbers files
Language=VBScript
ScriptType=0

[SwapArtistTitle]
FileName=SwapArtistTitle.vbs
ProcName=SwapArtistTitle
Order=20
DisplayName=&Swap Artist and Title
Description=Swaps Artist and Title fields
Language=VBScript
ScriptType=0

[Case]
FileName=Case.vbs
ProcName=TitleCase
Order=30
DisplayName=Case Checker...
Description=Checks for correct capitalization
Language=VBScript
ScriptType=0

[ExportM3Us]
FileName=ExportM3Us.vbs
ProcName=ExportM3Us
Order=40
DisplayName=Export all Playlists...
Description=Exports all Playlists to .m3u
Language=VBScript
ScriptType=0

[ExportOPML]
FileName=ExportOPML.vbs
ProcName=ExportOPML
Order=50
DisplayName=Export subscribed Podcasts...
Description=Exports subscribed Podcasts to .opml file
Language=VBScript
ScriptType=0

[StatsFiltered]
Filename=Auto\StatsFiltered.vbs
Procname=ShowStats
Order=1
DisplayName=Statistics (&filtered)...
Description=Filtered Statistics Report
Language=VBScript
ScriptType=1

[SqlViewer]
Filename=SqlViewer.vbs
Procname=SqlViewer
Order=100
DisplayName=SqlViewer
Description=Run SQL Statement Within MM
Language=VBScript
ScriptType=0
Shortcut=CTRL+F9

[TreeReport]
Filename=TreeReport.vbs
Procname=TreeReport
Order=1
DisplayName=&Tree Report for Child Nodes...
Description=Tree Report for child nodes of the selected node
Language=VBScript
ScriptType=1

[AddPlayingTrackToPlaylist]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddPlayingTrackToPlaylist
Order=88
DisplayName=Add Currently Playing Track to Playlist
Description=Add the currently playing track to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Ctrl+Alt+Shift+0

[AddSelectedTrackToPlaylist]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddSelectedTrackToPlaylist
Order=89
DisplayName=Add Selected Track(s) to Playlist
Description=Add the selected track(s) to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Alt+Shift+0

[AddPlayingTrackToPlaylist1]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddPlayingTrackToPlaylistEx(1)
Order=88
DisplayName=Add Currently Playing Track to Playlist 1
Description=Add the currently playing track to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Ctrl+Alt+Shift+1

[AddPlayingTrackToPlaylist2]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddPlayingTrackToPlaylistEx(2)
Order=88
DisplayName=Add Currently Playing Track to Playlist 2
Description=Add the currently playing track to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Ctrl+Alt+Shift+2

[AddPlayingTrackToPlaylist3]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddPlayingTrackToPlaylistEx(3)
Order=88
DisplayName=Add Currently Playing Track to Playlist 3
Description=Add the currently playing track to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Ctrl+Alt+Shift+3

[AddSelectedTrackToPlaylist1]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddSelectedTrackToPlaylistEx(1)
Order=89
DisplayName=Add Selected Track(s) to Playlist 1
Description=Add the selected track(s) to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Alt+Shift+1

[AddSelectedTrackToPlaylist2]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddSelectedTrackToPlaylistEx(2)
Order=89
DisplayName=Add Selected Track(s) to Playlist 2
Description=Add the selected track(s) to the specified playlist
Language=VBScript
ScriptType=0
Shortcut=Alt+Shift+2

[DuplicateReport]
Filename=DuplicateReport.vbs
Procname=DuplicateReport
Order=1
DisplayName=Duplicate Report
Description=Find duplicate songs
Language=VBScript
ScriptType=1

[DuplicateReport_PrevOptions]
Filename=DuplicateReport.vbs
Procname=DuplicateReportPreviousOptions
Order=2
DisplayName=Duplicate Report (Previous Options)
Description=Find duplicate songs (doesn't display options)
Language=VBScript
ScriptType=1
Shortcut=Shift+Alt+X

[Statistics]
FileName=Stats.vbs
ProcName=ShowStats
Order=5
DisplayName=&Statistics
Description=Library Statistics Report
Language=VBScript
ScriptType=1
[ExportHTML]
ScriptType=1
DisplayName=File List (&HTML)
Description=Exports list of selected files to a .htm file

> -for current/all users ?
I think it is obvious that your program installs scripts for all users.

> -what exact MM build ?
Several ones concluding with 1470.

Ludek

2012-02-13 16:44

developer   ~0030391

Last edited: 2012-02-13 16:44

I meant what exact script is being installed.

The problem is that I cannot reproduce the error, here is what I did:
1. I did a freash install with MM build 1472, default Scripts.ini was added to both scripts locations (AppData and install folder)
2. Downloaded your filtered statistics report script. BTW it is too bad that it has not added here: http://www.mediamonkey.com/addons/browse/management/reports/
3. Installed your script for all users (with the "only for current user" checkbox unchecked)
4. Checked Scripts.ini with the MM install folder and [Statistics] section is there only once as expected

Not sure what is the difference, maybe it is not reproducable with clean install, i.e. your Scripts.ini is somehow affected from the past versions?

zvezdan

2012-02-13 21:41

updater   ~0030399

It seems that you didn't understand me and I am sorry for not being clear. I am not talking about the script installations, but about the program installation. Every time when I install the program (even the same build) it adds one section on the end of Scripts.ini file if it is not already there, those sections are of scripts that come with the program, i.e. Statistics, ExportHTML, ...

By the way, here are scripts which I have installed for all users: StatsFiltered, SqlViewer, TreeReport, AddPlayingTrackToPlaylist, DuplicateReport, but I think that this is not important for this problem. If you want, I could try to remove all third-party scripts and to install the program again, but I bet that I would get again one duplicate section of your script on the end of the Scripts.ini.

Ludek

2012-02-20 19:31

developer   ~0030475

Last edited: 2012-02-20 19:33

OK, you seem to be right.

It is not reproducable with the default Scripts.ini though. The Scripts.ini needs to be modified by a script to contain leading UTF-8 BOM character before the first [Statistics] characters and then MM installer fails to detect that the section already exists and adds a duplicate.

Ludek

2012-02-20 19:44

developer   ~0030476

Last edited: 2012-02-20 20:13

Fixed in build 4.0.4.1480

peke

2012-04-26 23:31

developer   ~0030934

Verified 1484