yashsingh1/xdaforums huggingface dataset:
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Well, I think the fact that its called "

Destructive

Overwrite" is pretty clear that it is going to destroy what's there :).

I will try to point it out in the documentation however.

And yes, I could code something that would do what you are talking about. I would have to enumerate every file in the chosen folder, every folder, and every subfile and folder. For each element I would have to check if the file exists and if so, remove the read-only. It it technically possible to code with Mortscript. Two issues:

1 - It would take me a bit to do... I really hate coding recursive stuff and mortscript doesn't do recursion natively (which is why I hate to code it!). At this point I don't see the investment in time for a "minor" feature to be worth it... but maybe I will change my mind.

2- It would be time intensive during operation. It would definitely be a significant slowdown during the operation of SASHIMI to do this check. Obviously for a single file in a single folder you wouldnt notice, but any significant amount and you would definitely see it.

There are alot of commands I would like to see Mort implement/enhance/fix. I just made this first request with the Choice issue...so I will see how he responds. I know he is busy so I'm not holding my breath for anything to come. When it does however I will keep SASHIMI current with anything cool he adds in (assuming I'm still maintaining SASHIMI!).

Even the DelTree command which I use to wipe out for the destructive overwrite doesn't delete Read-only files... so it may not even wipe out everything in the folder!

EDIT:

Hehe... I really should think for a second or two before saying something is too hard to do :)

I took a look and already had some (mostly) reusable code that could do what we wanted.

Destination files/folders are now enumerated prior to copy/delete and read-only attributes are removed!

Just tested and it does indeed wipe out the whole folder even when read-only files are there.

It does take longer..like I said..so I will probably add an option to toggle this feature for those that want it.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Cool, I think it could be useful, though I haven't had a usecase for it yet... I was searching the web for a set of tools that do copy so you could call it (like an executable) from mortscript with the correct command line (like a robocopy for Windows Mobile), but I haven't found it yet...
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Hi Bengalih (& others),

I have another cool option for you (at least I think it is). Possibly someone noticed in another thread that I was having a problem with AdvancedConfig not recognising string keys? Well... it turned out not to be the newer ROMs but the fact I was using Sashimi to auto-install my regkeys, whereas I used dotFred's TaskManager in the past... dotFred's TaskManager supports importing registry "deletions" since the 3.1 release, and that's what I do for the bitpool setting (as it gives the best BlueTooth quality according to some people in the KaiserTweak forum).

So...the reg-key you need to enter for deleting keys is the same as entering, except you add a minus after the equal sign for a key. But - SKTools does not support that, I therefore created the following:

1. I automatically copy TaskMgr.exe (using Sashimi, yeah!) to the device using the Auto\Root\Program Files folder

2. I automatically run a script (RemoveRegistry.mscr) from the Auto\Scripts folder

3. This scripts executes TaskManager with the correct Command Line option to import a reg-file which is located in the same Scripts folder

Here's the Mortscript file:

Sleepmessage(3, "This script removes some registry keys...", "Remove Registry", 1)
Run( "\Program Files\TaskMgr.exe", "\Storage Card\SASHIMI\Auto\Scripts\RemoveRegistry.reg /silent" )
Sleepmessage(3, "Done...")

And here's the reg-import (eh... delete ;)) file:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\A2DP\Settings]
"BitPool"=-
"MaxSupportedBitPool"=-

Hope this helps - if you want me to remove the script or stuff as it may confuse people in thinking Sashimi is a difficult program to use (which it is not only if you want to go reaaaaal deep), just let me know.

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] NerdsMcGee:
I don't know if this is own-thread worthy, but what would be the easiest way to automatically register SPB Mobile Shell? This is just about the only thing I have left before Sashimi is perfected on my Rom :)

Thanks
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Better yet, why don't I change SASHIMI to use TaskManager to import the .REG files.

I was using SKtools to export (because TaskManager isn't as robust on the command line), but I don't see a reason why I can't use taskmanager to re-import them if it supports more formats.

I will do some more tests and if all ok...consider it in the official release!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ich.net:
Thanks for sharing your findings!

I'm curious why don't you use the build-in reg-delete features of MortScript?

RegDelete( root, key, value name )

Removes the registry value.

Values for root are as in RegRead.

RegDeleteKey( root, key, values?, sub keys? )

Removes an entire key (a “subdirectory” in the registry).
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Lol, as it's only two keys, I agree - I could have! :) But for all the others it would have been a hell of a job, and will be everytime I create new reg-keys to import...

And yes, Bengalih, I agree using TaskMgr - even thought of changing the code already :) but as you prefer to do it yourself (which I can very well understand!!) I'll leave it to you :P
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Ok, I've changed the code and tested it. Seems to work ok.

Two things:

1 - It seems that when using the "-" to delete a value in the registry that it doesn't actually get deleted, but rather set to "00" and type REG_NONE.

Do you see the same behavior on your device?

EDIT:

Never mind, I updated from 3.0 to 3.1 and it appears to fully remove it!

2 - This is just interesting to note...and I think the reason I didn't use TaskMgr initially...but i just figured it out. When importing on the command line with the /silent switch, the extenstion of the file must be

lower case

. .REG doesn't work, .reg does. That took me 20 mins to figure out!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
See post #385
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
For SPB Mobile Shell I have found (but not tested) that it's the following key:

[HKEY_CLASSES_ROOT\CLSID\{783AC566-6E9F-41A4-8B5C-C5728C204E51}]
"SIPFlag2"="XXXX-XXXX-XXXX"

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] anubus12:
In addition to installing cabs, is there anyway to automatically copy certain files from the storage card to specific directories during initial installation after hard reset?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Moe5508:
That is correct. I can confirm that. Can we actually share some of these reg locations to help all those who (daily flashers like myself) do not wish to have to re-enter the reg/serial no for all their apps. Of course please note we need to mask our individual serial nos with the so-popular "XXXXX". I'll post a few locations in a little while. This, I hope will help many with creating files to place in SASHIMI's REG\ or even XML\ folders for auto/manual processes...:D
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
I'll soon make a tips & tricks for Sashimi thread were I'll try to gather all these kinds of tips & tricks... I have many, many reg-files and some scripts that make my life easier together with Sashimi :)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Yes, by moving the file in the Auto\Root folder and corresponding sub-folder. Please take the time to read the manual and review some of the video's before you do this and you'll learn how :)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ecoutinho:
autorun on Diamond

Hi Bengalih,

In order to use the Autorun feature on my Diamond, I had to edit AutoRun.mscr and change the storageCard variable to look into HKLM\System\StorageManager\Profiles\moviNAND. Using moviNAND returns "Internal Storage" while SDMemory returns "Storage Card", which doesn't exist on the Diamond.

Maybe you could start by using SDMemory and check if the file exists in InstallDir\bin\SASHIMI.mscr, if it doesn't, then you could try getting the folder from moviNAND. Please bear in mind that It's the first time I've heard of MortScript, so I don't really know if there is a FileExists feature...

Best regards,

Elio
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Moe5508:
Here's what I have so far...

WebIS Pocket Informant 8

[HKEY_CURRENT_USER\Software\WebIS\PocketInformant]

"regkey"="XXXX"

WebIS FlexMail

[HKEY_CURRENT_USER\Software\WebIS\Flexmail]

"regkey"="XXXX"

[HKEY_CURRENT_USER\Software\WebIS\Mail2]

"RegistrationKey"="XXXX"

WebIS Toolbox

[HKEY_CURRENT_USER\Software\WebIS\Toolbox]

"regkey"="XXXX"

SBSH Pocket Weather

[HKEY_CURRENT_USER\Software\SBSH\PocketWeather]

"RegKey"="XXXX"

SPB Mobile Shell

[HKEY_CLASSES_ROOT\CLSID\{783AC566-6E9F-41A4-8B5C-C5728C204E51}]

"SIPFlag2"="XXXX"

SPB WALLET

[HKEY_CLASSES_ROOT\CLSID\{A79D1B0D-2F6A-4E7E-AF94-5EEBC8BFD684}]

"SIPFlag2"="XXXX"

SPB Traveller

[HKEY_CLASSES_ROOT\CLSID\{382B074C-653F-44DA-87DC-9A40CF549880}]

"ADODB"="XXXX"

SPB FINANCE

[HKEY_CLASSES_ROOT\CLSID\{2900F885-E124-4588-9851-AECACB9C7CED}]

"Today"="XXXX"

SPB PHONE SUITE

[HKEY_CLASSES_ROOT\CLSID\{6F42EAB1-6707-4273-93C6-BC3B7DA34726}]

"WM 5.0"="XXXX"

SPB POCKET PLUS

[HKEY_CLASSES_ROOT\CLSID\{0B9E877C-7ECA-4790-9BE3-EE1F2566BEF8}]

"APISet"="XXXX"

SPB MATCHES

[HKEY_CLASSES_ROOT\CLSID\{4A66DAB0-ACA8-4C48-AD94-574037A0D90A}]

"WinCE"="XXXX"

SPB MINE SWEEPER II

[HKEY_CLASSES_ROOT\CLSID\{0D6A2052-CD27-42E5-A7B3-08F7AA7AF613}]

"WinCE"="XXXX"

SPB QUADRONICA

[HKEY_CLASSES_ROOT\CLSID\{777F62AD-D6B1-41F7-91D6-C8F54588A139}]

"WinCE"="XXXX"

SKTOOLS

[HKEY_CURRENT_USER\Software\sk\TOOLS]

[HKEY_LOCAL_MACHINE\Software\sk\TOOLS]

START MENU PROGRAMS MANAGER

[HKEY_CURRENT_USER\Software\Microsoft\Ready Tools]

"Ready"="XXX"
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ZaJules:
Problem with 6.5

Hi Just did my first full rom reload and ran Sashimi Auto.

On restart a lot of programs would not work, after some scratching around I discovered that all my reg entries that had been restored had the \ (Backslash) missing. So instead of an entry being \windows\start menu\programs\resco.lnk it was windowsstart menuprogramsresco.lnk

One I had manually re entered all the \ everything is working fine.

Jules
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Thanks, I knew about this issue and have already fixed it for the upcoming release. I have updated Autorun.mscr with the same code that the main script has for determining Storage Card/Internal Storage.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
How did you backup your reg entries in the first place?

Usually the backups place double \\ in order to escape the \ character I believe.

I don't think I've seen this problem before. I know Nikagl does alot of registry import/export... maybe he has seen this issue?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
I can only agree - it sounds like your reg-files contain single \ instead of double \ (\\) for the filenames & folders. Please post one of you reg-files to explain (zip & attache or use the code button (#)).

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Yeah, i did a few tests.

I exported a registry key with "\" characters (a path) using 6 methods:

PHM Reg Edit Method 1 (WinCE Format)

PHM Reg Edit Method 2 (eVT Format)

PHM Reg Edit Method 3 (Win RegEdit5 Format)

PHM Reg Edit Method 4 (Win RegEdit4 Format)

SKTools

TaskMgr

In all methods but PHM #4 the path was exported with a double: "\\"

When I imported them all with SkTools, the #4 (without the "\\") imported them as you describe...missing the "\" (as surmised).

Apparently however TaskMgr imported all of them without an issue.

This is only good news since in the upcoming release I switched to TaskMgr to import .reg files instead of SKTools!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Once again I must say: you rock! :)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Hi all,

For some tips & tricks, read the following thread:

Thread removed - wiki will be created...

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Just put up the thread for the new Makisu XML Maker.

It's won't be available till the weekend with the SASHIMI release, but you can check out the video.

http://xdaforums.com/showthread.php?t=415542

Hope ya like!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ZaJules:
Thanks for the quick response guys :D

So should I go ahead and add double \\ to all my backup reg paths?

Will the future release have an issue if there is \\ in the path?

Thanks again

Jules
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
It's not really an issue... proper syntax is to have two \\ in key value's.

If you are creating them by hand then, yes.

If you are exporting them with a program, then use a different program, or export them in a different format that is proper.

That being said, the next release will be using TaskMgr to do the import, which seems to be more forgiving if you only have single \ in the path.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] sleeping:
tips & tricks wiki

Is it ready yet? or are you taking the weekend off? If so enjoy.:) I've already learned a lot from reading conversations between you and bengaliH and others. I did Dl your tips before you killed the thread.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Lol, yes, enjoying the weekend! The thread still exists, just not the reference to it...Bengalih prefers questions asked within this thread which I understand - it may make it more complex having two threads... I want to change the thread into a wiki, which people can edit and add their own tweaks to too :). I am not sure how to convert html into wiki-format though - so tips are welcome!

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
7.0 is here!

Check first post.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Moe5508:
Edit: Bengalih, I love the new .AUTO file processing feature! Makes auto-cab install FULLY AUTO!!! I just need to spend some time running mock installs to pick out the exact gestures/windows required for those cabs that I install to device memory and then it's done from hereon!!!!

I've flashed 2 ROMs today already but held out on doing any customisation using SASHIMI as am waiting for the new release...if you get my drift ;)...

Ah, and there it is!!! Fantastic work - thanks Bengalih!!! Can't wait to test drive this release!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Moe5508:
Problem with Auto\SC install process

Had sub-folders in the Auto\CAB\SC folder and instead of installing the cabs to the SD, they got installed to device memory instead...:confused:

Removed sub-folders and dumped all the cabs in the SC main folder and trying the process again...
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Just tested with multiple subfolders and CABs within \Auto\SC and had no issues.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Techvir:
thanks for the new Version.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] asango:
OK, upon your request from here...

http://xdaforums.com/showthread.php?p=2508908#post2508908

...I'll go on in this thread (have not been aware there are 2 different threads with the same name in 2 different branches of the forum...)

The strange thing with the PIM.VOL is that if I overwrite it with for example TotalCommander, it works without any problems, so I can not see any locking of the file by any process. Of course I have to reboot to get the new PIM.VOL become effective, but no problem in overwriting by the TC copy command. Strange...
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Moe5508:
Yeah, works fine, not sure what happened there but I hard-reset and re-installed SASHIMI and everything worked just great!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
TotalCommander

is

somehow able to overwrite the file, however I have experienced some strange issues with what TC is doing in several tests (after copy of PIM, I have renamed the file and ended up with 2 files with the same name, different sizes!). TC is either renaming the file and somehow hiding this from the user in the file table, or it is linking into the file system at a level below process locks. TC is a mega file-manager so I wouldn't be suprised that it is doing something out of the ordinary.

In any event, the file

is

locked down by the system. This is evident if you try to manipulate it with the built-in file explorer or standard API calls (which is what Mortscript and thus SASHIMI use). You can continue to use TC if you choose, but since you say a reboot is required anyway, you can also use the SASHIMI restore, which uses the rename method.

From the beginning I have said that SASHIMI is not the right tool to be using for PIM backup/restore. I implemented this simple function due to some requests, as it is a little easier than manually renaming and copying the file.

That's pretty much the end of the story on PIM backup/restore with SASHIMI, so either use what its got, or don't...there will unlikely ever be any enhancements to its PIM functions.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] sdlopez83:
Destructive Overwrite wow man you are a genius!!! THis whole program is amazing been using since beta! Bengalhi you are the man
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] marvi0:
difference between sashimi and spb sprite backup

hie guys have been looking at sashimi and it appears to be a cool tool though a bit too complicated for me, however i was just wandering is their a difference between sashimi and spb sprite backup or sk tools backup both of which appear very easy for me to use thanks as always for your input
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
Read the documentation, watch the videos.

If it still appears too complicated, don't use it.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Hi Benhalih,

I had a strange thing happen today, I haven't debugged or researched yet (no time), but wanted you to know. When installing a new ROM it took very long at the end - reviewing the log-file told me it was turning the Readonly off for every file in my Windows folder (yes, I have some \Windows files in my Auto\Root folder)...

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Marvi0,

Backup tools make a backup of your device, but cannot be restored onto a new ROM. You will need to reinstall your applications on that new ROM when you do a ROM upgrade. Sashimi is a tool which makes this reinstalling easier, especially when you ROM-upgrade often. It helps you automate the installation of all your external applications (applications which are not in the ROM) and make the default settings that you like...

Regards,

Nika.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] yardie.spike:
Great tool, many thanks
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
This sounds correct, the reset read-only setting is enabled by default. So, if you are trying to copy over something to the windows directory, it will first try to set everything in that location to read-only so that it will be able to copy anything you put in auto\root\windows.

If you want to turn this feature off go into

Settings > Copy Operations > Disable Reset RO

I suppose I can try to reverse the logic, so that it first checks for every file in auto\root\windows and then sets it's equivalent in \windows to read only, but that is slightly more complex code.

That probably makes more sense from a performance standpoint however, and I will see what I can do with next release.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] rogerard:
Resume after failure?

First off, I'd like to add my kudos to your long list of accolades. This is an awesome tool! :D

On a couple different occasions, I've gotten an error from SASHAMI stating it couldn't find the install window, at which point it would abort installation. I was wondering if it would be possible to add the ability to resume an interrupted installation process?

Thanks

Roger
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] bengalih:
A few questions:

1) I assume this is only during the Storage Card install process right?

2) Is this happening with the newest version (7.0)? There were some other reports of this error, and I put in some additional code to help prevent it.

3)Are you able to recreate this error? Is it happening with certain CABs?

CAB installation process is obviously the longest (and most error prone) part of the install. You can refer to the log file to see which CABs already successfully installed and temporarily move them to another location. This should be easy as it process them folder by folder and alphabetically.

I have some ideas as to how I might be able to implement a "resume" type feature, but I would really like to prevent the error from happening in the first place, so if you could answer the above questions that would be a help.

thx.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] djfujiyama:
What do i do to backup WM settings like brightness, owner info, alarms, etc? Are those XML or Reg entries i can backup somewhere?

And if i want to backup SPB product settings, does anyone know which files i should be backing up?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] dobbeltseng:
Hi.

I need some help regarding UC and sdconfig.

I can't get UC to work. I have made a sdconfig.txt-file and put it on the root of Internal Storage. I have turned on uc in Sashimi-config.

When the auto-config comes to uc, it starts sdautorun but it doesn't do any of the things that are configured in sdconfig.txt

It says loading sdconfig.txt in a split second.

Then it says autoshortcut for a few seconds and the it reboots the phone.

My SDConfig-file looks like this:

EXEC:\Internal Storage\Install\mNotes\mNotes_PPC2005.exe

CAB: \Internal Storage\Install\CommonTimeReg.cab

Can anyone help me with this?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] nikagl:
Hi djfujiyama,

Yes, these are reg-entries. You will first need to export them using a registry editor (for instance dotFred's TaskManager), and then add the .reg file to the Auto\Reg folder. I am still planning to make a wiki of many of the useful reg-keys, but for now, just request them and we'll let you know.

Always go through the items in below the registry key. Sometimes file-paths are added, don't include those in the .reg-file, only include the specific settings you want to import after resetting your phone.

Brightness:

[HKEY_CURRENT_USER\ControlPanel\BackLight]

Owner Info (there's a tool in the registry section of Sashimi that already exports this for you!):

[HKEY_CURRENT_USER\ControlPanel\Owner]

Alarms:

Not sure what you mean here. Do you mean the settings of your Sounds (what sound to play, vibrate or not, etc.) or do you want to export the alarms set in your phone (done automatically for me because I sync with Exchange/Outlook)?

What SPB product? For SPB Mobile Shell it's here:

[HKEY_LOCAL_MACHINE\Software\Spb Software House 2\Spb Mobile Shell\Menu]

Regards,

Nika.