running a silent install/uninstall program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know how to install a program silently. I know how to unistall a program silently.
But here's my problem :
I have a msi to deploy application. This msi chooses itself if it should install or uninstall the program (regarding if it is installed yet).
It works with full UI but when I want to use it via command line in a silent mode (using /qb for instance) it works only if the program isn't installed. Otherwise it doesn't uninstall it. In fact there is the ending message but nothing happened.
I use this command line :
msiexec /qb /i toto.msi

How can I do?
 
That command isn't an uninstall command. I suspect that what's happening is that
the product is already installed, and that command line is silently doing the
default repair option which is not changing anything at all. If you want to
uninstall, use msiexec /x {productcode guid}.
--
Phil Wilson [MVP Windows Installer]
----
rw72000 said:
I know how to install a program silently. I know how to unistall a program silently.
But here's my problem :
I have a msi to deploy application. This msi chooses itself if it should
install or uninstall the program (regarding if it is installed yet).
It works with full UI but when I want to use it via command line in a silent
mode (using /qb for instance) it works only if the program isn't installed.
Otherwise it doesn't uninstall it. In fact there is the ending message but
nothing happened.
 
Yes that's exactly what happened. But I'd like to use the same command (/i) to install or uninstall. Isn't there any option to do this?
 
Not according to the documentation. Some products do /i in Add/Remove Programs,
but that's because they're designed to show a repair/modify/remove dialog.
--
Phil Wilson [MVP Windows Installer]
----
rw72000 said:
Yes that's exactly what happened. But I'd like to use the same command (/i) to
install or uninstall. Isn't there any option to do this?
 
Back
Top