/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi all, I need help as i am new to this msi technology.

I have the requirement like this,

I have an MSI, upon clicking on that it will install silently.
The requirement is something like, i need to create an reverse MSI, upon clicking on that, software must be uninstalled silently.

Thanks in advance.
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Can I politely suggest that you continue your reading about MSI/Windows Installer technology? An MSI is intrinsicly able to reverse its actions: you don't need another one to do that.

To uninstall silently, you need to add the relevant switch to a command line, e.g.

MSIExec /X [path_to_and_name_of_MSI] /QN
or
MSIExec /X [ProductCode] /QN

Have a look at the Windows Installer help file MSI.CHM which will have been installed with your authoring tool. Search for '/Q' and select the third topic found 'Command Line Options'.

If you want that to happen when the MSI is double-clicked, you need to edit the 'UninstallString' entry in the registry to add the switch. That entry is stored at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]
Answered 03/06/2008 by: VBScab
Red Belt

Please log in to comment
0
Hi VBScab,
Thanks for the information.
Client requirement is, we need to create a negative msi for Silent Uninstallation for the positive msi the client gives us.
For ex: Symantec antivirus.

Hoping for the Sweetfull response.
Answered 03/06/2008 by: avherur
Senior Yellow Belt

Please log in to comment
0
Tell the client (politely, of course) that they need to research Windows Installer. They evidently know nothing about it.

Send them my way: I'll put them straight. At my normal daily rate, of course.
Answered 03/06/2008 by: VBScab
Red Belt

Please log in to comment
0
avherur,

I think you've missed the point. "An MSI is intrinsicly able to reverse its actions: you don't need another one to do that."

If you have an MSI file - "app.msi" - then to install silently you would execute the command:

msiexec /i app.msi /qn

If the MSI file is already installed, and you wish to remove it from a machine then you execute (As VBScab stated):

msiexec /x app.msi /qn

Or use the [Product Code] - as also stated above.

It appears that your client does not understand Windows Installer technology.
I suggest you have a look at the help file (as suggested previously), and perform some of your own testing.

Hope this clears things up,

Dunnpy
Answered 03/06/2008 by: dunnpy
Red Belt

Please log in to comment
0
Interesting .....can any expert shed some light......

DPK RAJA
Answered 03/08/2008 by: dpkraja
Yellow Belt

Please log in to comment
0
Interesting .....can any expert shed some light......

Shed light on the msiexec command line or what else?

http://msdn2.microsoft.com/en-us/library/aa367988.aspx

Regards, Nick
Answered 03/08/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment