Welcome to the forum. Software install/uninstall is very difficult to automate in generic way. If you can tell us more about the specific package you are trying to remove and install, and also post what you have tried so far, we should be able to help you out.
I am un/installing a product called confluence unity
To uninstall
I tried to use the MSI installer and following script changing blackeberry to my application
// Uninstall via MSIEXEC
waithidden “{pathname of system folder & “\msiexec.exe”}” /QN REBOOT=ReallySuppress /I{name of key whose (value “DisplayName” of it starts with “BlackBerry Desktop Software 4.7” and name of it starts with “{”) of
key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry}
I may be doing this wrong as when I typed the command for the new install /? it came back with installshield options.
Also tried for uninstall
action parameter query “name” with description “Please enter the Program Name (needs to match the name in the add/remove programs”
waithidden “{pathname of system folder & “\msiexec.exe”}” /QN REBOOT=ReallySuppress /X{name of key whose (value “DisplayName” of it as lowercase =(parameter “Name” of action as lowercase) and name of it starts with “{”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry}
But didn’t understand the part where I click on the action and enter the application name ??
This is all form the view topic in my post.
Finally for the install tried to play around with .iss files for the install but found out I need a professional version of installshield.
If the uninstal is MSI based, then the script should work, BUT the parameter is case sensitive.
E.G. Can not be ‘Name’ and then ‘name’
Try
action parameter query “NAME” with description “Please enter the Program Name (needs to match the name in the add/remove programs”
waithidden “{pathname of system folder & “\msiexec.exe”}” /QN REBOOT=ReallySuppress /X{name of key whose (value “DisplayName” of it as lowercase =(parameter “NAME” of action as lowercase) and name of it starts with “{”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry}