Try to fix freeze issues

This commit is contained in:
Reinhard Pointner 2016-04-09 08:33:48 +00:00
parent 8be96902e0
commit 1df8d03278
1 changed files with 4 additions and 2 deletions

View File

@ -108,16 +108,18 @@ Section MAIN
${endif} ${endif}
DetailPrint "Installing latest version..." DetailPrint "Installing latest version..."
nsExec::Exec `msiexec /passive /norestart /i "$PLUGINSDIR\FileBot.msi"` nsExec::Exec `msiexec.exe /passive /norestart /i "$PLUGINSDIR\FileBot.msi"`
Pop $MSI_STATUS # grab return value Pop $MSI_STATUS # grab return value
${if} $MSI_STATUS == "0" ${if} $MSI_STATUS == "0"
DetailPrint "Optimizing..." DetailPrint "Optimizing..."
nsExec::ExecToLog `"C:\Program Files\FileBot\filebot.exe" -script "g:println net.filebot.Settings.getApplicationIdentifier(); println 'JRE: ' + Settings.getJavaRuntimeIdentifier(); println String.format('JVM: %d-bit %s', com.sun.jna.Platform.is64Bit() ? 64 : 32, System.getProperty('java.vm.name')); java.util.prefs.Preferences.userRoot(); net.filebot.CacheManager.getInstance().clearAll(); net.filebot.media.MediaDetection.warmupCachedResources();" --log OFF` nsExec::ExecToLog `"C:\Program Files\FileBot\filebot.exe" -script "g:println net.filebot.Settings.getApplicationIdentifier(); println 'JRE: ' + Settings.getJavaRuntimeIdentifier(); println String.format('JVM: %d-bit %s', com.sun.jna.Platform.is64Bit() ? 64 : 32, System.getProperty('java.vm.name')); java.util.prefs.Preferences.userRoot(); net.filebot.CacheManager.getInstance().clearAll(); net.filebot.media.MediaDetection.warmupCachedResources();" --log OFF`
DetailPrint "Done." DetailPrint "Done. Before you get started, please have a look at the FAQ."
ExecShell open `http://www.filebot.net/forums/viewtopic.php?f=3&t=7`
${else} ${else}
DetailPrint "msiexec error $MSI_STATUS" DetailPrint "msiexec error $MSI_STATUS"
DetailPrint "Installation failed. Please download the .msi package manually." DetailPrint "Installation failed. Please download the .msi package manually."
ExecShell open `https://app.filebot.net/download.php`
Abort Abort
${endif} ${endif}
SectionEnd SectionEnd