yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Please do post test results for the second test version. I still can't get it working on my phone, but I want to know if it works on a full-unlock - if not, there's a bug in the app, but if so then the issue is in the way I elevate. Please give it a try!
[Windows Phone 7 Development and Hacking] pdaimatejam:
gave the same error

version 2
[Windows Phone 7 Development and Hacking] ultrashot:
OOM exception while checking association, on minimizing-resuming it asks for associating (and does it correctly), but then SUCCESS on installation :)
[Windows Phone 7 Development and Hacking] pdaimatejam:
except update

application tries to install

thanks :)
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Now *that* is bloody weird; even without elevation the app gets further than that. This happens when you open a XAP file after associating the app with XAP files, right? (Was it really too much to ask that people actually provide a proper report?) There's only two places that the app uses GetResourceStream - one to open the XAP file, and one to open the manifest from within the XAP file.

I've made some changes to the app, which should make it more resilient to unexpected parameters and will hopefully help make the GetResourceStream calls less likely to fail. Please remove any manual file association you created for the app (set it back to the defaults) and run the test procedure again with the new test3 build (will be uploaded momentarily). The app was able to associate itself correctly on my phone starting with test2.

I'd also like to see this tried on some different custom ROMs. It *should* work but I still can't get the actual install to succeed on my phone (though it does get that far...).
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@ultrashot: Wow, the OOM is weird and I haven't seen that in my testing, but hey, if it worked the second time... OK then! Thanks for the success report! Time to look into what level of unlock is required and figure out how to get it on a stock ROM, because elevating the app doesn't seem to be enough...
[Windows Phone 7 Development and Hacking] Kr3i0s:
Hi GoodDayToDie, I am using HTC Gold with Dyanamic7 Rom. Firmware 51201.401. Have installed the XapHandlerTest2.xap and I am able to install Xap files which are stored in the device. Please let me know if you require any more details.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Can you do updates? I'm *sometimes* able to install an app that is not yet installed, but if the app is installed, either an update or a clean install always fails. Clean install seems more reliable immediately after rebooting the phone, but it still appears non-deterministic to me.

I hate Schroedenbugs... although HtcRoot seems to have a lot of them. I need to work on that some more.

Still, it's progress. Hopefully, by the time WP7 Root Tools 0.9 is out and the app can be used on more stock ROMs, it'll be fully working...
[Windows Phone 7 Development and Hacking] pdaimatejam:
v3 test

except update

application tries to install

thanks
[Windows Phone 7 Development and Hacking] Mattemoller90:
Where Internet explorer save the XAP? (I have a custom ROM (Omnia7))
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Temp folder is \Application Data\Volatile\
[Windows Phone 7 Development and Hacking] Xstyle:
Hey I just installed the test version 3 on my Lg Optimus 7 (E900) thanks to the new version of Root Tools ^^

When I open a .xap file in the email app The xapinstaller opens and I can pick Update of Clean install.

Now I tried to download a xap from the internet using internet explorer but he starts with the download and stops after a sec with the message that internet explorer cant open a xap blablabla.

Is there a fix for this or is it a know bug ?

Anyway great work so far :)
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Thanks for the update. I'd appreciate the full error in the future - if you can open a XAP from email, it should also open from IE (I am able to open from both, and while the version I'm using is slightly newer than yours, I haven't touched the file-association part).

I'll try to post a new version soon. The app *should* (and occasionally does) work via Root Tools... just not reliably, yet.
[Windows Phone 7 Development and Hacking] shtresatu:
this is how the error looks like on my LG E900 interop unlock, mango 8107 update, in the second picture, all the fields cannot be accessed. IE says only that IE does not support this file type.Cheers and good luck
[Windows Phone 7 Development and Hacking] Xstyle:
I had that error onces aswell shtresatu are you sure ya gave root acces to the app. After that send urself a email with a .xap inside, if its correct you can install that. And yea IE says the same even after assosiating xap with the app but yea maybe in the next version =D.
[Windows Phone 7 Development and Hacking] shtresatu:
maybe I'm like a total noob, but how to gave root access? I wasn't able to install not even from mail with atached file
[Windows Phone 7 Development and Hacking] Xstyle:
download Root Tools 0.9 from heathcliff here

Sideload it to ur phone and when ya start it go to the tab policies and turn xapinstaller on.

Now it has root access :)
[Windows Phone 7 Development and Hacking] shtresatu:
at the end of a f....ed up day, you made it more beautifull for me. Thanx for your answer and for your patience. "HEATCLIFF" You are one of the GODS from this forum. This app is exactly what I wanted to make another step in completing my phone. Thanks all of you awesome guys.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Yeah, I should probably trap exception 4EC (decimal:1260, "Blocked by policy") and pop up a warning saying that the program requires root permissions, and you should mark it as trusted in the WP7 Root Tools policy modifier.

Note also, the app requires policy elevation to be able to set the file association correctly. It will do this automatically if you just run it straight from the Apps list (and it has enough permissions), though.

Finally, yeah, the fields are intentionally read-only. Pass in a file, though, an dyou'll see information in them!
[Windows Phone 7 Development and Hacking] Jonny Rosworth:
good!!! but it works only on email, not yet on ie9...
[Windows Phone 7 Development and Hacking] Selkmann:
it works with ie you must add some reg`s
[Windows Phone 7 Development and Hacking] 64GUNSHIP:
care to share said values?
[Windows Phone 7 Development and Hacking] Selkmann:
[HKEY_CLASSES_ROOT\.xap]

@="xapfile"

[HKEY_CLASSES_ROOT\xapfile]

"EditFlags"=dword:00010000

[HKEY_CLASSES_ROOT\xapfile\Shell\Open\Command]

@="XAPDeployer.exe \"%1\""

[HKEY_LOCAL_MACHINE\Software\OEM\XapInstaller\Localization\0409]

"Title"="XAP Installation"

"UnexpectedError"="Error while opening file"

"InstallQuestion"="Do you really want to install this application?"

"InstallationCompleted"="Installation completed"

"InstallationFailed"="Installation failed"

"AlreadyInstalled"="This application is already installed. Do you want to update it?"

"Yes"="Yes"

"No"="No"

"Ok"="Ok"

"Cancel"="Cancel"

"Retry"="Retry"

after add reg's restart then open

XapInstaller

then install from ie
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Dude, Selkmann, I'm not sure what thread you think you're in, but this one's not about XapDeployer.exe - that's a native executable and can't be used on stock ROMs. It's also not by me (although it shares some code with this app).

I know why the open-from-IE is failing for some people (it works on my phone). I'll fix it for the next test build.

The missing entry is the EditFlags one (it was already on my phone but I forgot to add it to the app's code). You can add it easily enough with WP7 Root Tools or similar.

For people on custom ROMs, the above code is correct if you want to go back to the XapDeployer program. For people on stock ROMs, changing those registry values - in particular, the one for shell\open\command - will break this app until you re-run it from the app list.
[Windows Phone 7 Development and Hacking] shtresatu:
Guys. I've jyst discovered a tricky way to install .xap directly on interop unlock lg e900.

So: all pieces used are... Touchxperience, wp7 root tools from heatcliff and ucbrowser from mp (I know, is too much, but better than nothing).

you download your xap file with ucbrowser. Open wp7 root tools explorer and go to application/ data/ 6cda5651......etc/data/isolated storage/ download. There you will find your downloaded xap. Copy it to my documents. Give trusted root privileges to touchxperience and open file explorer from it /my documents. You click on it and will install through XAP HANDLER (from gooddaytodie) also with trusted root privilege. thanks all and hope I'm not spamming the thread.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Not spamming, but you can do it easier:

Mark TouchXperience and XapHandler as Trusted.

Open TouchXperience, then open its buit-in File Manager.

Navigate to the downloaded app and tap on it.

XapHandler will open and allow you to install the app.

Saves a step or two. Let me fix that little issue with the registry associations not getting set right, though...
[Windows Phone 7 Development and Hacking] 64GUNSHIP:
Thanks dude, I hope to see a new version soon :)

And after all you've done for the homebrew scene on Windows Phone, I will seriously consider a donation soon as well (well just as soon as I'm out of debt :) )
[Windows Phone 7 Development and Hacking] shtresatu:
I know, but touchxperience explorer is a litle slow, very good for patience guys. I was using wp7 rt because I already was in it and was faster for me. Any way, I'm also waiting for registry fix. Thx a lot
[Windows Phone 7 Development and Hacking] GoodDayToDie:
XapHandler first release version is out! I've fixed a number of bugs (setting association correctly in the registry, hitting Update, blocking Clean Install if it's already installed, more informative messages). I've also removed HtcRoot to save space.

This release also comes with source code. The actual XAP installation code is not owned by me, and its developer (@Ultrashot) requested that I not share the source to it, so that part is a pre-compiled static library. The source to everything else is included, though.

Tested on interop-unlocked HTC HD7 with WP7 Root Tools v0.9. Setting the file association, opening from IE, doing installs, and doing updates have all been tested successfully.
[Windows Phone 7 Development and Hacking] lukas_ita:
Tried! It doesn't work on my Omnia W interop-unlocked with WP7 Root Tools 0.9,

Association works, but after downloaded the file with IE it doesn't install. XapHandler give me an error and nothing is showed in Xap info.

EDIT: TRIED WITH AN OTHER APP...NOW IT WORKS...I WILL DO OTHER TESTS
[Windows Phone 7 Development and Hacking] shtresatu:
tried it on optimus 7> Gives the same error "Can't download file. W P doesn't support this file type." Any clue? in the mean time, I will still use the "old" method
[Windows Phone 7 Development and Hacking] snickler:
Sweet! As usual, you rock man! Time to try this baby out.
[Windows Phone 7 Development and Hacking] minep:
On LG e900 is working with email and IE!!!
[Windows Phone 7 Development and Hacking] shtresatu:
How did you do it? Any special steps to folow? Tried to install from pc and not working at all and also from my phone but still gives me a 2 pages error
[Windows Phone 7 Development and Hacking] minep:
No special steps.

Just:

Install XapHandler v3;

Trusted;

Run XHv3;

with IE doesn't working. With email - I did not tried.

With XAPDeployX clean (full) install newest XapHandler;

Trusted;

Run XH;

Open .xap on email - OK, on IE - OK.

OS version: 7.10.7740.16

Firmware revision #: 1.1.6.10

Hardware revision #: 1.0.0.0

Radio software version: 1.1.6.10

Radio hardware version: 0.3.5.0

Bootloader version: 1.5.1.0

Chip SOC version: 0.30.2.0

I hope helped. ;)
[Windows Phone 7 Development and Hacking] Xopy:
Thanks, working perfectly on LG e900 with WPRoot Tools :)

Xap Installer would be a good name

I made an App Icon, use it, if you like it ;)
[Windows Phone 7 Development and Hacking] :
Does this program replace the darkforces xapinstaller or does it add on to it for those of us with custom roms.
[Windows Phone 7 Development and Hacking] luckydog98:
GoodDayToDie,

I'm currently running the Dynamics7 v1.01b rom. I just installed your Xaphandler and it works great! I like how it shows the info from the cap first before you install it. I also appreciate the work you do for all of us. Thanks!
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@lukas_ita: I can ofer you exactly as much help resolving the problem as your post provided to me determining what it was... really, none.

What error?

What XAP were you downloading?

Was it an app already installed on your phone?

Does it work if you use email instead of IE?

Please help so I can fix this!
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@shtresatu: *SIGH* Please read the instructions... you have to run the app (from the apps list) again, to update the file association.

@snickler, minep, Xopy, luckydog98: Thanks for the reports!

@aclegg2011: It doesn't technically replace XapDeploy.exe (the program is still installed) but it does modify its registry entries to use the app instead. It works the same way as XapDeploy, but because it's a Silverlight app it can be used without full unlock, plus it displays some additional info before installing. If you want to try XapHandler, it does back up the registry values that it changes, so you can switch back easily if you want (using a registry editor tool).
[Windows Phone 7 Development and Hacking] ted973:
thx for source code!maybe it's free to use?
[Windows Phone 7 Development and Hacking] GoodDayToDie:
You're welcome to re-use my portion of the source in your own projects, yes. You're also welcome to modify the app. I require only that you do not claim to have written it yourself (essentially, cite your sources), although you may claim full ownership of your changes / additions.

Please contact Ultrashot if you want to use the XAP installation code in your own project.
[Windows Phone 7 Development and Hacking] ted973:
i just want to add this func in my FileBrowser, in past it's use open\command.

it works in my app now, directly use your comdll :D

really thx!

if i want to lay out my app, i'll ask ultrashot for access.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Ah, that's probably just fine.

Alternatively (and possibly preerably), you could also just call the ShellExecuteEx API on files that the user tries to "Open" and that will invoke whatever the default handler for that filetype is. For example, if they have XapHandler installed, it will launch XapHandler. That will also open other file types, such as images in the (builtin) image viewer, Word documents or text files in the Word app, PDFs in Adobe Reader, and so on. Up to you, though.

So far as I'm concerned, re-using the COM DLL is fine as long as you acknowledge where it came from. Ultrashot said it was OK to redistribute the pre-compiled library, so hopefully he won't mind, but you may want to ask anyhow.

Thanks for your contributions to WP7 homebrew!
[Windows Phone 7 Development and Hacking] shtresatu:
I finally did it. It works flawless also from DS marketplace. I was deploying it with Tom Xap installer and that's why I had those errors. Thanks a lot GoodDayToDie for your patience and effort.
[Windows Phone 7 Development and Hacking] JamesAllen:
File Associations

Once XapHandler is installed on the device, will other methods of xap deployment from the PC continue to work properly? I am assuming that all of the registry entries on the first post are on the PC, since I can find none on the device using Registry Editor or WP7 Root Tools.
[Windows Phone 7 Development and Hacking] dotcompt:
Hi GoodDayToDie,

First of all thanks for another great hack.

Just a small idea, why not add a progression bar. For large xap files it seems that Xaphandler has frozen.

Just a thought.

Thanks again.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@JamesAllen: PC-to-phone and phone-based Marketplace eployment continues to work exactly like normal. Such methods don't even check the registry association for XAP files, because on most phones, there isn't one!

@dotcompt: I'd love to, and if I find a way, I will. Unfortunately, I get no information from the XAP installation code of the install progress. I could add a purely cosmetic effect, but there's no way to tell (until finished) how long the installation will take.

Thanks for the suggestion, though. I'm definitely happy to receive feature requests as well as bug reports. A few that I'm considering myself:

A) Option to control where an app installs (Settings, Games, etc.)

B) Option to change an app's displayed name before installing.

C) Option to lauch the app after installing it.

These are all possible, although the first one requires modifying the manifest file within the XAP before installing (a TCB app can definitely do this, though).
[Windows Phone 7 Development and Hacking] ultrashot:
as GoodDayToDie already said, if anyone wants to use XapDeployer.lib, you should ask me for permission. That's valid for in-rom projects too.

That's not to block usage, but to control and know who uses it.
[Windows Phone 7 Development and Hacking] JamesAllen:
Focus Rev. 1.3

Thank you. It works great on my Focus Rev. 1.3 with WP7 Root Tools .9 and standard ROM. I just sent my device a xap via email and it installed just fine. Many thanks for this great tool. All sideloading xap tools on the PC continue to work fine.
[Windows Phone 7 Development and Hacking] Leapo:
I whipped up some icons real quick since you were still using the default ones. I would have made a splash screen as well... but the app loads so fast, I decided to just disable the splash screen entirely.

Preview image (large and small icons):

Original PNG's with transparency are attached (a bit hard to see on the forum background, heh). Feel free to integrate them into your app if you like them :D
[Windows Phone 7 Development and Hacking] dotcompt:
Hi GoodDayToDie,

Instead of a cosmetic effect and since it is not possible to get information from the XAP installation , you could use a simple message like:

. when you press the clean install button - "Please wait, clean install in progress"

. when you press the Update button - "Please wait, update in progress"

You can use that empty space right above the clean install and the update buttons to put these messages.

Again, this is just a way to avoid users to think the app has frozzen during the installation process.

I could help a bit but I have VS2010 and I´ve got the System.IO.FileLoadException error when open the sln file (I´ve already changed the WMAppManifest.xml with the ID_CAPs), so I think I need VS2008. :(

Btw; those things you are considering are simply clever, specially option A, I like it.

Thanks
[Windows Phone 7 Development and Hacking] Lidanh:
Very useful application!

Great work GoodDayToDie!
[Windows Phone 7 Development and Hacking] ultrashot:
There is a way to get progress. I will share info later.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@Leapo: Icons and/or splash would be good, yes. Such cosmetic things tend to be lower priority for me; I actually started trying to make an icon somewhat like what WPDM uses for XAP files before deciding it was more important to just publish first. They'll come in time, though; thanks for offering suggestions as it would be great to be able to just insert the files and go...

@dotcompt: There are two solution files, one is for 2010 and one is for 2008. The 2010 one should be openable if you have the WP7.1 SDK installed (you'll also need the interopservices DLL if you want it to compile). The native solution will only work in 2008, although you could cetainly edit the C++ in 2010 if you want.

@ultrashot: That would be awesome! Obviously the OS itself has access to the progress, but if you know the right API call that would be great.
[Windows Phone 7 Development and Hacking] dotcompt:
I´ve got it working now, my bad.

I´ll play with your code and see what I come up.

That would be outstanding.

Thanks
[Windows Phone 7 Development and Hacking] wpxbox:
Can you point me to right dowload. All it downloads is ZIP file which does not have the XAP file. Thanks.
[Windows Phone 7 Development and Hacking] dotcompt:
hi there,

just change the zip extension to xap and then sideload it to your device.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Yeah, some weird change (I'm not sure if it's in the forum software or in IE) has recently started causing XAP files to download with the .ZIP extension by default. i don't know why; I looked at the actual traffic and it's definitely still given as a .XAP file. I just use Save As when downloading files and fix the extension myself.

If you look inside the "Zip" file, it should be immediately obvious that it's actually a XAP, being full of files like WMAppManifest.xml and WPInteropManifest.xml and so forth.
[Windows Phone 7 Development and Hacking] majkeljj:
I cannot install xap via IE:

http://deepshining.mobi/XAPs/Deepsh...&&&6589^152^54@aL/Deepshining Marketplace.xap

I got error:( this problem occurs also with few others xaps.

but generally works ok. even via IE:)

Thx!
[Windows Phone 7 Development and Hacking] GoodDayToDie:
"I get error" is one of the most phenomenally useless bug reports I've personally received, but in this case I think I know what the problem is. I haven't had a lot of time to work on this recently, but there are some known bugs (and one of them involves apps with spaces in the name, like this one) that I can probably fix.
[Windows Phone 7 Development and Hacking] majkeljj:
hehe;) I know,stupid sentence but I wrote from pone and dont have possibility to make screenshot.try to install.
[Windows Phone 7 Development and Hacking] ultrashot:
As i promised, new application interaction api is in progress and it has a bunch of new possibilities. It consists of everything I actually digged to date.

What's done currently:

Deployment tools - installing, updating, uninstalling.

Progress notifications :)

App launch functions

Foreground app check

Application information viewer

App enumeration

also i am remaking Xap Deployer's silverlight ui from the scratch.
[Windows Phone 7 Development and Hacking] JamesAllen:
App Title Wrong

This is not your issue but maybe you can help. Many apps installed using this great tool and up with crazy names in the app list. I believe this is due to incorrect information in the wmappmanifest.xml under "Title". If this is spotted, it would be great to change the title prior to deploying the cap.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@ultrashot: Sounds fantastic! Are you writing an installable XAP that will be usable on stock ROMs, or just updating the EXE version? If it's the latter (and possibly the former anyhow) it would be great to get an update to the library code. Thanks!!
[Windows Phone 7 Development and Hacking] ultrashot:
you know - xapdeployer can be built either as exe or as lib ;)

I develop its interop library, managed class and silverlight ui too.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Just wondering whether you're going to create a XAP for the new version of the XapDeployer code or if I should do that. Homebrew EXEs don't work on stock ROMs, even with WP7 Root Tools. "Silverlight UI" suggests a XAP, but it *could* also be done from an EXE if you wanted to. Just checking!
[Windows Phone 7 Development and Hacking] ultrashot:
I am making a xap -> it will work on stock roms.
[Windows Phone 7 Development and Hacking] novinsab:
Hi,

I'm getting an error when trying to install any xap file from IE9 (haven't tried other methods).

The error message screen capture can be viewed at https://skydrive.live.com/redir.asp...id=676E45E6610CF2B8!107&authkey=!yTkHq6Hpj*M$

I'm using Samsung Focus v1.3 on Rogers firmware with 8107 update.

I'm also using bazaar which can install apps without any error.

And yes! Previledges are set with root tools and association works perfect too.

Thanks