4.3.4 PROGRAMS.INF Example

The following is an example of the Programs.INF file format.

 [Version]
 Signature=$Chicago$
 AdvancedINF=2.5
  
 [DefaultInstall]
 RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
 CustomDestination=CustInstDestSection
 AddReg=AddReg.Hkcu,AddReg.Hklm
  
 [IeakInstall.Hkcu]
 RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
 CustomDestination=CustInstDestSection
 AddReg=AddReg.Hkcu
  
 [IeakInstall.Hklm]
 RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
 CustomDestination=CustInstDestSection
 AddReg=AddReg.Hklm
  
 [CustInstDestSection]
 49000,49001,49002,49003=ProgramFilesDir,21
 49100,49101,49102,49103=IEDir,21
  
 [ProgramFilesDir]
 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir",,"%24%\Program Files"
  
 [IEDir]
 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\iexplore.exe","Path",,"%49001%\Internet Explorer"
  
 [AddReg.Hklm]
 HKLM,"Software\Clients\Calendar",,,"Microsoft Outlook"
 HKLM,"Software\Clients\Contacts",,,"Microsoft Outlook"
 HKLM,"Software\Clients\Mail",,,"Microsoft Outlook"
 HKCR,"mailto",,,"URL:MailTo Protocol"
 HKCR,"mailto",URL Protocol,,""
 HKCR,"mailto",EditFlags,1,02,00,00,00
 HKCR,"mailto\DefaultIcon",,,"C:\PROGRA~2\MICROS~2\Office14\OUTLOOK.EXE,-9403"
 HKCR,"mailto\shell",,,"open"
 HKCR,"mailto\shell\open\command",,,""C:\PROGRA~2\MICROS~2\Office14\OUTLOOK.EXE" -c IPM.Note /m "%1""
  
 [AddReg.Hkcu]
 HKCU,"Software\Microsoft\Internet Explorer\Main",Check_Associations,,"yes"
 HKCU,"Software\Microsoft\Internet Explorer\Default HTML Editor",Description,,"Notepad"
 HKCU,"Software\Microsoft\Internet Explorer\Default HTML Editor\shell\edit\command",,,"%11%\NOTEPAD.EXE %1"