• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 618
  • Last Modified:

Command line to run MSI multiple times without a dialogue

I have created an MSI to install a program
The command line that I use is
msiexec /i "myinstall.msi" transforms=:instanceid1.mst MSINEWINSTANCE=1

I want a command line so that if I run in the install more than once, it just re-installs the same installation. Currently it puts up a dialgue explaining the parameters of msiexec if I run the install more than once. Thanks,
0
bbcac
Asked:
bbcac
  • 2
1 Solution
 
The_KirschiCommented:
I think you need to add the /fa switch for reinstall all files.

http://msdn2.microsoft.com/en-us/library/aa367988.aspx
0
 
bbcacAuthor Commented:
I'm not sure where my command line was wrong but I reworked it without the FA switch and that did the trick
The problem with using the FA switch is that it doesn't install if there is not copy on the machine already. But if there is, then it will reinstall.

Thanks anyway
0
 
The_KirschiCommented:
Ok. Thanks for posting your solution.
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now