[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
** UPDATE: The VIP+bengalih RAW AutoInstaller has been deprecated. This post remains for historical purposes. For the replacement application, see SASHIMI in the next post! **​

VIP+bengalih

RAW AutoInstaller

​

Introducing the new VIP+bengalih RAW AutoInstaller, a MortScript based application to help automate configure a newly provisioned device!​

What is RAW?

RAW is "uncooked", or rather suitable for use on uncooked, stock, or lite ROMs. It helps users who would prefer to install all of their own apps an easy semi-automated way to do it. Of course it can be be used on cooked ROMs too, we sushi chefs like to share!​

FEATURES

:

Automated install of .CABS, .REG files, and MortScripts

Manual install of selected .CABS to Storage Card

Importation of directory structures from Storage Card to main memory.

This application is the work of v3patel (VIP) and bengalih.

v3patel's orignal script, "vip_fresh_install v 1.zip" can be found here.

bengalih took the basic code structure, modified and added to it to make it more streamlined, intuitive, and user friendly for suitable use as a RAW AutoInstaller.​

At first the RAW AutoInstaller might look complex, but it is actually quite easy and intuitive!​

Let's start by looking at how to install:​

Step One - Installing the program

Copy the VIP + Bengalih RAW AutoInstall.cab over to your device.​

Run the .CAB on your device and choose to

INSTALL TO STORAGE CARD

​

On your Storage Card you should now see a directory in the root called \RAW AutoInstaller​

Navigate inside of the directory.​

Only perform this next procedure if you do not already have MortScript installed and associated to run .mscr files. If you have MortScript already installed, skip to the next step.​

Navigate inside the \Bin directory and run MortScript.exe​

You will see a dialog telling you MortScript is registered. Click OK.​

Congratulations, you have completed installation!

Step Two - Getting to know the program

​

Learning how to use RAW AutoInstaller is as simple as understanding its directory structure. Let's look at it now:​

Navigate back to \Storage Card\RAW AutoInstaller.​

You will see the AutoInstall script as well as the following directories:​

Auto​

Bin​

Manual​

Root​

Scripts​

Let's talk about what goes in each of these directories:

Auto​

Inside the Auto directory are two subdirectories, \CAB and \REG. Any .CABs you want installed automatically when the script runs, place in the \CAB directory. Any .REG files you want imported automatically when the script runs, place in the \REG directory.​

Bin

This is where the supporting files for the application reside. It's probably a good idea not to touch these.​

Manual

This directory is just like the \Auto directory in structure, except files placed within its \CAB and \REG directories won't be automatically installed. You will be prompted to execute each one at runtime.​

Root

The \Root directory is like an image of the \Root of your device main memory. Any folders you place in here will be copied to the device's \Root. You will be prompted for each directory at runtime. So, for example, you can place a folder called \RingTones here and then it can be copied to \RingTones in your main memory.​

Scripts

You can place additional MortScript files here that will be automatically run during install.

That's it...it's really simple!

One other cool feature is that in addition to putting .REG and .MSCR files in the directories listed above you can name them the same as a .CAB and bundle them with the .CAB directory to be executed along with the install.

So, for example if I have a .CAB called HelloWorld.CAB in either the \Manual\CAB or \Auto\CAB directory, I can place a file called HelloWorld.reg or HelloWorld.mscr in the directory with the .CAB. When the program installs, it will also run the script and import the registry file!​

To help you get the hang of it, I have included some sample files in these directories already. Let's walk through a sample AutoInstall:

Step Three - Sample Install Run

To run through a sample install simply do the following:​

Run AutoInstall​

A prompt will come up asking if you wish to continue. Double-tap YES​

The Manual Install Phase will start, enumerating all .CABS in the \Manual\CAB directory and asking if you want to install each one. You can click Yes, in which case it will then prompt for an install location; No, in which case it will move to the next file; or Cancel, which will exit the program. Let's click Yes and then choose to install to \Storage Card.​

You will then see a sample script pop-up. This is an example of a .mscr bundled with a .CAB file as mentioned at the end of Step Two. Click OK to close the script.​

You will then feel a quick vibrate. This is the .CAB's bundled .REG file being silently imported.​

Next you will prompted to install the sample .REG file from \Manual\REG. Click Yes to import it.​

After all Manual .CABs and .REGs have been installed, it will prompt to move over the \Root structure. Click Yes to copy over \Program Files​

Now the Automated Install Phase will start, you will feel some quick vibrates. These vibrates are to let you know that .CAB and .REG files are being run in the background. Each one does a 100ms vibrate to let you know that things are still going on, even though you can't see them!​

After all automated .CABs and .REGs run, the \Scripts folder gets processed. You will see another message pop up from the sample script in this location. Click Ok.​

You will be asked to reset the device. You can click NO or wait

10 seconds and it will reboot automatically.​

The AutoInstall is now complete. Let's check some file and registry entries to see if everything installed properly!

The following should exist if you followed the instructions in Step Three:

\Storage Card\Program Files\VIP + Bengalih\Manual Install CAB Test\ManualInstallOK.txt​

\Program Files\VIP + Bengalih\Auto Install CAB Test\AutoInstallOK.txt​

\Program Files\AutoInstall Test\DirCopyTest.txt​

HKLM\Software\VIP-Bengalih\RAW AutoInstaller\Test\AutoCheck - OK​

HKLM\Software\VIP-Bengalih\RAW AutoInstaller\Test\ManualCheck - OK​

HKLM\Software\VIP-Bengalih\RAW AutoInstaller\Test\CAB Registry - OK​

Once you've double checked everything is where it should be you can delete all of the above as well as the sample files from within the \Storage Card\RAW AutoInstaller directory structure.​

Now all that's left is to put your own .CAB applications, .REG files, and .MSCR scripts into the proper directories and run it for yourself!

enjoy!

IMPORTANT NOTE: When using this or any other AutoInstaller be sure to set your device to

Disable Security Warning for Unsigned CABs

. You can find out how to perform this registry tweak in the main guide at the beginning of this thread.
​