Selrac
Selrac

Reputation: 2293

Meaning of Msiexec.exe switches

I have problems installing .msi files. Looking in the registry I've found the following entry:

"%SystemRoot%\System32\msiexec.exe" /i "%1" %*

I understand the /i swhitch as per the this site, but I don't understand what is the meaning of the rest

"%1" %*

Any ideas?

Upvotes: 1

Views: 814

Answers (1)

zett42
zett42

Reputation: 27756

%1 is a placeholder for the .msi file to be executed, %* is a placeholder for optional arguments passed to the .msi file.

An example how this could expand:

"c:\Windows\System32\msiexec.exe" /i "c:\foo\bar.msi" INSTALLDIR="c:\program files\foo"

Here is a list of available placeholders.

Upvotes: 2

Related Questions