(Guide) How To Make A Custom Auto *Anything* Installer

Coro

Moderator
Developer
I have expanded the instructions provided by @lmn7 with his P3T Generator script to make it even easier to make your own Auto *ANYTHING* Installer. The scripts can install any files. You are not limted to installing HEN (but there is a size limit). I have also added some extra files to the zip that @lmn7 released (changelog below). I have included his original zip inside this version. The images below are not included in the zip file. Bookmark this page if you think you may need to see them later. The hex editor I use is HxD. You can get it here.

You can host your own installers on Github Pages or many other free hosts. They can also be hosted locally using a webserver on your phone or computer.

The following guide is also in the zip file.

--------------------

Using @lmn7's Auto Installer & P3T Generator Tools To Make A Your Own "Auto Installer"

Thanks to @lmn7 for sharing his installer and P3T generator scripts!

This tool REQUIRES Windows (because it uses a Windows Batch file).

This is the same installer used in the Auto HEN Installers. It is NOT limited to only installing HEN! Your PS3 must have HFW 4.84-4.88 to use any installers that you make. (If you are on CFW, you can replace the silk_webkit.sprx file in your flash with the one from 4.82 firmware in order to use any Auto Installers. Rebug 4.84 already includes the sprx file.)

This guide was written by @Coro. I also added files to the original release by @lmn7 and added instructions to help with customization. The original release by @lmn7 is included under the "files-templates" folder.

Change Log:

* "HEN.P3T" filename changed to "SETUP.P3T"
* Changed "Auto HEN" specific messages into generic ones. (i.e. "Installing HEN" was changed to "Installing files")
* Included "index.html" with buttons. (Originally in AutoHEN 4.87 release)
* Included "db.err" file to force rebuilding database on reboot. (Optional) (You may have to perform a database rebuild to see some changes. You can include the "db.err" file in your installer to force a database rebuild on reboot. The file must be placed under "dev_hdd0/mms" on the PS3.)

I do not know the maximum filesize of "SETUP.P3T". I have made some up to 85 megabytes that worked. I also made one that was 95 megabytes that did not work. So the limit is somewhere between 85 and 95 megabytes.

1. Copy Installation Files

Extract the ZIP file to a temporary folder. Open that folder and place your files under the "install" folder. Any files that are going to be installed on the hard drive should be placed under a folder named "dev_hdd0" under the "install" folder. Any files that are going to be installed to flash should be placed under a folder named "dev_blind" under the "install" folder. (Do not use "dev_rewrite" even though HEN does.)

You can NOT have any SPACES in file or folder names. Also, you can NOT create new files in flash (but you can overwrite a file that already exists in flash).

2. Run P3T Generator

Run the "P3T Generator.bat" file by double clicking on it. Press "Y" and then "Enter" to start. When it finishes, you should find two new files named "SETUP.P3T" and "stackframe.txt"

3. Edit The Installer

Select your preferred html installer from the "files-templates" folder. Copy the file to the "output" folder and rename it "index.html". (Version 1 is fully automatic and will start immediately when loaded. Version 2 has 2 buttons that must be clicked first. The buttons give your user a chance to read any instructions or warnings.)

Open the "index.html" file in a text editor. Change the value after "sf_swap_addr=" to the value at the one found top of the "stackframe.txt" file.

1.JPG

Copy the highlighted text in "stackframe.txt"...

2.JPG

...and paste it here in "index.html".

If you want your installer to work on a different firmware (besides 4.88), edit the version number at the end of the "index.html" file.

Optional Edits:
You do not need to make these edits. Your installer will work without them.

* Change "Custom Title" in the first line. (This is the WEB PAGE's title. Your users MAY NOT see it.)
* Change "Custom PS3 Installer for HFW" in the third line. (This is probably where you want to put your title.)
* Change "Initialization failed. Close the browser and try again."
* Change "Initializing... "
* Change "Installing files, please wait..."
* Change "Failed to load setup file. Close the browser and try again."
* Change "You must install Hybrid Firmware (HFW) 4.88 before using this installer!" near the end of the file. This message is displayed only if the firmware check fails.
* (v2 only) Change "Initialize" and "Install Files" near the beggining of the file. (This is the text displayed on the buttons.)

4. Using The Stackframe Converter

Copy everything starting from stack_frame_hookup() to the end of the file in "stackframe.txt". Paste it into the test_frame variable found near the end of the "stackframe_converter.html" file. Run "stackframe_converter.html" in your web browser on PC, copy the hex code shown on the page.

3.JPG

Copy all this text from "stackframe.txt"...

4.JPG

...and paste it where the arrow is pointing in "stackframe_converter.html".

5.JPG

Open the the browser by double clicking on "stackframe_converter.html". Double click on the numbers to select everything, then right click and select "Copy".

5. Add Stackframe To P3T File

Open "SETUP.P3T" in a hex editor. (I recommend HxD). Paste the hex code at the end of the file and save. Move the "SETUP.P3T" file to the "output" folder.

6.JPG

Make sure you paste on the side with numbers only (see arrow in image). Do not paste where the decoded data is shown (indicated by a X).

7.JPG

After pasting.

6. Finishing Up

Copy the three files from "output" and place them in the approriate folder for your web server. Your installer can be hosted locally or online. (Make sure the ".htaccess" file exists on your web server if your PS3 has problems downloading the "SETUP.P3T" file.)
 

Attachments

Last edited:
Feel free to ask any questions or post any files you feel may be useful!

I am using this HTML code below to detect firmware version and redirect automatically to the correct installer for each firmware. It also tells the user to turn on Javascript if it is turned off. The "meta name" and "style" tags help the page display properly.

Code:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
width: 800px;
max-width: 100%;
}
</style>
<script>
var ua = navigator.userAgent;
var fwVersion = ua.substring(ua.indexOf("5.0 (") + 19, ua.indexOf(") Apple"));
window.location.href = 'https://ps3addict.github.io/autohen/' + fwVersion + '/index.html';
</script>
</head>
<noscript>
You need to turn on Javascript before using the installer!
</noscript>
</html>

Just change "https://ps3addict.github.io/autohen/" to your own webpage address and make folders on the server named "4.88", "4.87", "4.86", "4.85", and "4.84". Put this code inside a new "index.html" in the root webserver folder. when someone loads that page in a PS3 browser, they will be redirected to the folder matching their firmware version. I copied the firmware selection code from files released with HEN/HAN and other parts from online tutorials and examples.
 
Last edited:
@Coro Please tell me which file to use in the topic. 1.Copy Installation Files. I tried everything but failed. Please tell me which files need to be placed in the ''Install'' folder, please tell me in detail please (I beg you from the bottom of my heart) :frown new:
 
Some how relevant question. Is there any guide like this, for installing to dev_flash on a cfw? How to create such a pkg
 
@Coro Please tell me which file to use in the topic. 1.Copy Installation Files. I tried everything but failed. Please tell me which files need to be placed in the ''Install'' folder, please tell me in detail please (I beg you from the bottom of my heart) :frown new:
the files needed are whatever files that you want to copy to the PS3's hard drive. this utility is used to make html-based installers/file copiers. it is used to make a HEN installer, but it can copy any files (only about 85 MB worth).
 
@Coro Can you tell me in detail? I'm trying to understand but I don't understand what you're explaining maybe because I'm a newbie but could you please elaborate? For example, the name of the file that must be placed in the ''Install'' folder. :frown new:
 
@Coro Can you tell me in detail? I'm trying to understand but I don't understand what you're explaining maybe because I'm a newbie but could you please elaborate? For example, the name of the file that must be placed in the ''Install'' folder. :frown new:
The files you place in the "install" folder are up to you, they are the files that will be written to the PS3 when you run your installer.
 
@Coso @lmn7 Why is my SETUP.P3T file only 12mb? while @Coro size 21mb
and i have tried it on the PS3 but not working.
I don't understand the meaning of this word (I have made some up to 85 megabytes that worked.)
What do I have to do next to get 21mb. :dread: :frown new:
 
@Coso @lmn7 Why is my SETUP.P3T file only 12mb? while @Coro size 21mb
and i have tried it on the PS3 but not working.
I don't understand the meaning of this word (I have made some up to 85 megabytes that worked.)
What do I have to do next to get 21mb. :dread: :frown new:
the Auto HEN installer includes a copy of the full hen pkg placed under dev_hdd0/packages. it will bring the total to 21 MB.
 
the Auto HEN installer includes a copy of the full hen pkg placed under dev_hdd0/packages. it will bring the total to 21 MB.
Am I creating the right file?
install/dev_hdd0/Latest_HEN_Installer_3.0.3_signed-488C.pkg , PS3HEN.BIN /packages Latest_HEN_Installer_signed.pkg
After my machine restarts nothing happens. (I'm sorry that you wasted too much time on me.:moody:)
 
Some how relevant question. Is there any guide like this, for installing to dev_flash on a cfw? How to create such a pkg


you can make zip files that install directly to the dev_flash I do this every time I update to apply my changes to my systems.
 
Some how relevant question. Is there any guide like this, for installing to dev_flash on a cfw? How to create such a pkg


you can make zip files that install directly to the dev_flash I do this every time I update to apply my changes to my systems.
 
you can make zip files that install directly to the dev_flash I do this every time I update to apply my changes to my systems.

Thanks, i had already made an installable zip file to use with multiman, or irisman. But i also liked to know how i could do it with the pkg method. and i made it, it was fine. i try to keep updated an older cfw, the last one that was made with the greek language and i managed to fix most of the issues, if not all. and i decided to share it with any other person that might like it.

So i thought that a pkg version of it, would be far easier to use than a zip file. Also more difficult to change any of its contents, to prevent an error.
 
Hi.
I get Microsoft VBScript runetime error file not found

<img src="https://kepkuldes.com/images/c552ebf60f2c4fc2bbdf8bdf9b20e764.png">

P3T.vbs creates but it's 750 bites....
stackframe.txt creates fine.

I'm on windows 7

Inside "P3T.vbs" 750 bite file:

Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
If WScript.Arguments(0) = "F" Then
Set oFile = FSO.GetFile(WScript.Arguments(1))
WScript.Echo Hex(oFile.Size)
ElseIf WScript.Arguments(0) = "D" Then
Set oDir = FSO.GetFolder(WScript.Arguments(1))
WScript.Echo Hex(oDir.Size+1)
ElseIf WScript.Arguments(0) = "R" Then
Set Stream = CreateObject("ADODB.Stream")
Stream.Open
Stream.Type = 2
Stream.Charset = "Windows-1252"
Stream.LoadFromFile WScript.Arguments(1)
data = Stream.ReadText
Stream.Close
data = Replace(data, vbCrLf, Chr(0))
Stream.Open
Stream.Type = 2
Stream.Charset = "Windows-1252"
Stream.WriteText data
Stream.SaveToFile WScript.Arguments(1), 2
Stream.Close
Set Stream = Nothing
End If
 
Last edited:
Hi.
I get Microsoft VBScript runetime error file not found

<img src="https://kepkuldes.com/images/c552ebf60f2c4fc2bbdf8bdf9b20e764.png">

P3T.vbs creates but it's 750 bites....
stackframe.txt creates fine.

I'm on windows 7

Inside "P3T.vbs" 750 bite file:

Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
If WScript.Arguments(0) = "F" Then
Set oFile = FSO.GetFile(WScript.Arguments(1))
WScript.Echo Hex(oFile.Size)
ElseIf WScript.Arguments(0) = "D" Then
Set oDir = FSO.GetFolder(WScript.Arguments(1))
WScript.Echo Hex(oDir.Size+1)
ElseIf WScript.Arguments(0) = "R" Then
Set Stream = CreateObject("ADODB.Stream")
Stream.Open
Stream.Type = 2
Stream.Charset = "Windows-1252"
Stream.LoadFromFile WScript.Arguments(1)
data = Stream.ReadText
Stream.Close
data = Replace(data, vbCrLf, Chr(0))
Stream.Open
Stream.Type = 2
Stream.Charset = "Windows-1252"
Stream.WriteText data
Stream.SaveToFile WScript.Arguments(1), 2
Stream.Close
Set Stream = Nothing
End If
are there any spaces in the file or folder names that you placed under "install" folder?
 
Hi guys, thanx for the tool, really usefull
1- is there any way to avoid the "reset" al the end of the installation ? (maybe a: just "O" to back to the menu)
2- can we install a hen with full support ("hybrid menu") in 'one-step', instead of two phases? (install package for pkg w/full features)
3- I can install files with this method, but hen, I tried the unofficial with full features but dont it doesn't work.
thanx guys
 
Back
Top