1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

wmic product where name="FileBot" call uninstall /nointeractive

This commit is contained in:
Reinhard Pointner 2016-02-27 03:27:37 +00:00
parent f27325a458
commit 66fa39af25

View File

@ -98,7 +98,7 @@ Var MSI_STATUS
Section MAIN
DetailPrint "Uninstalling previous versions..."
nsExec::Exec `Powershell.exe -inputformat none -noprofile -windowstyle hidden -Command "(Get-WmiObject -Class Win32_Product -Filter \"Name = 'FileBot'\").uninstall()"`
nsExec::Exec `wmic product where name="FileBot" call uninstall /nointeractive`
DetailPrint "Downloading latest version..."
${if} ${RunningX64}
@ -113,11 +113,11 @@ Section MAIN
${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();"`
nsExec::ExecToLog `"C:\Program Files\FileBot\filebot.exe" -script "g:println net.filebot.Settings.applicationIdentifier; java.util.prefs.Preferences.userRoot(); net.sf.ehcache.CacheManager.getInstance().clearAll(); net.filebot.media.MediaDetection.warmupCachedResources();" --log OFF`
DetailPrint "Done."
${else}
DetailPrint "msiexec error $MSI_STATUS"
DetailPrint "Install failed. Please download the .msi package manually."
DetailPrint "Installation failed. Please download the .msi package manually."
Abort
${endif}
SectionEnd