VLCPortable v1.1.0 font rebuild issue
spchtr - June 29, 2010 - 6:00am
Ok, I've worked it out for myself at least. I don't know how to upload the updated files here though.
I recompiled VLCPortable.exe using the /Other/Source/VLCPortable.nsi file.
I added two lines to it. Comments are at the end of the line where I added with comments at the beginning a couple lines above each added line.
LaunchNow: StrCmp $SECONDARYLAUNCH "true" LaunchAndClose ;=== Backup local VLC files if present Rename `$APPDATA\vlc` `$APPDATA\vlc-BackupByVLCPortable` Rename `$APPDATA\dvdcss` `$APPDATA\dvdcss-BackupByVLCPortable` CreateDirectory `$APPDATA\vlc` ;== Ok Here's where we're actually copying the files. CopyFiles /SILENT `$SETTINGSDIRECTORY\*.cache-2` `$APPDATA\vlc\` ;==I added this line CopyFiles /SILENT `$SETTINGSDIRECTORY\ml.xspf` `$APPDATA\vlc\ml.xspf` CopyFiles /SILENT `$SETTINGSDIRECTORY\vlc-qt-interface.ini` `$APPDATA\vlc\vlc-qt-interface.ini` ExecWait $EXECSTRING CheckRunning: Sleep 1000 FindProcDLL::FindProc "$PROGRAMEXECUTABLE" StrCmp $R0 "1" CheckRunning ;== Here is where it copys the files from $APPDATA\Roaming, etc. It's missing the cache-2 file... CopyFiles /SILENT '$APPDATA\vlc\*.cache-2' '$SETTINGSDIRECTORY\' ;== I added this line CopyFiles /SILENT `$APPDATA\vlc\ml.xspf` `$SETTINGSDIRECTORY\ml.xspf` CopyFiles /SILENT `$APPDATA\vlc\vlc-qt-interface.ini` `$SETTINGSDIRECTORY\vlc-qt-interface.ini` ;== Here is where the deleting happens. RMDir /r `$APPDATA\vlc` RMDir /r `$APPDATA\dvdcss` Rename `$APPDATA\vlc-BackupByVLCPortable` `$APPDATA\vlc` Rename `$APPDATA\dvdcss-BackupByVLCPortable` `$APPDATA\dvdcss` GoTo TheEnd
I downloaded UnicodeNSISPortable: http://portableapps.com/node/21879
I also had to download MoreInfo.dll because it was not included in UnicodeNSISPortable. It goes in the App/plugins folder.
If you install VLCPortable 1.1.0, PortableApps.comInstaller, and UnicodeNSISPortable in the same parent folder, then make the changes to VLCPortable.nsi I described above. You can delete the VLCPortable.exe that comes in the installer. You then run UnicodeNSISPortable, and tell it to compile VLCPortable.nsi. It should compile with no problem. After compiling run VLCPortable.exe and open a video or something. It should create the font cache, then you should be able to close VLCPortable, reopen it, and it should not rebuild the font cache after that. I'm not sure where to send these instructions to get someone to put up a version of it that uses these two extra lines, so if someone has that information, or has the ability to put it up with the changes, please let me know.