* initialize java.util.prefs.Preferences once as Administrator

```
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002.
 Windows RegCreateKeyEx(...) returned error code 5.
```

@see http://stackoverflow.com/q/16428098/1514467
This commit is contained in:
Reinhard Pointner 2015-10-18 19:18:25 +00:00
parent d170d70e3a
commit 29bec4ebaf
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ Section MAIN
Pop $MSI_STATUS # grab return value Pop $MSI_STATUS # grab return value
${if} $MSI_STATUS == "0" ${if} $MSI_STATUS == "0"
DetailPrint "Optimizing..."
nsExec::Exec `"C:\Program Files\FileBot\filebot.exe" -script "g:java.util.prefs.Preferences.userRoot(); net.sf.ehcache.CacheManager.getInstance().clearAll(); net.filebot.media.MediaDetection.warmupCachedResources();"`
DetailPrint "Done." DetailPrint "Done."
${else} ${else}
DetailPrint "msiexec error $MSI_STATUS" DetailPrint "msiexec error $MSI_STATUS"