set,%w%,%TempFolder%\Klite.scriptIf,ExistFile,%w%,FileDelete,%w%FileCreateBlank,%w%TXTAddLine,%w%,[RegKlite],AppendTXTAddLine,%w%,"Set,#$pKliteValue#$p,file:///%PE_Programs%/%ProgramFolder%/Icaros/IcarosPropertyHandler.DLL",AppendTXTReplace,%w%,\,/TXTAddLine,%w%,"RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{0C08E2BB-D10B-4CC9-B1B3-701F5BE9D6EC}\InprocServer32,CodeBase,#$pKliteValue#$p",AppendTXTAddLine,%w%,"RegWrite,HKLM,0x1,Tmp_Software\Classes\CLSID\{0C08E2BB-D10B-4CC9-B1B3-701F5BE9D6EC}\InprocServer32\2.2.1.0,CodeBase,#$pKliteValue#$p",AppendRun,%w%,RegKlite
particularly since pe_programs would have a \ in the way.
My Question was in regards that %PE_PROGRAMS% would point to either y:\programs or x:\program files, when the line should be y:/programs or x:/program files.
Another way:With %ProgramFolder%=K-Lite Codec Pack==StrFormat,Replace,%PE_Programs%,\,/,%t%RegWrite,HKLM,0x2,Tmp_Software\Classes\CLSID\{0C08E2BB-D10B-4CC9-B1B3-701F5BE9D6EC}\InprocServer32,CodeBase,"file:///%t%/%ProgramFolder%/Icaros/IcarosPropertyHandler.DLL"RegWrite,HKLM,0x2,Tmp_Software\Classes\CLSID\{0C08E2BB-D10B-4CC9-B1B3-701F5BE9D6EC}\InprocServer32\2.2.1.0,CodeBase,"file:///%t%/%ProgramFolder%/Icaros/IcarosPropertyHandler.DLL"