![]() |
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. |
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.
|
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 |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
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. |
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! |
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. |
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) |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
Re: AutoInstall Program (w/ Silent cab install)
just used this - LOVE IT
|
Re: AutoInstall Program (w/ Silent cab install)
Nice work! This will help out alot.
|
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?
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
It doesn't ask for the location, it just installs everything to the device, without you needing to click OK for each cab file. |
Re: AutoInstall Program (w/ Silent cab install)
Great stuff man. I'm sure this will come in handy somewhere down the line. :-)
|
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. |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
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.
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
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.... |
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. |
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 FilesOpen 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. |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
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?
|
Re: AutoInstall Program (w/ Silent cab install)
Wow, thanks for this proggie!!
|
Re: AutoInstall Program (w/ Silent cab install)
This program works great. Thanks!
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
no really i'm sure there is an alternate way to do this... i'm not giving up just yet. |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
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)?
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
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") ) |
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. |
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.
|
Re: AutoInstall Program (w/ Silent cab install)
Makes sense. Is there a way to add a progress indicator?
|
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.
|
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 |
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
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 |
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.
|
Re: AutoInstall Program (w/ Silent cab install)
Quote:
RW |
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