Hello,
How to run HaRET.exe from outside?
I mean from other program...
I am making a C# program which can launch HaRET.exe, i used this:
Code:
Process CLRCAD = new Process();
Process HARET = new Process();
CLRCAD.StartInfo.FileName = AndroidPath + "/CLRCAD.exe";
CLRCAD.Start();
HARET.StartInfo.FileName = AndroidPath + "/HARET.exe";
HARET.Start();
CLRCAD have success lanuched, but i can't launch a "Normal haret"...
Yes, haret have run, but it is not black screen, a penguin with htc logo, it popup a window, which i attached(image)...
*** I HAVE Startup.txt in the /Storage Card/Android ***
Any solution that i can launch Haret properly?
Thanks
I don't actually have a WM device at hand (I'm 100% Android now), so I can't check this, but to me it looks like that error is basically saying that it can't find the expected startup script, which in this case would be startup.txt. The reason that it can't find it is because it's not running in the Android folder, but the folder where your app is running. (From the screenshot, I suspect that HARET looks for the startup file in the current folder and if it's not there it pops up the dialog asking you to locate a suitable alternative. It may well take command-line arguments for the startup file too!)
Set the WorkingDirectory for the StartInfo to the Android folder and see if that helps...
Code:
Process HARET = new Process();
HARET.StartInfo.FileName = AndroidPath + "/HARET.exe";
HARET.StartInfo.WorkingDirectory = AndroidPath;
HARET.Start();
If you don't have any luck with that (but I think you will ), ask a mod to move this thread to a forum in the Windows Mobile Development and Hacking forum. That's a better place to ask this kind of questions, so you'll get a more relevant audience.
http://forum.xda-developers.com/forumdisplay.php?f=522
Thanks for your answer first, but your solution doesn't work...
Still same, any solution???
Thanks.
hopkinskong said:
Thanks for your answer first, but your solution doesn't work...
Still same, any solution???
Thanks.
Click to expand...
Click to collapse
Did you try running your app in the same folder as haret, just to see if it is the problem I suggested?
johncmolyneux said:
Did you try running your app in the same folder as haret, just to see if it is the problem I suggested?
Click to expand...
Click to collapse
Yes, i have tried, still same...
Related
Hi guys,
I've looked everywhere for this but haven't had any luck getting it to work. I'm trying to get my K-JAM to ask me for an installation path. Except for asking me whether to put it on the Device Memory or Storage Card, it doesn't give me any other options to choose the destination folder path.
After searchng around the forum I found this
\HKLM\SOFTWARE\Apps\Microsoft Application Installer\fAskDest
I changed the value for fAskDest to 1 and even 2 but nothing happens.
I hope somebody can help.
Regards
Lee
Ok I found this in the WiKi. With this, I can't even start the installation. When I click on any CAB file. Nothing happens. I think the argument is wrong.
Make WM5 ask where to install a program (2)
An alternative method of making WM5 ask where to install a program is by adding the "/askdest" option to the Windows CE loader:
HKCR\cabfile\Shell\open\command = 'wceload.exe "%1" /askdest' (REG_SZ string, no quotes)
Click to expand...
Click to collapse
VipMSCRexe is a utility to run MortScript without Assigning .mscr extension to MortScriptexe.
How to Use it
Rename exe to your scriptname.exe e.g if your script name is sashimi.mscr then rename this VipMSCRexe.exe to sashimi.exe
This utility will first find MortScript.exe in Current directory and Sub directory under it
if not found then look in \Program Files and sub directory
if still not found then look in \Storage Card\Program Files
if still not found then look in root directory.
Once MortScript.exe found then find <exename>.mscr in same above fashion.
Once script found then execute command like MortScript.exe scriptname.mscr parameter1 parameter2 etc.
Advantages of this Utility
you can have only one installation of MortScript and may be all your script in one another folder.
Now if you want to call any of script copy this exe and rename to your scriptname.exe
Basically if you have script name sashimi.mscr then copy this exe and rename to sashimi.exe and put it in any folder
Root or storage card any where and run exe will execute your script you do not give any path or tell where it located etc.
To me MortScript.exe only support one parameter where as this Utility support multiple parameter
Version 1.0
Initial version
Version 2.0
Make changes so that Arguments are passed properly
Performance Improvement using config file
Version 3.0
Performance and Special Chars Handling in Mortscript's Path
Version 5.0
Performance improvement Using registry values
Version 6.0
Fixed Langeuge issue
Fixed Error Handling Routine
Very interesting. I have several uses for this right away so I'll download it and test. Many thanks for sharing!
Just want to note that although this is a fine tool (I'm using it for SASHIMI), if you DON'T need to pass parameters to your program you would be better off to use a renamed Autorun.exe file from the MortScript download.
The only reason I say this is becuase of the delay that VipMSCRexe has when locating/opening the script.
But, if you need to pass parameters to your script, this is the tool!
Don't work in my PC "System.ArgumentException: URI formats are not supported"
In smartphone with WM6.1 is the same error
hurtavy said:
Don't work in my PC "System.ArgumentException: URI formats are not supported"
In smartphone with WM6.1 is the same error
Click to expand...
Click to collapse
Don't work in my PC "System.ArgumentException: URI formats are not supported"
Only Supported for Pocket PC's not for desktops
In smartphone with WM6.1 is the same error
SmartPhone and WM6.1 I am not sure you have smartphone or Wm6.1
Can you please let me know which phone you have?
I have Motorola MPx200 with WM6.1 Standart Russian.
Error message is in russian language. Translate:
System.ArgumentException: It is not possible to show the error message, since it is impossible to find its containing additional assembling of resources in System.IOath:InternalCombine()...
Do you have .netCf 3.0 installed?
hurtavy said:
I have Motorola MPx200 with WM6.1 Standart Russian.
Error message is in russian language. Translate:
System.ArgumentException: It is not possible to show the error message, since it is impossible to find its containing additional assembling of resources in System.IOath:InternalCombine()...
Click to expand...
Click to collapse
Do you have .netCf 3.0 installed?
v3patel said:
Do you have .netCf 3.0 installed?
Click to expand...
Click to collapse
No. Only .NETcf 2.0
I do not have smartphone to test but can you try changing your languegue to english and then try. I just want to see is it languege problem or somthing else.
Posted Version 6.0
Posted Version 6.0
v3patel said:
Posted Version 6.0
Click to expand...
Click to collapse
You Can make it run in Win-CE ?
Great App.
But I have a same problem, it delayed 3-4 second before running a script.
Hope that you can fix it!
Thank u.
blue1311218 said:
Great App.
But I have a same problem, it delayed 3-4 second before running a script.
Hope that you can fix it!
Thank u.
Click to expand...
Click to collapse
Me too, I know that you may have heavy code inside to do like path checking & etc., may be another version with just execute the .mscr in same folder as MortScript.exe & <VipMSCRexe>.exe ?
Many thanks for this great app.,
Thanks, that the thing I need~~~
Hope you can me help
Hello,
i have program in the startup of my WinCE 5 Falk GPS. After the Hard Reset, has a Error. And the text:
Script \Temp\0084Script.mscr not found, waiting for existence (Storage Card not Initializied?)... After 3 sec. my falk stops.
Sry for bad english, im german.....
just like to share with you how with those who need a command line for
"Settings" aka "Control Panel" and for
"Programs List" aka "Start Menu"
there have been apps like "control.exe" and "folderview.exe" which did the same but on my device (and os) it is not working anymore.
however, you need mortscript:
to launch "Settings" execute this command:
Code:
Show(FindWindow( "Settings", complete, yes, no, no, "MSSTARTMENU" ))
to launch "Start Menu" simply execute this command:
Code:
SendWin
i am sure it will be of help for those who create their own UI
Add this:
Launch "Programs":
Code:
Show("Pograms")
Launch "Settings" for WM5/6.0/6.1
Code:
Show(FindWindow( "", complete, yes, no, no, "Dialog" ))
Launch "Settings" for WM6.5
Why not use
Code:
Show("Settings")
since this window has a valid title.
is it possible to use the above command lines in an lnk file?
twfx said:
Why not use
Code:
Show("Settings")
since this window has a valid title.
Click to expand...
Click to collapse
... because mortscript tries to find the "best" fitting window for your criteria. if you just provide "Settings" mortscript might also find another window named Settings.
but you are right it is not mandatory - just regard the other parameters as additional.
oldsap said:
is it possible to use the above command lines in an lnk file?
Click to expand...
Click to collapse
yes it is. just write path and name of the .mscr file in your .lnk file - just as you would do with .exe files
Can U guys please provide ready mortscript or lnk to launch Seetings in wm 6.1 ? I would be very gratefull ! Because i get confused what shall i do ... Thankx a lot !
Krzysiec said:
Can U guys please provide ready mortscript or lnk to launch Seetings in wm 6.1 ? I would be very gratefull ! Because i get confused what shall i do ... Thankx a lot !
Click to expand...
Click to collapse
i do not know if the above code really works on wm6.1
but i warmly recommend to install total commander which can do all for you:
you can create a file, rename it to <name>.mscr
add the above script line - save and close
double tab on the script and it is being executed
if it works, control panel will appear
to create a shortcut: there is also a menu for creating shortcuts
egoist6 said:
i do not know if the above code really works on wm6.1
but i warmly recommend to install total commander which can do all for you:
you can create a file, rename it to <name>.mscr
add the above script line - save and close
double tab on the script and it is being executed
if it works, control panel will appear
to create a shortcut: there is also a menu for creating shortcuts
Click to expand...
Click to collapse
But which string exactly ? Because there are few of them above :/ Tried to create mscr files with settings string for WM 6.1 but no luck Can`t get this work ...
Unknown function findwindow
Line:
Show.......
Invalid parameter count for `Show`
Line:
Show.......
Those two errors pop up...
Krzysiec said:
But which string exactly ? Because there are few of them above :/ Tried to create mscr files with settings string for WM 6.1 but no luck Can`t get this work ...
Unknown function findwindow
Line:
Show.......
Invalid parameter count for `Show`
Line:
Show.......
Those two errors pop up...
Click to expand...
Click to collapse
as said i do not know if string
Show(FindWindow( "", complete, yes, no, no, "Dialog" ))
really works as i can't test it myself. if problems appear post here again and you'll be helped
however, you need v4.3 which is beta (but works perfectly stable). here. that's why you get error messages.
Show("Settings") worked
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Farmer Ted said:
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Click to expand...
Click to collapse
hm. not sure what the problem exactly is.
what do you mean by re-start start menu?
Well, with magic button you can actually kill the start menu. I believe it's part of a service, but haven't been able to track it down. For instance, I've used sk tools to save the list of running services, killed the start menu, then looked at the services and not seen any obvious changes (the same goes with processes). When the start menu is dead, it won't open up at all. I'd like to find out how to get it going again without resetting.
Farmer Ted said:
Well, with magic button you can actually kill the start menu. I believe it's part of a service, but haven't been able to track it down. For instance, I've used sk tools to save the list of running services, killed the start menu, then looked at the services and not seen any obvious changes (the same goes with processes). When the start menu is dead, it won't open up at all. I'd like to find out how to get it going again without resetting.
Click to expand...
Click to collapse
check it with dotfred's taskmanager and browse through the windows.
probably magic button closes this window.
Maybe the HoneyComb is shell32.exe, can you confirm?
And what is other side-effects without honeycomb?
Edit: I'm on the reverse side, want to kill it ! Just no device to test it ATM, but eager to know, also several weeks looking for this.
Just install magic button, it kills all!
Thanks Farmer Ted for the info, another lite tool added to my suitcase: MagicButton.
Just still curious to know what is exactly the WM6.5 Start Menu. (Edit: Check this tread for the start menu close issue.)
To be less off-topic, here is another thread talking about similiar issue of this thread:
http://forum.xda-developers.com/showthread.php?t=381281
wg5566 said:
To be less off-topic, here is another thread talking about similiar issue of this thread:
http://forum.xda-developers.com/showthread.php?t=381281
Click to expand...
Click to collapse
yeah. i know as i have posted a solution to this thread. that was wm6.0 or wm6.1.
those apps mentioned in the thread you are talking about do not work on wm6.5
this thread is about wm6.5
Farmer Ted said:
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Click to expand...
Click to collapse
Add MSSTARTMENU to your exclusion list. That is what I just did to Smartskey.ini exlude list for closeapp
Krzysiec said:
Show("Settings") worked
Click to expand...
Click to collapse
Hi
i tried this but does'nt work...
can u help me please? (i'm on WM6.5)
SendWin
Sleep( 2000)
Show("Settings")
End
The startmenu opens but i have the error message: could not find window 'Settings'
hello to all
i have a exe file and i want to lauch it at every startup ....i tried to add in startup folder with app.dat but the program does not launched but it is correctly situated in startup folder ...i have to click the exe file to launch ...will anyone please help me if u have any solution ...
thanks to all
Put the .exe anywhere then try putting a link to it in the \Windows\Startup folder
NilsP said:
Put the .exe anywhere then try putting a link to it in the \Windows\Startup folder
Click to expand...
Click to collapse
thanks but this method not working ...;i have to click that program to launch
Hi,
second methode:
Code:
[HKEY_LOCAL_MACHINE\init]
"Launch50"="\\Program Files\\Your Tool\\Example App.exe"
with friendly greet
starbase64
Try to pun a .lnk instead a .exe in Startup folder (through app.dat i mean),not completly sure but i just checked my Startup folder and i can see only .lnk inside.
starbase64 said:
Hi,
second methode:
Code:
[HKEY_LOCAL_MACHINE\init]
"Launch50"="\\Program Files\\Your Tool\\Example App.exe"
with friendly greet
starbase64
Click to expand...
Click to collapse
thanks bro but still not working i tried this method..;my file is in windows
REGEDIT4
[HKEY_LOCAL_MACHINE\init]
"Launch151"="\\Windows\\notifbar.exe" .;;i have putted 151 just like that
af974 said:
Try to pun a .lnk instead a .exe in Startup folder (through app.dat i mean),not completly sure but i just checked my Startup folder and i can see only .lnk inside.
Click to expand...
Click to collapse
thanks yes i tried but not working
You may need to add a depend key for the app, and make sure it launches after everything else. If there's too much stuff going on during startup when it's trying to launch, perhaps there isn't enough available memory to get it going. Just look at the other depend keys; basically, I think you just want to list all of the processes launched in the init queue. You could also increase the delay time between launches (this might work better w/ the startup folder) from 5 seconds to 6 or 7.
Farmer Ted said:
You may need to add a depend key for the app, and make sure it launches after everything else. If there's too much stuff going on during startup when it's trying to launch, perhaps there isn't enough available memory to get it going. Just look at the other depend keys; basically, I think you just want to list all of the processes launched in the init queue. You could also increase the delay time between launches (this might work better w/ the startup folder) from 5 seconds to 6 or 7.
Click to expand...
Click to collapse
ok thanks bro will try this
One-tier versus Two-tier Devices
Windows Mobile Device Security Model
One-tier versus Two-tier Devices;
The first part of the security policy is known as access tiers; devices can have one-tier or two-tier access.
To me it seems you have a two-tier access shafizal.
The file ‘HARET’ cannot be opened. Either is it not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file.
I have been happily using Android for the past several months. I have had no problems with it up until today where I can no longer load it.
I get the message above when clicking both HARET or CLRCAD and also as soon as I restart my phone, replacing HARET with 'boot' which I think is my Android loader.
I have searched and there have been very few cases of this and of those related to Android, the all happen the first time someone is installing Android.
Any help would be much appreciated.
Yep I get them too, But since I dont use WinMo currently, I just say erase and reset WinMo and then after its done bringing the phone back to factory default, I re-run clrcad and haret and no problems, I think its a security permission issue, so this time when it happened, I went in with a reg editor (CeRegEditor) and unlocked the registry, and then navigated to :
[HKEY_LOCAL_MACHINE\Security\Policies\Policies]
"0000101a"=dword:00000001
"0000101C"=dword:00000001
Make sure they look like that, save the registry and restart the phone. I think the "101a" setting being "0" is whats preventing the unsigned files to load. But cant hurt to try, since doing this I havent had to restart my phone to see if it works.
Are you saying that a hard reset is the only way to go?
Its the only one I found that allows you to get back into Android. If you have anything in WinMo back it up. Now there is one other possibility, its a Long shot but it might work. (Hence the KeyWord: "MIGHT").
Download yozgatg's Gen.Y Dualboot:
http://forum.xda-developers.com/attachment.php?attachmentid=299122&d=1269552359
See if you can install that (in windows obviously)on to Device no SDCard, if you can then download this file as well: HeadHunter2009 Mod
http://forum.xda-developers.com/attachment.php?attachmentid=464093&d=1292335730
HD2 ONLY:
First install MortScript
2. Install Gen.Y DualBOOT
3. Rename Haret.exe in your Android folder on StorageCard to Haret2.exe Important
4. Copy Haret.exe from my attachement to Android folder on StorageCard
5. Copy run.mscr and run.exe to Windows folder replacing axisting one
6. And then import Gen.Y.reg.reg file to the registry.
Need Mortscript.
Now, if that doesnt work, I have one FINAL try then im out of guess:
Extract the file run.mscr from the second link. Navigate to windows and paste that file, then go to startup folder, remove any shortcut links in there and add a shortcut to that file into this folder. (Again, this idea is heavily dependent that you can get Mortscript installed) reboot the phone, at initial startup, it should hit that shortcut and boot into Android without any intervention from you. (If this does work, and you want to go into Windows, remove SD Card to prevent booting to Android)
And one final thought, use CeRegEditor, and back up the Reg Location I stated, then after saved to your hard drive load it into the editor, or open it with notepad, edit the lines I said, save it and then import it back to the phone.
Short of these ideas, I dont have any more to offer. Good luck.
Thanks alot for that. I will have a go this weekend and report back on here.