tonysing Posted September 5, 2014 Posted September 5, 2014 Hello Guys, I am try to make a upgrade patch of Adobe FlashPlayer and Reader, but things didn't get really well. Here is some part of the code If FileExists($folder) then ShellExecuteWait("uninstall_flash_player.exe"," -uninstall") ShellExecuteWait("uninstall_flash_player.exe"," /silent") EndIf warn(4000) ShellExecuteWait("msiexec.exe"," /i install_flash_player_14_active_x.msi /norestart /qn") ShellExecuteWait("msiexec.exe"," /i install_flash_player_14_plugin.msi /norestart /qn") If $var == "11.0.07" Then ;The new update require ver. 11.0.07 or later ShellExecuteWait("msiexec.exe", "/update AdbeRdrUpd11008.msp /qn /norestart", "", "open") Else ShellExecuteWait("msiexec.exe", "/i AdbeRdr11000_en_US.msi TRANSFORMS=AdbeRdr11000_en_US.mst /qn", "", "open") ShellExecuteWait("msiexec.exe", "/update AdbeRdrUpd11007.msp /qn /norestart", "", "open") ShellExecuteWait("msiexec.exe", "/update AdbeRdrUpd11008.msp /qn /norestart", "", "open") EndIf For the flashplayer, after the player is uninstalled, it didn't really reinstall it back. For the reader, the reader is only updated to 11.0.07 if the reader version is below 11.0.07 at first. Can anybody tell me what's wrong with my script? Thanks a lot
bordomavi Posted September 5, 2014 Posted September 5, 2014 If FileExists($folder) then ShellExecuteWait("uninstall_flash_player.exe", '/VERYSILENT /NORESTART') EndIf warn(4000) ShellExecuteWait("install_flash_player_14_active_x.msi", '/qn /norestart') ShellExecuteWait("install_flash_player_14_plugin.msi", '/qn /norestart') ; If $var == "11.0.07" Then ;The new update require ver. 11.0.07 or later ShellExecuteWait("update AdbeRdrUpd11008.msp" '/qn /norestart') Else ShellExecuteWait("AdbeRdr11000_en_US.msi", '/qn /norestart') ShellExecuteWait("update AdbeRdrUpd11007.msp", '/qn /norestart') ShellExecuteWait("update AdbeRdrUpd11008.msp", '/qn /norestart') EndIf it must be work
tonysing Posted September 7, 2014 Author Posted September 7, 2014 (edited) Thanks, I will try this by tmr as I am not in the office now Sorry, it doesn't work at all. It can't even remove flashplayer at first. The program just doing nothing. Is it work well on your PC? Edited September 8, 2014 by tonysing
Moderators JLogan3o13 Posted September 8, 2014 Moderators Posted September 8, 2014 For the first one, if you say it is uninstalling successfully, have you tried adding a sleep in before you then try installing? For the second one, why not just go out to Adobe's website and fill out the form (takes 2 minutes) to get a redistributable license? Then you can download the full MSI package with not bloatware (beyond Adobe itself, of course), and install it. You can skip doing all the .msp's this way. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now