TheLug Posted July 24, 2015 Share Posted July 24, 2015 creating an uninstall that is version agnostic for Adobe Air.When on the machine fromC:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0@ a command prompt, I can runmsiexec.exe /x setup.msi /qb-!and it works perfectly.Now here is the problem, I can run with an autoit ".exe" using the @homedrive macro just fine without a problem. But when i runRunWait ("msiexec.exe /x " & @CommonFilesDir & "\Adobe Air\Versions\1.0\setup.msi /qb-!") from an autoit ".exe" I get the msi info window (screenshot attached) saying something is wrong. It appears to be a permissions issue but i cannot figure out what to do to fix this.example if i move the files to "c:\temp" and run an autoit ".exe" usingRunWait ("msiexec.exe /x " & @HomeDrive & "\Temp\setup.msi /qb-!") it works perfectly. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 24, 2015 Developers Share Posted July 24, 2015 What about this one?:RunWait ('msiexec.exe /x "' & @CommonFilesDir & '\Adobe Air\Versions\1.0\setup.msi" /qb-!')Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
TheLug Posted July 25, 2015 Author Share Posted July 25, 2015 (edited) BEAUTIFUL!!!!!So... Can you tell me why? Is it because of the space in the "Adobe Air"? But it works with the space using @HomeDrive! What makes this work and why? Thanks so much! Edited July 25, 2015 by TheLug more details Link to comment Share on other sites More sharing options...
TheLug Posted July 25, 2015 Author Share Posted July 25, 2015 (edited) What about this one?:RunWait ('msiexec.exe /x "' & @CommonFilesDir & '\Adobe Air\Versions\1.0\setup.msi" /qb-!')JosI posted the entire script in the examples forum thanks for the help.Example Scripts Forum Edited July 25, 2015 by TheLug Link to comment Share on other sites More sharing options...
Administrators Jon Posted July 25, 2015 Administrators Share Posted July 25, 2015 You were running the command like:msiexec.exe /x Path with spaces\Temp\setup.msi /qb-!and it needed to be:msiexec.exe /x "Path with spaces\Temp\setup.msi" /qb-! Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 27, 2015 Moderators Share Posted July 27, 2015 I'm not sure if it works for Adobe Air specifically (depends on how it loads into the Uninstall hive in the registry), but when I am uninstalling and need to be version-agnostic I usually turn to WMI:$oWMI = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") $aProducts = $oWMI.ExecQuery("Select * from Win32_Product") For $app in $aProducts If StringInStr($app.Name, "7-Zip") Then ;ConsoleWrite("Uninstalling " & $app.Name & @CRLF) $app.Uninstall() EndIf Next Jon 1 "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! Link to comment Share on other sites More sharing options...
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