Windows Installer Switches\ Deploying InfoPath 2007 Programmability Support (Part 2)
Posted
Monday, December 10, 2007 5:55 PM
by
Itay Shakury
This post is about installation switches available when running Windows Installer files.
So, in Part 1 we have created a .msp file that adds the Programmability support to InfoPath 2007. Great. As we went on and deployed it, we confirmed that when users start their computers, the installaion indeed started as expected.
The problem is, that this window has a "cancel" button, and some users innocently canceled the installation. Another problem is that the window itself might be intimidating of disturbing for some users.
Luckily the windows installer platform support some switching to handle this situations.
For our purpose we used the following syntax in the startup script "\\Share\InfoPathProgrammabilityInstall.msp /quite". The addition of the "/quite" switch ensured that this dialog was invisible to the user.
Here are some more useful switches (for the complete list click here) (This switches apply to any Windows Installer file, including msi,msp...):
Display Options: /quiet Quiet mode, no user interaction /passive Unattended mode - progress bar only /q[n|b|r|f] Sets user interface level n - No UI b - Basic UI r - Reduced UI f - Full UI (default) |
Restart Options: /norestart Do not restart after the installation is complete /promptrestart Prompts the user for restart if necessary /forcerestart Always restart the computer after installation |
Logging Options: /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile> i - Status messages w - Nonfatal warnings e - All error messages a - Start up of actions r - Action-specific records u - User requests c - Initial UI parameters m - Out-of-memory or fatal exit information o - Out-of-disk-space messages p - Terminal properties v - Verbose output x - Extra debugging information + - Append to existing log file ! - Flush each line to the log * - Log all information, except for v and x options /log <LogFile> Equivalent of /l* <LogFile> |