Help with VBS Path Variables Please
Posted: Sun Nov 03, 2013 1:36 am
Please help me, I am looking after just one add-on ScrobblerDJ V2.x, and every few months someone encounters another problem with the path names used in the Installation and Uninstallation VBS scripts.
I need a definitive VBS variable SDB.??? that will work for every user, windows version and MediaMonkey version and that will consistently point to the same Scripts.ini file both during Instalation and Unistallation.
If a single variable is impossible, can someone provide a partial VBS script that picks the right variable for every MediaMonkey version and/or failing that for every MediaMonkey / Operating System combination?
Previous experiments with SDB.ScriptsPath have shown that it can vary inbetween Installation and Uninstallation,
SDB.ScriptsIniFile (the variable used in the current V2.18 Installation/Unistallation) suddenly seems to have become invalid.
All this is assuming that:
a) A ScriptType 2 entry is needed in Scripts.ini (the script runs every time a new track begins)
b) Uninstallation needs to remove said ScriptType 2 entry
This is really becoming a pain, I want to concentrate on the functionality of the add-on, not firefight Installation/Unistallation problems every few months.
I need a definitive VBS variable SDB.??? that will work for every user, windows version and MediaMonkey version and that will consistently point to the same Scripts.ini file both during Instalation and Unistallation.
If a single variable is impossible, can someone provide a partial VBS script that picks the right variable for every MediaMonkey version and/or failing that for every MediaMonkey / Operating System combination?
Previous experiments with SDB.ScriptsPath have shown that it can vary inbetween Installation and Uninstallation,
SDB.ScriptsIniFile (the variable used in the current V2.18 Installation/Unistallation) suddenly seems to have become invalid.
All this is assuming that:
a) A ScriptType 2 entry is needed in Scripts.ini (the script runs every time a new track begins)
b) Uninstallation needs to remove said ScriptType 2 entry
This is really becoming a pain, I want to concentrate on the functionality of the add-on, not firefight Installation/Unistallation problems every few months.