OziExplorerCE: Registration key reset turning off the GPS

Search This thread

mattv3x

New member
Sep 18, 2007
2
0
Hello,
I installed OziCe in my GPS Invion (wince 4.2 loaded from SD card). It
works fine but, every time I turned on the GPS, OziCE asks to re-enter
the registration code. All the other configuration are correctly
reloaded, togheter with last used map.
No problem exiting and restarting OziCE, when the GPS remains active.
It seems that OziCE saves the registration code in same 'volatile'
memory, not flashed at hard shutdown.
I tried to check the registry, comparing them with remote tools before
and after starting OziCE, but I foung nothing.
Does anyone know a way to solve or workaround the problem?
Thanks, Filippo
 

mattv3x

New member
Sep 18, 2007
2
0
Found a solution

Hello,
for who may be intersted, I found a way to workaround the issue writing a MortScript (download the interpreter and instructions from http://www.sto-helit.de/).
This is the script I wrote; obviously you have to change the OziCE username and password and the path to OziExplorerCE.exe.
After insatalled and registered MortScript, copy the script in a .mscr file in the device. Executing the script would start OziCE inserting the registration code (if needed).
Ciao.

#OZI CE start

regName = "MyOZICeUserName"
regKey = "MyOZICeRegistrationCode"

WindowTitle="Inserisci Codice di Registrazione"
EngWindowTitle="Enter Registration Code"
OKWindow="OziExplorer"

ozipath = "\SDMMC DISK\WINCE\programfile\ozi_1.12.3\COMMON\OziExplorerCE.exe"

nLoops = 200

Run(ozipath )

#WaitFor(WindowTitle, 5) #returns timeout error if not found...
i=0
While ((ActiveWindow() ne WindowTitle AND ActiveWindow() ne EngWindowTitle) && i<nLoops)
Sleep(50)
i=i+1
EndWhile


if (WndActive(WindowTitle)=1 OR WndActive(EngWindowTitle)=1)
actWin = ActiveWindow()
SendKeys(actWin, regName)
SendTab(actWin)
SendKeys(actWin, regKey)
SendCR(actWin)

#WaitFor(OKWindow, 5)
i=0
While (ActiveWindow() ne OKWindow && i<nLoops)
Sleep(50)
i=i+1
EndWhile

if (WndActive(OKWindow)=1)
SendOK(OKWindow)
EndIf
EndIf
 

willywoolly

New member
Jul 9, 2007
4
0
using mortscript to enter OZICe on a windows CE 4.2 device

Filippo, nice work!

That mortscript you wrote works a treat on my navigation box.

I was unable to work out how to do a cab instal of mortscript. My navigation box won't start .cab files. So I need to run the bin:version of mortscript first for the Device binaries (whatever that means) and then I can run your mortscript. Love watching mortscript typing in my name and code.

OziCe now asks for ECW.dll - where does that file come from and where should it be? in windows? in storage card root? in oziexplorer folder on storage card? in nandflash?
 
Last edited:
D

Deleted member 1890170

Guest
OziExplorerCE: Preventing registration key reset turning off the GPS

Please apologize warming up this thread, but thought I'ld share my solution here.

1. OziExplorer stores user-registration data in file named 'gihobj.dll' in OS's folder \Windows.
2. Hence you backup once this 'gihobj.dll' , then always copy it to \Windows before you start OzExplorer.

I suggest to use a wrapper script as following to start OziExplorer:
Code:
#OziExplorer Launcher
#This script must be located in OziExplorer's installation folder
#or you have to alter the OziExplorer 'ozipth' below!

Local()
ozipth=SystemPath("ScriptPath")
oziexpl="OziExplorerCE.exe"
regdata="gihobj.dll"
winregfile="\Windows\"&regdata
bkupregfile=ozipth\regdata
#check existence of registration data
If(FileExists(winregfile))
	#OK, run OziExplorer
	Run(ozipth\oziexpl)
ElseIf(FileExists(bkupregdata))
	#OK, but in wrong folder, hence copy registration 
	#data to \Windows, then run OziExplorer
	Copy(bkupregdata,winregdata,1)
	#wait max. 2 secs 
	cnt=0
	While((NOT FileExists(winregdata))&&(cnt<20))
		cnt+=1
		Sleep 100
	EndWhile
	Run(ozipth\oziexpl)
Else
	#not OK, hence start OziExplorer with entering user-registration data
	RunWait(ozipth\oziexpl)
	#backup OziExplorer's registration data
	If(FileExists(winregdata))
		Copy(winregdata,bkupregdata,1)
	EndIf
EndIf

HTH
 

mimmolo

New member
Mar 7, 2010
1
0
OziExplorerCE: Preventing registration key reset turning off the GPS

Hello,

I have an old pda with WindowsCE 2002 installed.
Can everyone drive me applying the suggest of jwoegerbauer?
I can't find the file 'gihobj.dll' I think because I don't see the hidden files so:

1. how can I see the hidden files.
2. how can I create the script file? is it a batch file?


many thanks at all,
mimmolo