PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Titan Development (http://forum.ppcgeeks.com/forumdisplay.php?f=57)
-   -   AutoInstall Program (w/ Silent cab install) (http://forum.ppcgeeks.com/showthread.php?t=20753)

plenTpak 03-10-2008 06:09 PM

AutoInstall4 (auto cab install, copy files, import .reg, run scripts)
 
2 Attachment(s)
AutoInstall4

Hello,

I made this so that I could easily install all my programs after each rom update or whatnot without needing to edit any text files or anything... you just move whatever install files you want into or out of the "Installers" directory, and it'll install those programs. Cab files install silently to the default location (usually the phone storage). It'll run other file types too, like jar files (e.g. to autoinstall opera mini).

You can do other stuff with your phone while your programs are installing, and it won't reboot without confirmation from you first. Another plus is that you can uninstall the installed programs from the "Remove Programs" list.

Hope this makes things easier for some people!

---

Usage instructions:

1. Unzip the contents of AutoInstall.zip to \Storage Card\AutoInstall\

2. Place any files you want run in \Storage Card\AutoInstall\Installers\
(Files will be run in alphabetical order. MortScript files can be placed here too!)
3. Place any files you want copied into \Storage Card\AutoInstall\Files\
examples:
\Storage Card\AutoInstall\Files\example.txt will be copied to \example.txt
\Storage Card\AutoInstall\Files\Windows\Rings\ring.mp3 will be copied to \Windows\Rings\ring.mp3
\Storage Card\AutoInstall\Files\Windows\Theme.tsk will be copied to \Windows\Theme.tsk
4. Place any .reg files (smaller than 512KB!) you want imported into the registry in \Storage Card\AutoInstall\Registry Settings\
5. Place any MortScript files you want run in \Storage Card\AutoInstall\Scripts\
(Scripts will be run in alphabetical order)

6. Run AutoRun.exe after you flash a new ROM or whenever you want to install all the programs in \Storage Card\AutoInstall\Installers\
(Note: You can actually unzip AutoInstall.zip anywhere you want, as long as you leave \Installers\ and \Files\ and \Registry Settings\ and \Scripts\ in that directory.)

---

Note: I haven't tested everything thoroughly, so you may experience some problems. Let me know about any bugs you find! (The .reg import seems to have trouble with some large binary values)

AutoInstall3: Fixed some .reg import issues: Escaped strings now import properly; semi-working workaround for binary values >1k.

AutoInstall4: Files and Scripts are run in alphabetical order. Scripts in the "Installers" directory are run, too.

muyoso 03-10-2008 07:15 PM

Re: AutoInstall Program (w/ Silent cab install)
 
That is exactly what I was looking for. Hope it works well. Wish it could also register all of my apps as well, but now im just being greedy. Thanks a bunch.

nickm 03-10-2008 08:37 PM

Re: AutoInstall Program (w/ Silent cab install)
 
will it copy files and folders to the root directory also? I have a number of short cuts that I copy to the startup folder...

Thanks for your work

plenTpak 03-11-2008 12:35 AM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by nickm (Post 211099)
will it copy files and folders to the root directory also? I have a number of short cuts that I copy to the startup folder...

Thanks for your work

It doesn't, but I had actually made another script to do that. I'll clean it up for general use and update the zip file with that tonight. Actually I'll have to do it later, sorry.. something came up.

stroths 03-11-2008 07:20 AM

Re: AutoInstall Program (w/ Silent cab install)
 
It's actually really easy to do with mortscript. I created a mortscript similar to nickm's a while back and also setup a file copy.

xCopy "\Storage Card\Boot\Files\*.*", "\", 1, 1

Of course you would need to change the path. Basically, it will do a recursive copy of any files and directories to the root directory. This requires that you have the files you want copied over exactly as they appear in your main memory.

plenTpak 03-11-2008 02:26 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Updated with file copying.

Yeah, stroths' description is pretty much the same way I did it. You can always edit the script to your own liking, but this is what I have, so you can use it as is or modify it to your liking.

Hope it helps!

sanjsrik 03-11-2008 02:37 PM

Re: AutoInstall Program (w/ Silent cab install)
 
I just used my activesync connection, checked the boxes of the applications I wanted installed on my phone and clicked ok.

it reinstalled all my applications one after another.

Shiva 03-11-2008 02:40 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Nice!

Two questions:

Can the install cabs be in sub-folders within the Installers folder? (e.g. Installers\Games, Installers\Utilities, etc.)

Is there a way to get it to install in a particular order? (e.g. install RescoExplorer.cab first, then install RescoRegistryAddOn.cab)

plenTpak 03-11-2008 07:55 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by Shiva (Post 212204)
Nice!

Two questions:

Can the install cabs be in sub-folders within the Installers folder? (e.g. Installers\Games, Installers\Utilities, etc.)

Is there a way to get it to install in a particular order? (e.g. install RescoExplorer.cab first, then install RescoRegistryAddOn.cab)

At this time, cabs only install from the Installers folder, not from sub-folders... and they install alphabetically (I think =P) so if you just order the cab names alphabetically, that should work....

OmarBadu 03-11-2008 09:34 PM

Re: AutoInstall Program (w/ Silent cab install)
 
just used this - LOVE IT

heystek 03-11-2008 09:52 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Nice work! This will help out alot.

mstevens 03-12-2008 01:01 AM

Re: AutoInstall Program (w/ Silent cab install)
 
I'll definitely be playing with this. Before I do, I'm wondering if it just runs the .cabs in series, leaving me to click the radio buttons about whether I want to install to the device or to the storage card, then clicking OK when done, or whether it just installs everything to the device?

plenTpak 03-12-2008 02:32 AM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by mstevens (Post 213394)
I'll definitely be playing with this. Before I do, I'm wondering if it just runs the .cabs in series, leaving me to click the radio buttons about whether I want to install to the device or to the storage card, then clicking OK when done, or whether it just installs everything to the device?

Hello,

It doesn't ask for the location, it just installs everything to the device, without you needing to click OK for each cab file.

trev913 03-12-2008 02:41 AM

Re: AutoInstall Program (w/ Silent cab install)
 
Great stuff man. I'm sure this will come in handy somewhere down the line. :-)

InvincibleLiving 03-12-2008 03:53 PM

Re: AutoInstall Program (w/ Silent cab install)
 
yes this really does simplify alot of UC, especially now that you added copy functionality... great work!

So is it possible to write a stand alone version that will silently install files directly to the storage card using the same method? i'm starting to catch onto this concept, but i dont understand why it's limited to installing to device only.

plenTpak 03-12-2008 04:39 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by nautica2450 (Post 214657)
yes this really does simplify alot of UC, especially now that you added copy functionality... great work!

So is it possible to write a stand alone version that will silently install files directly to the storage card using the same method? i'm starting to catch onto this concept, but i dont understand why it's limited to installing to device only.

As far as I can tell, there's no way to automatically install cab files to a different location like the storage card, unless the cab file explicitly specifies the storage card as an install location... it looks like Microsoft took out that functionality since WM5 for who knows what reason. D:

fryguy1 03-12-2008 07:23 PM

Re: AutoInstall Program (w/ Silent cab install)
 
I thought I read somewhere on here that you can use a program to modify the CAB file to install to storage card. I will have to find that again, as I found out that almost everything on my card has to be reinstalled after each hard reset or rom change. I was hoping that all I needed was the shortcuts.

InvincibleLiving 03-12-2008 07:30 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by fryguy1 (Post 215036)
I thought I read somewhere on here that you can use a program to modify the CAB file to install to storage card. I will have to find that again, as I found out that almost everything on my card has to be reinstalled after each hard reset or rom change. I was hoping that all I needed was the shortcuts.

Oh you go find that post now fryguy, NOW!! lol

Not that i've started using it yet, but i switched from sbp backup to Sprite backup (6.10) for this exact reason... it now has a feature that allows you to restore backups even after Rom upgrades and reflashes.... should take alot of the legwork out of these contstant upgrades... I'll truly be happy when i have a 'one touch' solution for reinstating my settings, customizations and setups....

fryguy1 03-12-2008 07:43 PM

Re: AutoInstall Program (w/ Silent cab install)
 
I think it might have been the WinCE Cab Manager.

http://www.ocpsoftware.com/download.php?nm=cecabmgr

But I cant seem to find the thread on this. I'm gunna try this but don't have much time now. If anyone tries let me know if it work and is easy.

InvincibleLiving 03-12-2008 08:00 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Bingo, i think this is doable. Taken from the site....:headbang:

WinCE CAB Manager Features
Open Existing Cabinet Files
Open any Windows CE CAB file, as well as Smartphone and Pocket PC theme files.
Create New Cabinet Files
Allows you to create a brand-new CAB file, add the Windows CE files, shortcuts and registry entries needed to install your application, and then save the new CAB file to disk.
Modify Cabinet Information
View and modify general information about the Windows CE CAB file, such as the name of the company and of the application, processor and operating system version required to run the application, and the default installation directory.
Modify Windows CE File Entries
The Windows CE files stored in a CAB file can be viewed and modified, and new files can be added. You can change the order in which the files will be installed, the location where each file will be installed, and more.

stroths 03-12-2008 08:49 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by nautica2450 (Post 215097)
Bingo, i think this is doable. Taken from the site....:headbang:

WinCE CAB Manager Features
Open Existing Cabinet Files
Open any Windows CE CAB file, as well as Smartphone and Pocket PC theme files.
Create New Cabinet Files
Allows you to create a brand-new CAB file, add the Windows CE files, shortcuts and registry entries needed to install your application, and then save the new CAB file to disk.
Modify Cabinet Information
View and modify general information about the Windows CE CAB file, such as the name of the company and of the application, processor and operating system version required to run the application, and the default installation directory.
Modify Windows CE File Entries
The Windows CE files stored in a CAB file can be viewed and modified, and new files can be added. You can change the order in which the files will be installed, the location where each file will be installed, and more.

I use WinCE Cab Manager regularly and it will allow you to change the default install location. However, its about $100 for the software.

fryguy1 03-12-2008 10:29 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Well I think that is more than what I'm willing to spend for what I need it for....Any cheaper ways to do it?

sherv 03-13-2008 09:01 AM

Re: AutoInstall Program (w/ Silent cab install)
 
Wow, thanks for this proggie!!

1oddmanout 03-13-2008 11:05 AM

Re: AutoInstall Program (w/ Silent cab install)
 
This program works great. Thanks!

InvincibleLiving 03-13-2008 12:00 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by fryguy1 (Post 215360)
Well I think that is more than what I'm willing to spend for what I need it for....Any cheaper ways to do it?

yes... we just need to learn what they did and do it for free?:twisted:

no really i'm sure there is an alternate way to do this... i'm not giving up just yet.

mstevens 03-13-2008 03:31 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by plenTpak (Post 213507)
It doesn't ask for the location, it just installs everything to the device, without you needing to click OK for each cab file.

Bummer. I prefer to install to the SD card unless the program requires installation on the device or affects the Today screen.

TurboFool 03-13-2008 03:53 PM

Re: AutoInstall Program (w/ Silent cab install)
 
I just tried this application for the first time today, and it appeared to do nothing. Popped up asking me if I wanted to run it, then no installers ran. When was this most recently updated (if at all)?

plenTpak 03-13-2008 04:47 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by TurboFool (Post 216496)
I just tried this application for the first time today, and it appeared to do nothing. Popped up asking me if I wanted to run it, then no installers ran. When was this most recently updated (if at all)?

I revised it twice, once in the older thread, and once in this thread. Sounds like you might have gotten the very first version I posted, in which I had left a bug. D: The one in this thread should always have worked though, and I think it was last revised....... 03-11-2008 at 11:17 AM.

stroths 03-13-2008 08:34 PM

Re: AutoInstall Program (w/ Silent cab install)
 
If you want to get fancy, you could set it up to run automatically on boot. You need to create a folder on the SD card called 2577. You would then put your mortscript.exe, autorun.exe and autorun.mscr in that same folder. WM will automatically run the autorun.exe everytime you boot and anytime you insert the sd card. Here is my autorun.mscr and you will see how I got around it popping up a run dialog all the time. Note that I use mine to run tiermann autoinstaller, but you can modify to your needs.

My autorun.mscr

Code:

If ( RegValueExists("HKLM", "Comm", "NoRun") )
    Exit
EndIf

If (Question("Do you want to run Tiermann Autoinstall?","Install programs","OkCancel")=CANCEL)
    Message ("You will not be asked again.")
    RegWriteString("HKLM", "Comm", "NoRun", "NoRun")
    Exit
EndIf

RegWriteDWord("HKLM", "Comm", "AutoRunFlag", "0")
RegWriteString("HKLM", "Comm", "AutoRunCFG", "\Storage Card\2577\TAutoInstall\Config.txt")
RegWriteString("HKLM", "Comm", "AutoRun", "\Storage Card\2577\autorun.exe")

Run("\Storage Card\2577\TAutoinstall\tautoinstall.exe")

This script runs on every boot, but first looks for a registry key. If it doesn't exist, it will ask you if you want to run the installer. If you select no, it writes the key which prevents the popup on future boots.

opuscroakus 03-14-2008 04:44 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Ran this today after flashing to the latest No2Chem Rom and it only installed half of the items in the installers folder and didn't copy anything from the files folder. Reflashed and just tried installing and it again only installed half. Installed the rest manually and then had it copy the files. It copied the files, rebooted and proceeded to lock up at the today screen. Reflashed, reran, installed manually disabled ALL today plugins and then had it copy files. This finally worked.

Never could get it to install all the cabs and each time it was a little different as to what was installed.

plenTpak 03-14-2008 04:48 PM

Re: AutoInstall Program (w/ Silent cab install)
 
It might still have been installing the cabs in the folder... if you have a lot of cabs to install, it could take a while. Since there isn't a progress indicator, I just let it run until it asks me if I want to reboot. It waits until after installing the cabs before copying files, too, so if you rebooted before it was done installing cabs, that might have been the cause.

opuscroakus 03-14-2008 04:53 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Makes sense. Is there a way to add a progress indicator?

plenTpak 03-14-2008 04:56 PM

Re: AutoInstall Program (w/ Silent cab install)
 
That's probably a good idea. I'll see what a good way to do that is when I get a chance.

nickm 03-14-2008 08:42 PM

Re: AutoInstall Program (w/ Silent cab install)
 
I love this little program. cooking ROMs is supper easier :) now. There really is no need for OEMs :)

Thanks

Please put a tip jar out

Dc_Striker 03-15-2008 04:09 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by plenTpak (Post 210849)
Hello,

I made this so that I could easily install all my programs after each rom update or whatnot without needing to edit any text files or anything... you just move whatever install files you want into or out of the "Installers" directory, and it'll install those programs. Cab files install silently to the default location (usually the phone storage). It'll run other file types too, like jar files (e.g. to autoinstall opera mini).

You can do other stuff with your phone while your programs are installing, and it won't reboot without confirmation from you first. Another plus is that you can uninstall the installed programs from the "Remove Programs" list.

Hope this makes things easier for some people!

---

Usage instructions:

1. Unzip the contents of AutoInstall.zip to \Storage Card\AutoInstall\
2. Place any files you want run in \Storage Card\AutoInstall\Installers\
3. Place any files you want copied into \Storage Card\AutoInstall\Files\
examples:
\Storage Card\AutoInstall\Files\example.txt will be copied to \example.txt
\Storage Card\AutoInstall\Files\Windows\Rings\ring.mp3 will be copied to \Windows\Rings\ring.mp3
\Storage Card\AutoInstall\Files\Windows\Theme.tsk will be copied to \Windows\Theme.tsk

4. Run AutoRun.exe after you flash a new ROM or whenever you want to install all the programs in \Storage Card\AutoInstall\Installers\
(Note: You can actually unzip AutoInstall.zip anywhere you want, as long as you put \Installers\ and \Files\ in that directory.)

what happend to cab or file

kain144000 03-15-2008 09:51 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by plenTpak (Post 210849)
Usage instructions:

1. Unzip the contents of AutoInstall.zip to \Storage Card\AutoInstall\
2. Place any files you want run in \Storage Card\AutoInstall\Installers\
3. Place any files you want copied into \Storage Card\AutoInstall\Files\
4. Run AutoRun.exe after you flash a new ROM or whenever you want to install all the programs in \Storage Card\AutoInstall\Installers\
(Note: You can actually unzip AutoInstall.zip anywhere you want, as long as you put \Installers\ and \Files\ in that directory.)

This is (*^$in' GREAT! One question, though. Is there a prog like this that'll read a *Config.txt like the OEM AutoInstall or UC (or maybe a UC that doesn't have to be cooked into the ROM)? Or a way to hack this prog to read a *Config.txt for instructions? I'd really like to use the txt doc method, y'know? w/o editing the SDConfig.txt I'd already made.

rgv_warrior 03-15-2008 10:32 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by plenTpak (Post 216593)
I revised it twice, once in the older thread, and once in this thread. Sounds like you might have gotten the very first version I posted, in which I had left a bug. D: The one in this thread should always have worked though, and I think it was last revised....... 03-11-2008 at 11:17 AM.

PlenTpak,

I downloaded the older version. I must not see well because I can't find the file on this thread anywhere. Can you hook me up?

thanks,

RW

plenTpak 03-15-2008 11:48 PM

Re: AutoInstall Program (w/ Silent cab install)
 
That's odd, I don't know what happened to it... I don't have the old version that was in this thread either, but hopefully this one will work just as well. I added some functionality to import .reg files and run other scripts too, as well as to show that windows busy cursor while the script is running, oh, and ability to cancel the running script by running AutoRun.exe again. MortScript seems to stall randomly when writing huge binary chunks to the registry, though. Not sure where the problem is, but I'll just post this up for now and try to figure it out later.

rgv_warrior 03-15-2008 11:57 PM

Re: AutoInstall Program (w/ Silent cab install)
 
Quote:

Originally Posted by plenTpak (Post 219641)
That's odd, I don't know what happened to it... I don't have the old version that was in this thread either, but hopefully this one will work just as well. I added some functionality to import .reg files and run other scripts too, as well as to show that windows busy cursor while the script is running, oh, and ability to cancel the running script by running AutoRun.exe again. MortScript seems to stall randomly when writing huge binary chunks to the registry, though. Not sure where the problem is, but I'll just post this up for now and try to figure it out later.

thanks a bunch. I truly appreciate it and so do my bloody fingers from having to reinstall everything. LOL.

RW

rgv_warrior 03-16-2008 12:09 AM

Re: AutoInstall Program (w/ Silent cab install)
 
Ran Great. Thanks Again.


All times are GMT -4. The time now is 06:59 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0