Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Software

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2005, 03:05 PM
Menneisyys
5000+ Posts? I Should OWN This Site!
Join Date: Jun 2007
Posts: 5,067
Default Relocating Pocket Informant entirely (!) from the main memory

A lot of people have been using Pocket Informant (PI). As its main memory consumption is quite big (2.44 Mbytes Ė Iím referring to the latest version (PI 2005)), even if you install it to an alternative media (taking up 539k by default), you may find it beneficial to relocate it to alternative storage.

Please note that ctitanicís PItoMem utility is doing the relocation quite well. If you donít install the icon pack, you will find it sufficient. It, however, only relocates DLLís (see bullet 1 below; it leaves PINewJournal.dll intact, however) and doesnít touch, for example, the registry to relocate the \My Documents log/settings directory entirely. Therefore, you may want to follow my tutorial, particularly if you install the additional packs in the PI distribution setup package. You may also want to use PItoMem to modify the system path and copy (some of) the DLLís and do the rest by hand; then, just skip the first bullet below.

1, you can safely move the five PINew*.dllís (7k each), PIResources.dll (406k) and PITools.dll (1142k) to the so-called ďSystem PathĒ. Please read this thread on what System Path is and how you can extend it. Note that with PI you wonít need to deregister any DLLís in order to be able to move them because they are not started as always-running services, unlike with the case of Spb Pocket Plus, the app discussed in the linked article.

2, if you donít want to read the PI help, you can also free up 261k by deleting \Windows\PocketInformant.htm; you may also want to relocate it so that you can still click it later to read. It doesnít link images, so, you wonít need to hunt for help images.

3, move \My Documents\WebIS (it contains 372 files (totalling 270k), which isnít particularly healthy on WindowsCE, speed-wise) to a storage card. This will require two modifications in the Registry. Youíll need to modify both

HKEY_CURRENT_USER\Software\WebIS\PocketInformant\IconPath

(this stores the icons you can choose in, say, Tools/Attach Icon)

and

HKEY_CURRENT_USER\Software\WebIS\PocketInformant\WebIS_Folder

to point to the new location. Just insert the name of your card/file store name before \My Documents in these values.

After these modifications, both the log/settings files PI creates (ExitLog.txt etc) will be created at the new position and the contents of other directories will be found Ė for example, those of \ColorSchemes (see the PI icon/Color Schemes menu).

If you need some screenshots on the registry modification, feel free to click these screenshots (not directly included because most of you will already know what to change):

1, 2, 3, 4.

You may also want to read this thread for my quick comparison of the registry editors on the PPC, if youíre unsure about which registry editor to use.

4, if you want to move the 99k \Windows\PITab.exe to the new location, you will also need to modify the link targets in all of the link files in \Windows\Start Menu\Programs\Informant Utils\ link files; all of them, except for Create Alarm Note.lnk.

For example, PICalendar.lnk contains the following initially:

47#"\Windows\PITab.exe" 11?\Windows\PITab.exe,-111

in this, you need to change \Windows to the new path; for example,

99#"\LOOXStore\PI\PITab.exe" 11?\LOOXStore\PI\PITab.exe,-111

(note the new 99 at the beginning; you may want to raise it even to 255 to avoid partly passed parameters, just to be on the safe side.)

If you also want to relocate the 14k \Windows\PIAlarmNoteCreate.exe, edit Create Alarm Note.lnk too to point to the new location.

5, to relocate the 30k-long PISettings.dat (itís invoked by clicking the PI icon and choosing Settings), youíll need to hexedit PIControlPanel.dll; the name is stored from position 0xd8ca.

Before:



After:



Please read this thread on using hex editors and for naming tips (youíll shorten the original name, PISettings.dat; in the example, Iíve renamed it to stngs.dat. It can even have a 1-letter-long name and/or doesnít even need to be located in a subdirectory (here, PI in the root of my \LOOXStore).

6, you may also want to relocate the .unload file(s) and \Windows\AppMgr\WebIS Pocket Informant 2005.DLL. You may also want to read this thread for more information on this subject.

Congratulations! Youíve freed up 2.44 Mbytes!
 
Reply With Quote
  #2  
Old 08-04-2005, 05:25 PM
pivaska
Intellectual
Join Date: Feb 2002
Posts: 229

I use PI all of the time and always have. Why doesn't PI just make the program so you can have it on removable storage as an install option or is this a rehtorical question?
__________________
PDA stuff... Dell Axim 51v with 1g CF and SD card and a LOT of cool software.
 
Reply With Quote
  #3  
Old 08-04-2005, 06:00 PM
Menneisyys
5000+ Posts? I Should OWN This Site!
Join Date: Jun 2007
Posts: 5,067

Quote:
Originally Posted by pivaska
I use PI all of the time and always have. Why doesn't PI just make the program so you can have it on removable storage as an install option or is this a rehtorical question?
Well, the same can be asked about almost all the other apps that put hundreds of kilobytes in the main RAM... These apps could be written to automatically take advantage of the File Store if they detect one.
 
Reply With Quote
  #4  
Old 08-05-2005, 11:41 AM
Menneisyys
5000+ Posts? I Should OWN This Site!
Join Date: Jun 2007
Posts: 5,067

Some important additions:

- Iíve tested this on the latest, 2.1 version of PI2005.

- the relocations/deletions above are completely independent of each other. You may, for example, opt for not relocating \Windows\PITab.exe (bullet 4) or \Windows\PISettings.dat because of the hurdles (regstry/link file editing and hexediting, respectively) involved. Then, you ďonlyĒ lose 130-140 kbytes.

- MemMaid, probably the best all-in-one memory relocation/cleaning utility, is also able to move most of the DLLís. However, it doesnít relocate PINewJournal.dll either, just is the case with ctitanicís PItoMem. Seemingly, these two applications have been written for a previous version where still there wasnít PINewJournal.dll. (I couldnít find any other reason for this because relocating it didnít result in any misfunction.)

- If you relocate the 99k \Windows\PITab.exe to the new location, youíll also need to modify the following three registry values:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:MSCALENDAR\1]

(default value \Windows\PITab.exe 11),

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:MSCONTACTS\1]

(\Windows\PITab.exe 9) and

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Rai\:MSTASKS\1]

(\Windows\PITab.exe 8)

so that both the Today plug-in links and the pre-defined Calendar/Tasks/Contacts link in the Start menu will also live.
 
Reply With Quote
  #5  
Old 08-27-2005, 04:29 PM
mziboti
Neophyte
Join Date: Aug 2005
Posts: 2

Hi

Many thanks for this great info.
However, just tested it on my Hx4700 and mini O2, and have some
feedback for you.

Hx4700:
I first tried to move the DLLs (point 1) but the application has stoped working, and it was impossible to execute. I have noticed that when I move PIResources.dll and PITools.dll to SD card, I have two other files with the same name in the \Windows folder .... Strange !!!! I tried to rename the two DLLs but couldn't. Message: could not delete PIResources.dll !!!!!!!!!!! Any idea ?

on the O2, everything went great, except sometime i have the "cannot execute PINotification.exe" message. the SD card must not be available immediately upon wakeup, so the PINotification.exe app can't load the PITools.dll......

Anyway, thanks for all your hints and articles.

Cheers
Mick
 
Reply With Quote
  #6  
Old 08-27-2005, 04:40 PM
Menneisyys
5000+ Posts? I Should OWN This Site!
Join Date: Jun 2007
Posts: 5,067

Quote:
Originally Posted by mziboti
Hx4700:
I first tried to move the DLLs (point 1) but the application has stoped working, and it was impossible to execute. I have noticed that when I move PIResources.dll and PITools.dll to SD card, I have two other files with the same name in the \Windows folder .... Strange !!!! I tried to rename the two DLLs but couldn't. Message: could not delete PIResources.dll !!!!!!!!!!! Any idea ?
The hx4700 has PI in ROM (or, if you upgraded it, in RAM, but in a, for me, unknown configuration - I haven't tested relocation on the hx4700 yet), this is why it won't work. Neither does ctitanic's PItoMem v1.2.0 (which relocates the same DLL's) work with the hx4700; again, for the reasons outlined above.

Quote:
Originally Posted by mziboti
on the O2, everything went great, except sometime i have the "cannot execute PINotification.exe" message. the SD card must not be available immediately upon wakeup, so the PINotification.exe app can't load the PITools.dll......
Only relocate boot-time stuff to the File Store because it's the only alternative memory available at boot time.
 
Reply With Quote
  #7  
Old 08-27-2005, 04:43 PM
mziboti
Neophyte
Join Date: Aug 2005
Posts: 2

Many thanks for your prompt reply
tu es un Chef ;-)

Cheers,
Mick
 
Reply With Quote
  #8  
Old 08-27-2005, 04:45 PM
Menneisyys
5000+ Posts? I Should OWN This Site!
Join Date: Jun 2007
Posts: 5,067

Quote:
Originally Posted by mziboti
Many thanks for your prompt reply
tu es un Chef ;-)

Cheers,
Mick
You're welcome, and thanks
 
Reply With Quote
  #9  
Old 01-09-2006, 08:49 AM
alatmeth
Neophyte
Join Date: Dec 2005
Posts: 8
Default Relocation and more...

Dear menneisyys,

I am running PI 2005 Rev4 Build 492 and PocketBreeze 5.0 (11/01/2005). I have used tweaks2k2 to create a extended system path in my storage and moved "PITools.dll" (1182K) to it. I don't see any other PI*.dll in my Windows directory. (might be due to version difference)

The problem is with the integration of PocketBreeze. Before the relocation of the DLL files, after setting the PIM to PI in the PocketBreeze setting, I could open/edit my appointments direct from the today screen, even when PI is not loaded into the memory. (PI will auto-start itself and unload after its done) After moving the DLL, however, nothing happens when I try to open/edit the appointments unless I keep PI running in the background. May I know what's the cause and how to fix it?

Also, I am quite curious about WM5's lnk structure.
47#"\Windows\PITab.exe" 11?\Windows\PITab.exe,-111

Like what's "47#"? What's "-111"? I tried searching but found nothing.

I've been reading most of your wonderful tutorials and I am really glad we have such a guru on board here.

Thanks.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:35 AM.