How can I send a product's CD key during a Windows Installer installation?

A. Usually, when you use Windows Installer to install a program, you must still enter the product ID; however, you can send this information with the MSIEXEC command:

msiexec /a \[msi file\] PIDKEY="\[CD key\]"
Optionally, you can supply USERNAME=\[user name\], COMPANYNAME=\[company name\], USERINITIALS=\[user initials\].
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.