\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Ben Kellermann (bzowk)} \pdfinfo{ /Title (msiexec-command-line-options.pdf) /Creator (Cheatography) /Author (Ben Kellermann (bzowk)) /Subject (MSIEXEC Command Line Options Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{253AA3} \definecolor{LightBackground}{HTML}{F1F2F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{MSIEXEC Command Line Options Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Ben Kellermann (bzowk)} via \textcolor{DarkBackground}{\uline{cheatography.com/22753/cs/4737/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Ben Kellermann (bzowk) \\ \uline{cheatography.com/bzowk} \\ \uline{\seqsplit{www}.guidesforit.com} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 4th August, 2015.\\ Updated 13th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{General Syntax}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{msiexec /Option \textless{}Required Parameter\textgreater{} {[}Optional Parameter{]}}}} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Install Options}} \tn % Row 0 \SetRowColor{LightBackground} /i & Installs a Product \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} /a & Administrative install - Installs a product on the network \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} /t & Use Transform List (.MST) \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} /x & Uninstalls the product \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.94563 cm} x{4.03137 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Display Options}} \tn % Row 0 \SetRowColor{LightBackground} /quiet & Quiet mode, no user interaction \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{/passive} & Unattended mode - progress bar only \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} /qn & No UI \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} /qb & Basic UI \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} /qr & Reduced UI \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} /qf & Full UI (default) \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} /help & Help information \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Restart Options}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{/norestart} & Do not restart after the installation is complete \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{/promptrestart} & Prompts the user for restart if necessary \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{/forcerestart} & Always restart the computer after installation \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.9954 cm} x{3.9816 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Repair Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Syntax}} & {\bf{/f{[}p|e|c|m|s|o|d|a|u|v{]} \textless{}Product.msi | ProductCode\textgreater{}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} /fp & only if file is missing \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} /fo & if file is missing or an older version is installed {\emph{(default)}} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} /fe & if file is missing or an equal or older version is installed \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} /fd & if file is missing or a different version is installed \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} /fc & if file is missing or checksum does not match the calculated value \tn % Row Count 12 (+ 3) % Row 6 \SetRowColor{LightBackground} /fa & forces all files to be reinstalled \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} /fu & all required user-specific registry entries {\emph{(default)}} \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.9954 cm} x{3.9816 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Logging Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Syntax}} & {\bf{/l{[}i|w|e|a|r|u|c|m|o|p|v|x|+|!|*{]} \textless{}LogFile\textgreater{}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} /li & Status messages \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} /lw & Nonfatal warnings \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} /le & All error messages \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} /la & Start up of actions \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} /lr & Action-specific records \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} /lu & User requests \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} /lc & Initial UI parameters \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} /lm & Out-of-memory or fatal exit information \tn % Row Count 11 (+ 2) % Row 9 \SetRowColor{white} /lo & Out-of-disk-space messages \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} /lp & Terminal properties \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} /lv & Verbose output \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} /lx & Extra debugging information \tn % Row Count 15 (+ 1) % Row 13 \SetRowColor{white} /l+ & Append to existing log file \tn % Row Count 16 (+ 1) % Row 14 \SetRowColor{LightBackground} /l! & Flush each line to the log \tn % Row Count 17 (+ 1) % Row 15 \SetRowColor{white} /l* & Log all information, except for v and x options \tn % Row Count 19 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{{\emph{Multiple uses of the above switches may be combined behind a single "/l" (/lawe)}}}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.24425 cm} x{3.73275 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Update Options}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Syntax}} & {\bf{/update \textless{}Update1.msp\textgreater{}{[};Update2.msp{]}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} /p or /update & Applies update(s) \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{/uninstall} & Remove update(s) for a product \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.84609 cm} x{4.13091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Misc Options}} \tn % Row 0 \SetRowColor{LightBackground} /j & Advertises a product \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} /m & Generates an SMS status .mif file \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} /? or /h & Displays help \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} /z & Calls the system function DllUnRegisterServer to unregister modules passed in on the command line \tn % Row Count 7 (+ 3) % Row 4 \SetRowColor{LightBackground} /c & Advertises a new instance of the product \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} /n & Specifies a particular instance of the product \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.28942 cm} x{2.68758 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Examples}} \tn % Row 0 \SetRowColor{LightBackground} Basic Installation & msiexec /i A:\textbackslash{}Example.msi \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Installation \& Apply Patch & msiexec /i A:\textbackslash{}Example.msi PATCH=msipatch.msp \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} Installation Files & msiexec /a A:\textbackslash{}Example.msi \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} Installation with Transform & msiexec /i A:\textbackslash{}Example.msi /T transform.mst \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} Installation With Logging & msiexec /i A:\textbackslash{}Example.msi /LIME logfile.txt \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} 100\% Silent Installation & msiexec /i A:\textbackslash{}Example.msi /qn \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} Installation Only Showing Progress & msiexec /i A:\textbackslash{}Example.msi /qb \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} Uninstall Using Installer File & msiexec /x A:\textbackslash{}Example.msi \tn % Row Count 18 (+ 2) % Row 8 \SetRowColor{LightBackground} Uninstall Using Product Code & msiexec /x \{{\emph{Installed App's Product Code}}\} \tn % Row Count 21 (+ 3) % Row 9 \SetRowColor{white} Install \& Suppress Restart & msiexec /i A:\textbackslash{}Example.msi /norestart \tn % Row Count 23 (+ 2) % Row 10 \SetRowColor{LightBackground} Install \& Force Restart & msiexec /i A:\textbackslash{}Example.msi /forcerestart \tn % Row Count 25 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Correct Syntax Examples}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{msiexec /i msisample.msi /T transform.mst /qn} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{msiexec /i A:\textbackslash{}Example.msi \seqsplit{PATCH=msipatch.msp;msipatch2.msp} /qb} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{msiexec /x \{{\emph{Installed App Product Code}}\} /qn} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{msiexec /i msisample.msi PATCH=msipatch.msp /qb} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{msiexec /JM msisample.msi /T transform.mst /LIME logfile.txt} \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{More Information}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{For more information or details for the above items, run "msiexec /?" or visit \seqsplit{https://msdn.microsoft.com/en-us/library/aa367988(v=vs.85).aspx}% Row Count 3 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}