Hi Siginet, really happy to see you still active with your projects
WinNT6.x True Integrator (uses a code a little old, never had the time to update it ehhhh,
but it works very well) is much more advanced about the entries.ini, it supports everything, every possible scenario, send me a PM with adddon for example, to understand more exactly what you want to do them, or what will the addon in Windows NT5.x 2000/XP/2003, and see do just the same in Windows NT6.x Vista\Seven\8\Next, as said the WinNT6.x True Integrator is very advanced in this respect, because it uses structures of Inf Setup, so there nothing there that you can not do
for example about the [DirMove] you can use the ProcessesToRunBeforeIntegration or ProcessesToRunAfterIntegration (like inf RunPreSetupCommand and RunPostSetupCommand)
;;AddOn ExtractDir = %SourceFiles%
;;%SystemDriver% or MountDir = %24%
;;because are working in OfflineMod, every dirid always refers to %SystemDriver% = MountDir, so the %11% is always = MountDir\Windows\System32
[ProcessesToRunBeforeIntegration]
cmd.exe /c MOVE /Y """%SourceFiles%\OEM\*""" """%24%\OEM"""
however, it is best to use the [Global OffLine Changes.Install], since the WinNT6.x True Integrator supports the removal
Code: Select all
[GlobalOffLineChanges.Install]
RunPostSetupCommands = AddAddOn.RunPostSetupCommands
[GlobalOffLineChanges.Uninstall]
RunPostSetupCommands = DelAddOn.RunPostSetupCommands
[AddAddOn.RunPostSetupCommands]
;;do something
[DelAddOn.RunPostSetupCommands]
;;do something
;;[GlobalOffLineChanges.Install]
;; CopyFiles = OCName.CopyFiles
;; ReplaceFilesIfExist = OCName.ReplaceFilesIfExist
;; DelFiles = OCName.DelFiles
;; RenFiles = OCName.RenFiles
;; DelDirs = OCName.DelDirs
;; AddReg = OCName.AddReg
;; DelReg = OCName.DelReg
;; Ini2Reg = OCName.Ini2Reg
;; RunPreSetupCommands = OCName.RunPreSetupCommands
;; RunPostSetupCommands = OCName.RunPostSetupCommands
;; UpdateInis = OCName.UpdateInis
;; UpdateIniFields = OCName.UpdateIniFields
;; UpdateIniFiles = OCName.UpdateIniFiles
;;
;;[DestinationDirs]
;; OCName.CopyFiles = 11
;; OCName.ReplaceFilesIfExist = 10, "System32"
;; OCName.DelFiles = 24
;; OCName.RenFiles = 16422
;;
;;[SourceDisksNames]
;; 1="OCName Files","WIN51",,""
;;
;;[SourceDisksFiles]
;; Filename.exe=1
;; Filename.dll=1
;; Filename.txt=1
;; Filename.ini=1
;;
;;[OCName.CopyFiles]
;; Filename.exe,,,32
;;
;;[OCName.ReplaceFilesIfExist]
;; Filename.ini,,,32
;;
;;[OCName.DelFiles]
;; Filename.dll
;;
;;[OCName.RenFiles]
;; NewFilename.txt, Filename.txt
;;
;;[OCName.DelDirs]
;; %11%\subdir1\subdir2
;;
;;[OCName.AddReg]
;; HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\%GUID%",,,"My Component"
;;
;;[OCName.DelReg]
;; HKLM,"SOFTWARE\Microsoft\Active Setup","SteppingMode","Y"
;;
;;[OCName.Ini2Reg]
;; %10%\file.ini,iniSection,,HKLM,subkey
;;
;;[OCName.RunPreSetupCommandsSection]
;; calc.exe
;;
;;[OCName.RunPostSetupCommandsSection]
;; DelFile %10%\inf\inseng.dll
;;
;;[OCName.UpdateInis]
;; %11%\file.ini,iniSection
;;
;;[OCName.UpdateIniFields]
;; %10%\file.ini,iniSection,profile
or if you want to customize the entire process (which is what I recommend in this case), then uses a structure of true addon, so from your inf after doing everything you want
Code: Select all
;;entrires.ini
[SysPrepOC]
Nstall=advpack.dll,LaunchINFSection,Nstall.inf,Nstall
[ProcessesToRunBeforeIntegration]
cmd.exe /c MOVE /Y """%SourceFiles%\OEM\*""" """%10%\OEM"""
;;Nstall.inf
[Version]
signature="$Windows NT$"
[Nstall]
RunPreSetupCommands = Nstall.RunPreSetupCommands
[Nstall.RunPreSetupCommands]
;;do something
;;example %10%\OEM\Nstall.exe /Nstall ect ect ect
also creates a IniEdit.exe (or better to say Nstall.exe /IniEdit support) that will work on the command line, and then do whatever you want them, change all *.ini or do other in a personalized way ect ecct
Ciao.