Hi thuun!
Great to see that you're posting new scripts but this app script will only work with PE XP, can you modify it to work in standard app script format?
Look here:
[process]
Echo,"Adding %Program%.."
unpack
ExtractAllFiles,"%ScriptFile%","RunScanr","%target_sys%"
hive_load,HKLM
reg_add,0x2,"%reg%\ControlSet001\Control\Session Manager\Environment","ProgramFiles","%SystemDrive%\%PE_Program%\%ProgramDir%"
hive_unload,HKLM
hive_load,HKU
reg_add,0x1,"%reg%\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open %Program%\command","","%SystemDrive%\%PE_Program%\%ProgramDir%\%ProgramExe%"
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","",%SystemDrive%\%PE_Program%\%ProgramDir%\%ProgramExe%"
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","Path","%SystemDrive%\%PE_Program%\%ProgramDir%"
reg_add,0x1,"%reg%\CCleaner","UpdateCheck","0"
reg_add,0x1,"%reg%\CCleaner","","%SystemDrive%\%PE_Program%\%ProgramDir%"
hive_unload,HKU
hive_load,HKCU
reg_add,0x1,"%reg%\Software\VB and VBA Program Settings\CCleaner\Options","MSG_CONFIRMCLEAN","False"
hive_unload,HKCU
Add_ShortcutThis code was not tested but I hope it can be used as base for your work, inside bartPEcore you can write the Add_Shortcut function to work exclusively with either XPE or NU2MENU - this only requires editing api.script inside your project and all other app scripts will also work there as well.