[App] ROM Flashing Junkies: User Customization is here!

Search This thread

mattanur

Senior Member
Jul 2, 2009
54
1
sorry. AutoRun, by HTC design, cannot install apps to your storage card.

edit:

Actually, AutoRun installs cabs to the location specified by the cab itself. Most cabs don't specify a location however and in this case AutoRun chooses the device. However, you can override this behavior by using WinCE Cab Manager to create a cab that will only install to the Storage Card.

Will u pl elaborate how to create a cab to install only to Storage card using WinCe Cab Manager?
 

sschrupp

Senior Member
Jul 27, 2008
371
10
Iowa
sdconfig.txt consistently failed and I finally found out WHY.

A .cab file resides on my harddisk, is copied to my SD card. so far so good.
I insert the SD card in Leo, and still the file is there.
Via settings/reset device I force a reconfiguration, including rereading of sdconfig.txt. Then, it fails "power.rar...." is missing.
I insert the SD card in my laptop, the file is indeed missing. I run total commander comparing my _Cabs folder on harddisk and SD card, and 13 files are missing from the SD card.

when I open Properties of these 13 files on my harddisk, it reveals this:
just below Attributes (which usually is in the bottom of the General tab), there is "Security: This file came from another computer and might be blocked to help protect this computer". to the right is an "Unblock" button.

Click "Unblock" and the next time you open properties, the warning is gone.

*** it seems that Windows Mobile while booting protects itself from these files by DELETING them from the SD card ***

????????? (using Win7 x64 on my laptop)

Dear lord I thought I was going crazy! Something wouldn't install right so I'd have to try and reflash. But then a file would be missing, which means I'd have to reflash, but then.... ARGH.

So now I know what's happening and I'm NOT losing my mind! Thanks!
 

agibby5

Senior Member
Jan 24, 2009
64
7
PA
I finally got up to date and learned UC and I gotta say, for the few hours it took me to get working... it will definitely pay off in the long run by saving time after rom updates.
 

somemorestuff

Member
May 19, 2009
22
0
Code:
<characteristic type="FileOperation">
  <characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
     <characteristic type="MakeDir" /> 
        <characteristic type="Pocket Uno.lnk" translation="install">
            <characteristic type="Copy">
                <parm name="Source" value="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install" /> 
             </characteristic>
        </characteristic>
   </characteristic>
   <characteristic type="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install">
      <characteristic type="Delete">
          <parm name="ForceDelete"/> 
      </characteristic>
    </characteristic>
</characteristic>

I too tried this and it didn't work (was trying to move the "Bing.lnk" that's marked read-only and system). After cabbing it up separate "copy" and "delete" fileops and running I get "unsuccessful". (I built the xml on a working "move" xml file)

I think it's because the definition of "ForceDelete" doesn't appear to have anything to do with attributes (it sounds more like a lock override if another program has the file open for editing):
msdn.microsoft.com/en-us/library/bb737563.aspx said:
ForceDelete
This parameter can be used in the Delete characteristic to delete the file even if the shared reference count is not zero.

I also tried using this parameter with a move:
msdn.microsoft.com/en-us/library/bb737563.aspx said:
RemoveAttributes
This parameter can be used in a Copy or Move characteristics to remove the Archive (A), Hidden (H), ReadOnly (R), or System (S) attributes on the destination file. Requires the Manager role.
But got the same error (perhaps I screwed up the code...):
Code:
<wap-provisioningdoc>
  <characteristic type="FileOperation">
    <characteristic type="%CE17%\Programs\GPS" translation="install">
      <characteristic type="MakeDir" />
      <characteristic type="Bing.lnk" translation="install">
        <characteristic type="Move">
          <parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
          <parm name="RemoveAttributes" />
        </characteristic>
      </characteristic>
    </characteristic>
  </characteristic>
</wap-provisioningdoc>

This is just spitballing, but maybe we don't have the "Manager Role" when installing from a CAB? I'll try running directly from SDAutoConfig later.

I like the clean Mortscript example, but that only works if Mortscript is installed. I don't want to bank on that if I don't have to (i.e. stock roms, etc).

Also, I tried testing these fileops xml files (even working ones) with SASHIMI, but it doesn't seem to do anything (no errors, nothing)??? Am I missing something??? (I think it would be easier to test with SASHIMI rather than cabbing with SDConfig Builder each time).

Any ideas on the code or the testing? :confused:

FYI - currently I'm running Energy.HERMAN.23529.Sense.2.5_MaxManila.16.Feb.2010.rar (and yes, it has mortscript installed, and I know SASHIMI installs it too - I'm in the alpha phase of my re-install script here ---> just testing everything :D)
 

RoryB

Inactive Recognized Developer
Sep 4, 2008
2,921
766
Lexington
The RemoveAttributes is operating on the file in the location the original is moved or copied to. I do not know why it is not working. Could try
Code:
<wap-provisioningdoc>
  <characteristic type="FileOperation">
    <characteristic type="%CE17%\Programs\Internet" translation="install">
      <characteristic type="MakeDir" />
      <characteristic type="Bing.lnk" translation="install">
        <characteristic type="Copy">
          <parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
          <parm name="RemoveAttributes" />
        </characteristic>
      </characteristic>
    <characteristic type="%CE17%\Programs\GPS" translation="install">
      <characteristic type="MakeDir" />
      <characteristic type="Bing.lnk" translation="install">
        <characteristic type="Move">
          <parm name="Source" value="%CE17%\Programs\Internet\Bing.lnk" translation="install" />
        </characteristic>
      </characteristic>
    </characteristic>
  </characteristic>
</wap-provisioningdoc>
The idea being copy it to its current location to try to apply RemoveAttributes, then try moving it to where you want. Not sure this would work either, but it is just a stab in the dark.
 

somemorestuff

Member
May 19, 2009
22
0
Hmm, thanks I don't think any right-minded file op would allow you to copy or move to and from the same location, but I see where you're going with it.

Maybe I'm being naive here, but there must be a way to do it since the bing.cab is uninstallable (do you by chance know where the uninstall xml file is usually? Maybe that would give me a clue...)

I'll hack on it once more before I resign myself to MortScript (I've got the same problem with rilphone.dll I think).

Thanks!
 

RoryB

Inactive Recognized Developer
Sep 4, 2008
2,921
766
Lexington
Another option is to edit the cab with a program like wincecabmanager to have the shortcut created where you want it.
 

somemorestuff

Member
May 19, 2009
22
0
True, but I'm modifying the already installed Bing that came in the ROM (Energy Rom's have it cooked in). Still haven't gotten to testing this yet, trying to straighten out the mythical text messages that get sent to everybody a bunch of times after restoring them using PIM backup! I guess I really should go ahead and delete some of that stuff...
 

Outloook

Member
Jul 12, 2008
9
0
Hi all,

I am trying to make xml file which deletes Pictures & Videos.lnk from one folder. I use this syntax (usualy without any problem)...

Code:
<wap-provisioningdoc>
   <characteristic type="FileOperation">

         <characteristic type="\Windows\Start Menu\Programy\Media\Pictures & Videos.lnk" translation="install">
            <characteristic type="Delete">
               <parm name="ForceDelete"/>
            </characteristic>
         </characteristic>

   </characteristic>
</wap-provisioningdoc>

...and noticed, that it probably have problem with reading "&". How should i write it?

Thanks for help, I am stucked about 3 hours :/
 

agitate

Member
Mar 21, 2006
22
0
Rainford
I'm not exactly sure how UC XML files work (so I may be missing something), but for XML, according to http://www.w3.org/TR/xhtml1/#C_12, you need to use the entity reference:

Code:
&

So you would have:

Code:
<characteristic type="\Windows\Start Menu\Programy\Media\Pictures & Videos.lnk" translation="install">
 

DaveShaw

Senior Moderator Emeritus
Dec 4, 2007
8,771
506
Huddersfield
www.taeguk.co.uk
Hi all,

I am trying to make xml file which deletes Pictures & Videos.lnk from one folder. I use this syntax (usualy without any problem)...

Code:
<wap-provisioningdoc>
   <characteristic type="FileOperation">

         <characteristic type="\Windows\Start Menu\Programy\Media\Pictures & Videos.lnk" translation="install">
            <characteristic type="Delete">
               <parm name="ForceDelete"/>
            </characteristic>
         </characteristic>

   </characteristic>
</wap-provisioningdoc>

...and noticed, that it probably have problem with reading "&". How should i write it?

Thanks for help, I am stucked about 3 hours :/

Do & as &

Code:
<wap-provisioningdoc>
   <characteristic type="FileOperation">

         <characteristic type="\Windows\Start Menu\Programy\Media\Pictures [COLOR="Red"]&[/COLOR] Videos.lnk" translation="install">
            <characteristic type="Delete">
               <parm name="ForceDelete"/>
            </characteristic>
         </characteristic>

   </characteristic>
</wap-provisioningdoc>

It's an XML thing ;).

Dave
 

chathar

Senior Member
Nov 5, 2009
198
3
Lahore
Hi there, can anybody please tell me, what would be the syntax of provxml file to change a file attribute like readonly, system, hidden etc?
 

somemorestuff

Member
May 19, 2009
22
0
Hi there, can anybody please tell me, what would be the syntax of provxml file to change a file attribute like readonly, system, hidden etc?
As RoryB and I have been discussing (see posts 1465 and 1466 above) - it doesn't look like there's any clean way.

BTW RoryB - I've given up on this for now since I was having so many problems with EnergyROM I switched to RootROM (which doesn't have Bing installed & works great out of the box for SMS - and while it's non-ideal MMS works ok too--pictures aren't displayed in the thread, you have to click on them).


On another note, I am having problems installing galarm 2.1.2 or using PIMBackup as part of the script - galarm takes a "long" time to install and then has user interaction. By that point, UC has moved on to the next install - I basically have to ensure the lock is disabled for the rest of the UC file and hope I get lucky enough to hit the "finish install" button, and PIMBackup has the same issue trying to restore 1400 texts apparently doesn't make friends with UC (it usually reboots before PIMBackup is halfway done).

Can I ask for a feature to set the timeout for a particular install?

Oh, BTW - RootROM doesn't cook in SDAutoConfig - am I correctly using it by just clicking the executable after the initial boot?

Thanks!
 

RoryB

Inactive Recognized Developer
Sep 4, 2008
2,921
766
Lexington
On another note, I am having problems installing galarm 2.1.2 or using PIMBackup as part of the script - galarm takes a "long" time to install and then has user interaction. By that point, UC has moved on to the next install - I basically have to ensure the lock is disabled for the rest of the UC file and hope I get lucky enough to hit the "finish install" button, and PIMBackup has the same issue trying to restore 1400 texts apparently doesn't make friends with UC (it usually reboots before PIMBackup is halfway done).

Can I ask for a feature to set the timeout for a particular install?

Oh, BTW - RootROM doesn't cook in SDAutoConfig - am I correctly using it by just clicking the executable after the initial boot?
I am not aware of a pause in UC. You could remove the RESET from your config.txt file and reset the phone after you finish.
 

RoryB

Inactive Recognized Developer
Sep 4, 2008
2,921
766
Lexington
I suggest you reset after you finish getting things set up. In case some of your installed programs, etc. need a reset after install.
 

timolol

Senior Member
Jan 14, 2009
257
2
Melbourne
Hey guys,

I'm having a few troubles setting my custom theme using autorun. I have added this line to my config.txt:

Code:
EXEC:\Windows\cusTSK.exe \Windows\HTC Black.tsk

On first boot, everything appears to go well and it says something like "running HTC Black.tsk". However, on reboot, the theme is still the default Classic Blue theme.

I'm running WM 6.5 build 23547. Is there something that I've done wrong? Perhaps there is a newer version of cusTSK.exe which i need to use? Or should I try using the "TSK:....." method instead of cusTSK. Has anybody used the TSK:... method before?

Thanks for your help!
Tim :D
 

Top Liked Posts