Complete Advanced INF


[Version]
Signature=$CHICAGO$
AdvancedINF=2.5,%BadAdvpackVer%

[SourceDisksNames]
10="testDisk",,0

[SourceDisksFiles]
newfile.txt=10
inseng.dll=10
adv.inf=10

[DefaultInstall]
;existing gen install INF options
Copyfiles=CopyFilesSection
RenFiles=RenFilesSection
DelFiles=DelFilesSection
UpdateInis=UpdateInisSection
UpdateIniFields=UpdateIniFieldsSection
AddReg=AddRegSection
DelReg=DelRegSection
Ini2Reg=Ini2RegSection
UpdateCfgSys=UpdateCfgSysSection
UpdateAutoBat=UpdateAutoBatSection

;advanced INF options
RequiredEngine=[SETUPAPI|SETUPX],%BadSetupEngineVer%
CustomDestination=CustomDestinationSection
RegisterOCXs=RegisterOCXsSection
UnregisterOCXs=RegisterOCXsSection
BeginPrompt=BeginPromptSection
EndPrompt=EndPromptSection
RunPreSetupCommands=RunPreSetupCommandsSection
RunPostSetupCommands=RunPostSetupCommandsSection
SmartReboot=[I|A|N]
DelDirs=DelDirsSection
Cleanup=1
CheckAdminRights=[1|0]

;advanced INF options needed for save/rollback only
ComponentName=%Name%
ComponentVersion=4.0
BackupReg=BackupRegSection
PreRollBack=GenInstallSection  ;optional parameter
BackupPath=%49000%\%UninstallData%  ;optional

;Per User install options
PerUserInstall=PerUserInst

[PerUserInst]
DisplayName=%WebInteg%
Version=5.0.0311.0
IsInstalled=[1==installed|0==uninstalled]
ComponentID=IE4Shell_WIN ;ComponentID in ActiveSetup .CIF file
GUID={89820200-ECBD-11cf-8B85-00AA005B4395}
Locale=en
StubPath=rundll32.exe advpack.dll,LaunchINFSectionEx %17%\inst.inf,InstSec,,36

[DestinationDirs]
CopyFilesSection=11
DelFilesSection=17
RenFilesSection=17

[CustomDestinationSection]
49000,49012,49011,49010=DestA,1

[DestA]
HKLM,SOFTWARE\Test,TestLoc,"%Prompt1%",%17%
;HKLM,SOFTWARE\test2,"Blah",'%Prompt2%',"c:\test"
;HKLM,SOFTWARE\Microsoft\test3,,'%Prompt3%',"%11%"

[RegisterOCXsSection]
@%inat%
%11%\textfxr.ocx
%11%\inseng.dll
%11%\adesktop.dll
%11%\shdocvw,I,shell
or
%11%\shdocvw,I,web

[AddRegSection]
HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\%GUID%",,,"My Component"
HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\%GUID%","IsInstalled",1,01,00,00,00
HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\%GUID%","Version",,"4,72,1605,0"

[DelRegSection]
HKLM,"SOFTWARE\Microsoft\Active Setup","SteppingMode","Y"

[DelDirsSection]
%49000%\subdir1\subdir2

[RunPreSetupCommandsSection]
calc.exe

[RunPostSetupCommandsSection]
DelFile c:\windows\inf\inseng.dll

[BeginPromptSection]
Prompt=%BeginPrompt%
ButtonType= [YES/NO|OK/CANCEL]
Title="Test INF Install"

[EndPromptSection]
Prompt=%EndPrompt%

[CopyFilesSection]
inseng.dll,,,16
adv.inf

[RenFilesSection]
newfile.txt,oldfile.txt

[DelFilesSection]
oldfile.txt,,,1

[UpdateInisSection]
win.ini,iniSection

[UpdateIniFieldsSection]
system.ini,iniSection,profile

[Ini2RegSection]
system.ini,iniSection,,HKLM,subkey

[UpdateCfgSysSection]
Buffers=40

[UpdateAutoBatSection]
TmpDir=C:\Temp

[BackupRegSection]
HKLM,"SOFTWARE\Microsoft\Active Setup"

[GenInstallSection]
AddReg=NewGenAddRegSection
DelReg=NewGenDelRegSection

[Strings]
BadAdvpackVer="Incorrect version of advpack.dll. Please get new version from our web site."
BadSetupapiVer="Setupapi.dll is required to install on this system."
BadSetupEngineVer="Advpack.dll is required to install on this system."
BeginPrompt="Are you sure you want to proceed with install?"
EndPrompt="Install has completed successfully. NEW"
Prompt1="1: IS App's location right?"
Prompt2="2: Where would you like to install?"
Prompt3="3: Where would you like to go today?"
UninstallData="Uninstall Information"
GUID="MyGuid"