I was recently looking at the MediaMonkey Portable launcher and noticed that a folder is left at C:\Users\[username]\AppData\Local\ in Windows7. The folder is removed in XP, so obviously something's changed. The settings and everything are moved properly, but an empty folder is left and not removed. I've posted the cleanup code below, but I don't know what's wrong. Can somebody take a look at this?
EDIT: Topic moved to MediaMonkey Launcher topic.
MoveSettingsBack: CopyFiles /SILENT "$PROFILE\Local Settings\Application Data\MediaMonkey\*.*" "$SETTINGSDIRECTORY\MediaMonkey" Sleep 100 RMDir /r "$PROFILE\Local Settings\Application Data\MediaMonkey" Sleep 100 Rename "$PROFILE\Local Settings\Application Data\MediaMonkey-BackupByMediaMonkeyPortable" "$PROFILE\Local Settings\Application Data\MediaMonkey" Sleep 100 Delete "$SETTINGSDIRECTORY\MediaMonkey.ini" Rename "$PROGRAMDIRECTORY\MediaMonkey.ini" "$SETTINGSDIRECTORY\MediaMonkey.ini" Delete "$SETTINGSDIRECTORY\MM.db" Rename "$PROGRAMDIRECTORY\MM.db" "$SETTINGSDIRECTORY\MM.db" Delete "$SETTINGSDIRECTORY\Scripts.ini" Rename "$PROGRAMDIRECTORY\Scripts\Scripts.ini" "$SETTINGSDIRECTORY\Scripts.ini" Goto TheEnd
At first glance, I would say that all occurrences of -
should be replaced with -
That would go for the rest of the launcher too. HTH.
Perfect, thanks!
@Prapper: I have another question, kind of unrelated. There are actually 2 registry entries created: HKLM/Software/MediaMonkey and HKLM/Software/Winamp. I've taken care of the MediaMonkey entry, but until now have ignored the Winamp entry because it didn't really have any data in it. I'm trying to figure out how to handle it, but I'm not where to manage it in the code, could you take a look at the code and give me a suggestion? Also, if you don't mind, can you make any other suggestions; I'm trying to get this to the point where it can be an online installer.
Let's keep this in the Media Monkey Portable launcher topic as it's not an official/supported app.
Sometimes, the impossible can become possible, if you're awesome!
I'll move it over there, feel free to close this topic.