How do I make my msi not install if it is already installed on a machine. I don't want the repair, reinstall and uninstall prompt not to pop up?
0 Comments   [ + ] Show 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.

Answers

0
I believe that when calling msiexec for a second time with the same package will always show a UI.

So the solution would be not to initiate the installation a second time. You could deploy your package with a distribution system that does this check, or write your own check in VBScript. For VBScript use the WindowsInstaller.Installer object. You can use the method Products or the method ProductInfo to check if the package is already installed.

The dialogs for a repair / reinstall / uninstall will also always be shown. You can somewhat influence the interface with the /QB parameters.
Answered 09/13/2007 by: FrankSpierings
Orange Senior Belt

Please log in to comment
0
One method to do this is to use App Search Table along with Launch Condition table.You can make use of HKLM\Microsoft\Windows\CurrentVersion\Uninstall\{Product Code}key and choose any value like Display Name from there.Next put the condition as Property="" in Launch Condition table.
Now when you will install first time the msi will get installed fine and in second time it will not get installed /uninstalled or repaired if you give /i switch.The only pop up you will get is the one which you have mentioned in Launch Condition table, which can also be suppressed using some switch like /qn.
Answered 09/13/2007 by: msi_learner
Orange Belt

Please log in to comment
0
Hey! I like your thinking. Nice solution. Quite why it's required escapes me, but horses for courses, eh?
Answered 09/13/2007 by: VBScab
Red Belt

Please log in to comment
0
lol you sound sarcastic !!
Answered 10/04/2007 by: msi_learner
Orange Belt

Please log in to comment
0
ORIGINAL: jhsolutions5150

How do I make my msi not install if it is already installed on a machine. I don't want the repair, reinstall and uninstall prompt not to pop up?


IME, the LIMITUI property (set to 1) will avoid this nicely.
Answered 10/08/2007 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
If you are going to use the LIMITUI property then make sure to set the ARPNOMODIFY property as this will be "required" . Read about this requirement at http://msdn2.microsoft.com/en-us/library/aa369759.aspx
Answered 10/09/2007 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity