I want to give a hint to write scripts running with XP SP2 source as well as with W2003 R2 as source.
Both sources are not longer the primary version but have service packs. As explained in one of my Mouse Posts:
If you develop with XP as souce and use sp2.cab, at a different PC using W2003 as source the script will not run.In the first version MS operating systems like XP and W2003 contain a file "Driver.cab" which contains a lot of drivers in compressed form.
When adding a service pack, an additional cab is added, usually called sp<N>.cab, where <N> is the number of the service pack.
Then some of the files inside driver.cab are obsolete and to be replaced by the sp<N>.cab files.
ToDo: Whenever you want to write
ShellExecute,"hide","expand.exe","#$q%SourceDir%\I386\SP1.CAB#$q -F:MyFile #$q%TargetDir%\i386\system32#$q"write instead:
IniRead,"%ProjectInfo%","Cabs","SP_CAB","%spFile%" IniRead,"%ProjectInfo%","Cabs","DR_CAB","%drFile%" If,"%spFile%",NotEqual,"",Run,%ScriptFile%,try-sp If,NotExistFile,#$q%TargetDir%\i386\system32\drivers\MyFile#$q,ShellExecute,"hide","expand.exe","#$q%SourceDir%\I386\%drFile%#$q -F:MyFile #$q%TargetDir%\i386\system32\drivers#$q" [try-sp] If,ExistFile,"%SourceDir%\I386\%spFile%",ShellExecute,"hide","expand.exe","#$q%SourceDir%\I386\%spFile%#$q -F:MyFile #$q%TargetDir%\i386\system32\drivers#$q"
Peter