running a silent install/uninstall program

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?
 
P

Phil Wilson

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.
 
G

Guest

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?
 
P

Phil Wilson

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top