Creating (startup) link in WP7. Exe link is launched, dll not. - Windows Phone 7 Development and Hacking

Hi friends. I want to make link in \Windows\StartUp directory, for having my app everytime launched after phone restart. I could not find any thread on XDA, solved it. I am apologize, if my searching is wrong. When I put to this directory lnk file with PhotoEditor, Opera and Callendary link, this appps are launched good after restart. Those links are working also for user-request launching (by doubletap or "run" in my phone commander etc). But, do you know anybody, how I can make link for dll? I want make application (or plugin to Phone Commander) for WP7 StartUp easy management. I tried link as parameter of Taskhost.exe, but it is not functioning. Also parameters for pword.exe and ie9 not function for me (pword.exe or htmview.exe is launched, but clean and unoperatible).
Working:
935#\Windows\PhotoEnt.exe -o main?hotoapp
982#"\Program Files\Opera Mini\OperaMini5-WM-armv4.exe"
Not working:
980#\Windows\taskhost.exe {8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E}
981#\Windows\taskhost.exe 8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E
982#\Windows\taskhost.exe \Application\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\Phonmander.dll
983#\Application\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\Phonmander.dll
984#\Windows\pword.exe "\My documents\Dw.txt"
985#\Windows\htmview.exe "\My documents\Example.htm"

Great find. I will do some testing
Sent from my SGH-i917 using XDA Windows Phone 7 App

Related

Office Mobile for WM6

Hey Everybody, I downloaded WM6 and it worked like a charm. However, for Office Mobile, can you only edit documents that you already have saved or can you start a new document. I tried starting a new document, but it word, excell, and powerpoint take me to the file explorer page. Can anyone help me please?
help with what exactly?
you can't create a new doc, just edit.
the work around is to create blanks on your pc and save them on your phone. just edit the blank and save as.
if you use bittorrent you can download Office Mobile and install it. Worked for me, but not on WM5 when I reverted back.
@sam1964:
look at this thread at modaco forum (you must register to download files).
Newchurch
I downloaded modaco's app, it works great. How did you download office mobile? I see you said bit torrent, do I just put Office Mobile in and search?
How do you download the modaco app?
Can anyone give me a detailed way of how to download modaco's app please?
register at their site and then you can download it.
... (you must register to download files).
Click to expand...
Click to collapse
... didn't I say that ? ; )
How to properly unzip the file and install CAB file for the Modaca app?
I tried unzipping the modaco file and that worked out perfectly. However, when I download the CAB file in the my documents folder in the phone. next, when I try to open the CAB file in the my documents folder, then the phone says cannot open the specified file because it has to be associated with a program that I have already downloaded. Can anyone give me a step by step way of dowloading it please?
Hi to all! I've moto mpx200. Where i can find WM6 for it?
lcm86 said:
Hi to all! I've moto mpx200. Where i can find WM6 for it?
Click to expand...
Click to collapse
*ding* *ding* I think we have a winner for most ignorant post of the day. Just kidding. Really though, you're in the wrong section for the forum for the mpx200, and the mpx200 is so damn old that the support for it has ended, which means that there's no way in hell wm6 is going to be put out on it. In fact, WM5 final was never released for the device.

I'm Looking for good editor ...

I'm looking for a good editor (free preferred) that would run on the PPC. Word is fine for many things but I don't want to be restricted to the .doc, .txt etc file types (specifically I want easy access to skin.xml files for editing on the PPC).
Can you suggest a good editor? I'm having NO luck today searching for one. I was directed to PPC_Edit and it works fine EXCEPT that it will not browse outside the predefined file structure to where I saved the Skin.xml file
Or how do you change Word to see all file types?
Thanks,
NK
Do you mean a text editor. If so, you might look into Pocket Notepad, found at http://tillanosoft.com/ce/pnotepad.html. To see more files than the normal file dialogue box gives you (although it won't work with Word, Excel, or Powerpoint), look for the file dialogue changer. You need to have "gsgetfile.dll" in the Windows directory for it to work.
PocketNotepad did not work for me :-( And it does allow browsing all file structures.
The "DEL" anf Backspace do not work correctly on my PPC (WM 6 Maglite version on Axim X50V).
NK
UPDATE: I rebooted the PPC and it works now. Wow ... self correcting software ...Cool
You could always connect it to a PC and use a PC editor to edit.
Alan
CKE (http://www.animaniak.com/cke/cke_main.asp) is the best text editor I have found for the PPC. It has syntax highlighting and many other useful features. Give it a go.
Cheers
Mark

Kavana WM6.1, Esmertec JBed, and Opera Mini: A Complete Solution

Hello everybody,
I've figured a few things out regarding JBed and Opera Mini on Kavana's latest WM6.1 ROM, and I thought I'd share them with you.
Introduction
First off, a quick introduction: Opera Mini 4, a Java MIDlet web browser, is arguably the best browser available for Windows Mobile. It routes traffic through Opera servers, so it doesn't take as much data (or time) to browse the Web, and it has small-screen rendering like iPhone's. Slashdot, for example, loads in seconds under OM, as opposed to half an hour in Pocket IE. Esmertec JBed respects the system's network settings, so it works with the T-Zones $5.99 internet trick.
JBed isn't perfect, though. It has a few glaring issues: network access permissions, inability to use a MIDlet as a systemwide default browser, and ugly fonts. I haven't figured out the last one yet, but the first two are solvable, and here's how.
Network Access Permissions
Most tutorials for fixing this problem refer to the file \Windows\AppDB\Selector.utf; editing this file and replacing the text
Code:
domain=untrusted, \
with
Code:
domain=tckmax , \
fixes the problem under Cloudyfa's JBed. The version of JBed in Kavana's WM6.1 stores its data in \Application Data\JavaDB, and the selector.utf trick doesn't work. The culprit is a missing file named policy.utf, which defines tckmax. I've attached a copy of this file; just move it to your \Application Data\JavaDB directory and the selector.utf trick will work as usual.
Systemwide Default Browser
First off, you can make it easier to access Opera Mini by changing the short_IE.lnk file to open OM instead of PIE. I've attached a version of that file for your convenience; copy it to your \Windows directory and the IE (or T-Zones) button will open a usable browser for a change. This only works if OM is the first MIDlet you've installed; if you have installed other MIDlets you'll have to edit the shortcut (Notepad works nicely) to reflect the change. If OM is your second MIDlet, change s0_ to s1_; third, s2_; and so on.
Also, various MortScript scripts have been floating around that attempt to automate the process of copying a clicked link to the system clipboard, opening OM, and pasting the link into the address bar. I haven't found one that works, but a much better solution is available. The linked post contains a CAB file (which I've reposted here for convenience) that installs an actual application that works well under WM6.1. This one is hardcoded with the assumption that Opera Mini is the first MIDlet that you've installed.
One Other Thing
I recommend backing up your \Application Data\JavaDB directory once you get everything working; you can simply copy it back from your backup after a cold boot to get everything working again. I don't know how to make a CAB file myself, but if someone is up to the challenge, I'd suggest making a single file that installs Opera Mini and the Opera Mini Default Browser application, and optionally replaces the PIE button with OM. Or maybe Kavana can add this to his next ROM
Hope you find this useful!
EDIT: The application I've attached only works if Opera Mini is the first application ever installed under JBed. If you uninstall it and reinstall it, it will get a new suite number. You can look at your selector.utf file and figure out your suite number (e.g., s1_), but I would recommend clearing out your \Application Data\JavaDB folder to reset your suite numbers. Also, it may be a bad idea to edit your selector.utf file in Notepad; a hex editor should avoid corruption issues.
~truggl
awesome! thanks!
very useful, thanks!
Great Job!!
How do you tell what the s number is for the OM midlet?
When I press the short key cut key I get a "Could not find suite s0_" error message. When I dismiss the message I get the jbed midlet manager window which list Opera Mini and it's the only applet listed. I click on that and Opera Mini opens up.
Perfect, the policy.utf file did the trick. I'm not so sure that I want to replace the iexplore shortcut to OM because there are still some limits to the OM applet over PIE. OM can't launch youtube for example.
Thank you ... thank you - Tim
truggl said:
Hello everybody,
I've figured a few things out regarding JBed and Opera Mini on Kavana's latest WM6.1 ROM, and I thought I'd share them with you.
Introduction
First off, a quick introduction: Opera Mini 4, a Java MIDlet web browser, is arguably the best browser available for Windows Mobile. It routes traffic through Opera servers, so it doesn't take as much data (or time) to browse the Web, and it has small-screen rendering like iPhone's. Slashdot, for example, loads in seconds under OM, as opposed to half an hour in Pocket IE. Esmertec JBed respects the system's network settings, so it works with the T-Zones $5.99 internet trick.
JBed isn't perfect, though. It has a few glaring issues: network access permissions, inability to use a MIDlet as a systemwide default browser, and ugly fonts. I haven't figured out the last one yet, but the first two are solvable, and here's how.
Network Access Permissions
Most tutorials for fixing this problem refer to the file \Windows\AppDB\Selector.utf; editing this file and replacing the text
Code:
domain=untrusted, \
with
Code:
domain=tckmax , \
fixes the problem under Cloudyfa's JBed. The version of JBed in Kavana's WM6.1 stores its data in \Application Data\JavaDB, and the selector.utf trick doesn't work. The culprit is a missing file named policy.utf, which defines tckmax. I've attached a copy of this file; just move it to your \Application Data\JavaDB directory and the selector.utf trick will work as usual.
Systemwide Default Browser
First off, you can make it easier to access Opera Mini by changing the short_IE.lnk file to open OM instead of PIE. I've attached a version of that file for your convenience; copy it to your \Windows directory and the IE (or T-Zones) button will open a usable browser for a change. This only works if OM is the first MIDlet you've installed; if you have installed other MIDlets you'll have to edit the shortcut (Notepad works nicely) to reflect the change. If OM is your second MIDlet, change s0_ to s1_; third, s2_; and so on.
Also, various MortScript scripts have been floating around that attempt to automate the process of copying a clicked link to the system clipboard, opening OM, and pasting the link into the address bar. I haven't found one that works, but a much better solution is available. The linked post contains a CAB file (which I've reposted here for convenience) that installs an actual application that works well under WM6.1. This one is hardcoded with the assumption that Opera Mini is the first MIDlet that you've installed.
One Other Thing
I recommend backing up your \Application Data\JavaDB directory once you get everything working; you can simply copy it back from your backup after a cold boot to get everything working again. I don't know how to make a CAB file myself, but if someone is up to the challenge, I'd suggest making a single file that installs Opera Mini and the Opera Mini Default Browser application, and optionally replaces the PIE button with OM. Or maybe Kavana can add this to his next ROM
Hope you find this useful!
~truggl
Click to expand...
Click to collapse
Kinda bummed.... I cant seem to get this to work. Everytime I edit selector.utf with the new code, my opera midlet dissappears. I have policy.utf in the directory so I am at a loss. ???
Works great on my system - many thanks for this!
Poser said:
Kinda bummed.... I cant seem to get this to work. Everytime I edit selector.utf with the new code, my opera midlet dissappears. I have policy.utf in the directory so I am at a loss. ???
Click to expand...
Click to collapse
I had the same problem. I was using notepad to edit selector.utf which I guess is bad. Try using a hex editor or run this script. http://treo.discussion.treocentral.com/tcforum/showthread.php?t=152078
socal1 said:
How do you tell what the s number is for the OM midlet?
When I press the short key cut key I get a "Could not find suite s0_" error message. When I dismiss the message I get the jbed midlet manager window which list Opera Mini and it's the only applet listed. I click on that and Opera Mini opens up.
Click to expand...
Click to collapse
I think i figured this issue out. Edit the Opera Mini.lnk file from run s0_ to run s4_
pudgedaddy said:
I think i figured this issue out. Edit the Opera Mini.lnk file from run s0_ to run s4_
Click to expand...
Click to collapse
Yes, it will depend on how many java programs you installed before so that you can get an accurate count.
socal1 said:
I had the same problem. I was using notepad to edit selector.utf which I guess is bad. Try using a hex editor or run this script. http://treo.discussion.treocentral.com/tcforum/showthread.php?t=152078
Click to expand...
Click to collapse
Worked a charm , thanks much mate
removed: dbl post
DaMilky said:
Yes, it will depend on how many java programs you installed before so that you can get an accurate count.
Click to expand...
Click to collapse
Opera is the only java app that I have installed and I still get the error, however, I have installed and uninstalled a few times... so I think there may be .db remnants that force it further down the "install list" e.g. s2_
edit: just had to clean up \\application data\javaDB, works fine
Hi all,
Glad I was able to help. I added a bit of information to my original post; I recommend starting with a blank slate, so to speak, because OperaDefault.cab is programmed with that assumption. When in doubt about your suite number, and if you don't care about OperaDefault, then you can look in (or post) your selector.utf file and get it from there.
~truggl
Esmertec jbed
Can someone point me to forum where i can get esmertec jbed?
I'm looking for a couple of hours already.
Please help....
Having a very strange problem with Opera Mini 4. I'm using Ricky's Rom V5 with my Dash and Opera will not display fonts correctly. They all seem to have horizontal lines going through them and appear to be slightly stretched (that could be my imagination though). I checked the Jbed version and it appears to be the latest one (I never changed it) and I'm not sure where to go from here. Opera boots and runs fast but it's not legible at all. Any suggestions as to what I can try? I searched XDA but couldn't come up with anything. Thanks,
kasim1 said:
Can someone point me to forum where i can get esmertec jbed?
I'm looking for a couple of hours already.
Please help....
Click to expand...
Click to collapse
NM, I found Esmertec.
ItsDon said:
Having a very strange problem with Opera Mini 4. I'm using Ricky's Rom V5 with my Dash and Opera will not display fonts correctly. They all seem to have horizontal lines going through them and appear to be slightly stretched (that could be my imagination though). I checked the Jbed version and it appears to be the latest one (I never changed it) and I'm not sure where to go from here. Opera boots and runs fast but it's not legible at all. Any suggestions as to what I can try? I searched XDA but couldn't come up with anything. Thanks,
Click to expand...
Click to collapse
I am having this same problem. Does anyone know how to change the font in Opera Mini?
DaMilky said:
Yes, it will depend on how many java programs you installed before so that you can get an accurate count.
Click to expand...
Click to collapse
NOT TRUE.
I tried to use from s0_ to s4_, nothing worked....
Untill i opened my selector.utf(windows\appdb) and seen that gMail is "root=s-1_", so i've change my shortcut to point to "s-1_", this did the trick.
Thanx.

Beginner cooker problems

Hi there!
I'm a beginner cooker and need some help with few things that I can't solve with myself
My ROM is based on WM6.5 build 61222 in Ervius Kitchen 8.0
1. Copying the files in File Explorer doesn't work... First I tap on specific file, then I select "copy", then I want to specific the path in the top left corner, f.g. from IS to maim memory and then it crashes...I don't know what to do
2. Opera9.exe and AlbumSearcher.exe are active all the time in Processes list in dotTask Manager. I have to kill them but after SR they appear again. Isn't it something wrong?
3. After every SR calendar and contacts are poping up... how can I solve it?
4. I want to set the softkeys (I'm not using Manila or Titanium) so I made registry key, but I don't know what is the .exe name for contacts? For sure it's not poutlook.exe because it gives no reaction. So what .exe should I put into the registry file?
Thanks in advice!
REGARDS!
1: use Total Commander
2: there's a registry entry you need to add for opera to exit on closing; google for this one
3: check your init/and-or startup
4: it's actually a link in rai; poutlook -contacts
adwinp thanks for answering, but...
1. Total Commander is an alternative program but I want to fix the problem with builded-in File Explorer. I want my ROM to be free of bugs as much as it's possible.
2. It's not problem with closeing because opera9.exe is there at the beginning, after every SR even if I didn't run it.
3. Don't understand
4.So what am I suppose to add in this registry value?
[HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\112]
@="Contacts"
"Open"="poutlook -contacts"
Is it correct?

[Coming Soon] On-Phone Native FTP Server

Hello again XDA!
I've been working on a FTP Server for rooted Windows Phone 7 phones, and I've got it already working.
Here's a screenshot of it in action:
I will release the server hopefully today. Please leave comments on what you think.
I think this will be a really nice feature for our wp7´s,thx for you hard work
Omnia7xdax said:
I think this will be a really nice feature for our wp7´s,thx for you hard work
Click to expand...
Click to collapse
Thanks! I ran to a little issue with my Silverlight installer app so the actual release is delayed a bit, but here are the binary files and needed registry modifications for people who want to try it:
Unzip the attachment and copy ftpd.dll to the \Windows\ directory on your phone.
Needed registry edits:
Code:
[HKEY_LOCAL_MACHINE\Services\FTPD]
"FriendlyName"="FTP"
"Dll"="FTPD.Dll"
"Order"=dword:9
"Keep"=dword:1
"Prefix"="FTP"
"Index"=dword:0
[HKEY_LOCAL_MACHINE\COMM\FTPD]
"IsEnabled"=dword:1
"UseAuthentication"=dword:0
; "UserList"="add;semicolon;separated;list;of;users;here" ; NOT TESTED, MIGHT NOT WORK
"AllowAnonymous"=dword:1
"AllowAnonymousUpload"=dword:1
"AllowAnonymousVroots"=dword:1
; The directory sent to the FTP client
"DefaultDir"="\\" ; Note that this is actually only one \ but the other one is there for the registry file parser.
; Idle time (in seconds) after which the connection is automatically closed. Default = 5 mins
"IdleTimeout"=dword:12c
Now after a restart your phone should be accessible via FTP.
This is really interesting ...
But is there any good FTP client for Windows Phone ?
It would be a shame to have the server and not the client ...
Yes,i can upload my files to my lumia710!at Temp/ftp.
but,i did't see it on the FTP software.
thank you very much.
Pics was here!
Hmm, interesting. I removed some debug-only registry entries, but could you also try adding these and then reboot:
Code:
[HKEY_LOCAL_MACHINE\COMM\FTPD]
;To control logging
"DebugOutputChannels"=dword:2
"DebugOutputMask"=dword:17
"BaseDir"="\\Windows"
"LogSize"=dword:1000
Also remove the UserList entry if you added it (was commented out) and try FileZilla.
I'm very busy with school and christmas stuff right now so I can't release the Silverlight app just yet.
Hi Jessenic.
Thanks for nice work. I have mobile device here only, I will send you tomorow my "installator" source code, which is xap application, able to copy files from its content (Isolated storage) to any directory (\Windows , \Program Files etc.), to prepare needed registry changes and to create startup link (switch on cause starting any native exe on phone booting time, it is not needed for your dll). You can try instalator behaviour on simple profiles changing application from http:/HTC7Pro.howto.cz/Profiles/ProfilesWP7.xap (install application, which automatically switch to silent mode on the night, installator can start/stop application and deploy/remove system startup link by UI buttons).
I do not understand good - is possible to connect this server by GSM internet, or by local wire(less) net only? If local only, do you mean is possible to prepare GSM connection? How can be server identified on global net, when GSM does not allow solid IP without any web side daemon? Local filesystem connection solved Ultrashot, local FTP solves directory security, but a few of people will use it.
Second question - I want to make ftp client plugin to Phone Commander. Have you any usable sources (I can send you simple PCMD plugin interface) to help it?
M.
FTP Server Installator
There is FTP Server simple XAP Installator. It will works on unlocked WP7, must be run no any other my or W.I.N.C.O application together.
Thx Guys,
works very well on HTC HD7
Wish you all nice Christmas and a happy new year.
Martin7Pro said:
There is FTP Server simple XAP Installator. It will works on unlocked WP7, must be run no any other my or W.I.N.C.O application together.
Click to expand...
Click to collapse
Wont open on L710
djtonka said:
Wont open on L710
Click to expand...
Click to collapse
Have you got full unlocked ROM? Or Installator allowed in WP7 Root Tools? M.
Yes, full unlock via ROM. It closing itself.
Could install on my Lumia 710 with custom rom. The registry settings got installed. How am I supposed to access the filesystem through ftp now?
djtonka said:
Yes, full unlock via ROM. It closing itself.
Click to expand...
Click to collapse
It seems as exception. I will finished registry library next week and send you new installator. Old version use native exe to change registry, no simple way to find error exists. New Installator version with Native->Managed TRACE macro (see http://forum.xda-developers.com/showthread.php?p=35820222#post35820222) can be simply debugged in VS2010 Express for WP.
EDIT: Native debug TRACE is finished here. If you have installed VS2010 (may be Express) for WP7, I send you Installator sources to see, where exception occures. If you have got VS2008 Proffessional with VM 6.5.3 DTK too, you can edit native sources yourself, or I can add traces to native function, which will crash in your VS2010.
This way is realy awesome!
Thx again, coolest thing, you can activate Internet Connection Sharing and
people can download files from your "server" really cool. ftp server on the go *g*
tested and works!
Isn't there an official xap to install this server on the phone yet ?
I don't want to manually put files on my device ...
thx
dragonide said:
Isn't there an official xap to install this server on the phone yet ?
I don't want to manually put files on my device ...
thx
Click to expand...
Click to collapse
I ran to a little problem, the thing is that you cannot uninstall the FTP server because it starts at boot time and it would need to be stopped before the registry entries can be deleted. You can disable it though, but not completely remove. I am not at home and I don't have VS2008 on my laptop so I cannot create a native method to stop the FTP daemon. If you are interested, I can send you the current XAP I have though.
Martin7Pro has posted a xap
http://forum.xda-developers.com/attachment.php?attachmentid=1584966&d=1356228331
DarkD1988 said:
Martin7Pro has posted a xap
Click to expand...
Click to collapse
True, but I cannot give support for that. If you run into any problems with that you need to ask Martin7Pro.
jessenic said:
I ran to a little problem, the thing is that you cannot uninstall the FTP server because it starts at boot time and it would need to be stopped before the registry entries can be deleted. You can disable it though, but not completely remove. I am not at home and I don't have VS2008 on my laptop so I cannot create a native method to stop the FTP daemon. If you are interested, I can send you the current XAP I have though.
Click to expand...
Click to collapse
You think you are going to fix this problem ?
I prefer to wait for your proper release.

Categories

Resources