Delete a file using a .pkg file?

just want to ask if theres a script in order to delete a certain file automatically once a .pkg is installed

for example:
on game/BLES12345/idontlikethisfile.xml

i want to create a pkg file that makes the idontlikethisfile.xml to be deleted...
does it exist?
 
Im not sure about a pkg that would do it on install, But you could probably create a custom pkg that would delete a certain file each time the app is ran. Also not sure if this will help, but if you have webMAN Mod you could use your webbrowser to delete a file via webman, For example if you enter "http://127.0.0.1/delete.ps3/dev_hdd0/game/BLES12345/idontlikethisfile.xml" it will delete it, you could save that link as a bookmark if you need to do it more than once.
 
just want to ask if theres a script in order to delete a certain file automatically once a .pkg is installed

AFAIK the pkg doesn't let you delete files, but if the reason to delete it is to recover hdd space, you can replace the file with another of 0 byte.

To delete the file physically you can use the /delete.ps3 command as DeViL303 suggested, or use the XMB File Manager found in XMBM+ or in webMAN menu > Network Folders > System Files, navigate to the folder and press :but tri: to unlink the file.
 
just want to ask if theres a script in order to delete a certain file automatically once a .pkg is installed

for example:
on game/BLES12345/idontlikethisfile.xml

i want to create a pkg file that makes the idontlikethisfile.xml to be deleted...
does it exist?

It's possible with a package, I use it to clean some files after installation
You have to create your own eboot.bin with the webMAN updater sources
use this code
Code:
        sysLv2FsChmod("/dev_hdd0/game/BLES12345/idontlikethisfile.xml", 0777);
        sysLv2FsUnlink("/dev_hdd0/game/BLES12345/idontlikethisfile.xml");
 
Back
Top