Convert to dll files? - Windows Mobile Development and Hacking General

Does anyone know how I can convert png or ico files to dll files so that it can be used with SK Shortcut Manager or PocketTweak to create shortcut icons?
I have been searching online for a method for a long time and it appears that the only way to do so is by using Visual FoxPro. However, I don't have this program and there isn't a trial version i can download. (I don't want to spend money buying a program just to make a few dll files for my shortcuts)
I have also tried some other freewares and trial softwares online but none of them are successful.
Any help with this is greatly appreciated. Thanks.
Attached here are the 3 icons i would like to turn into dll files. If anyone know where to get them as dll files, that would be great too.

Loook for ResHacher, it is free!
http://rpi.net.au/~ajohnson/resourcehacker

Bulldog said:
Loook for ResHacher, it is free!
http://rpi.net.au/~ajohnson/resourcehacker
Click to expand...
Click to collapse
just see the link doesn't function.
Nevermind zip file attached. enjoy

Still not working...
i downloaded the program and used the IconDLL.dll file i got from PHM Tools then i changed the icons inside to the one i want. However, I still can't get it to work despit doing that.
What I did after getting the new .dll file with my icon in is use the shortcut creator program I found here. I tried to read other .dll files and i could see the icon but as soon as I use my own .dll file I made (which I put in the /Windows), it crashes the program. I then tried another program, the Strat Menu programs manager and I still could not read my icon.
I even went through all the post in this forum about shortcuts and tried some of the tricks there. I downloaded Microangelo Librarian and attempted to use IconDLL.dll by adding in my own icons (as vijay suggested in an earlier post), however, according to the advice he gave, that should be it and it should've been easy. This wasn't the case because I couldn't save the file as a .dll file since it said that the file is a read only file or is locked. I then tried save as but that only save it as a lib file.
I have been at this for a whole day now. Any advice would be greatly appreciated. Thanks.
** oh and I even tried using SK Shortcut Manager and I still couldn't read the .dll file I made :..(

Hi teresa611
I also use Microangelo Librarian.
what we have to do is just open the program.
1. Drag any icons into blank librarian.
2. Save as *.icl
3. Just rename those *.icl to be *.dll
4. Copy to PPC
5. Enjoy
Hope this help

tried and failed
even tho i changed the name to .dll, when i dragged it into my pda, it's still a librarian file and i was unable to read it. perhaps, i'm doing something wrong if it works for other people.
i'm starting to feel this is more trouble than it's worth. Thanks for the advice tho. If anyone else has any other ideas, please let me know.

teresa611 said:
tried and failed
even tho i changed the name to .dll, when i dragged it into my pda, it's still a librarian file and i was unable to read it. perhaps, i'm doing something wrong if it works for other people.
i'm starting to feel this is more trouble than it's worth. Thanks for the advice tho. If anyone else has any other ideas, please let me know.
Click to expand...
Click to collapse
For me, I have to put .dll into \Windows; otherwise, it is not work.
In addition, you may try using icon_viewer utility to view those dll in order to ensure it is a work dll.
The attach is icon_viewer. Copy to PPC and run.

Thanks. I'll try it later when I get off work. I really hope it works, cause I'm running out of forums to search

problem solved!!
just to refresh this thread and to give others some info if they're stuck with what I was stuck with. I finallt managed to create .dll files and use them in my pda as shorcut icons.
Instead of using Michelangelo Libarian which I am still confused about, I found this great freeware called "BeCyIconGrabber". It allows you to extract icons from .dll and .exe files and you can also load multiple icons there as save it as .dll.
Thanks again to everyone who tried to help

Related

Icon in games

Hi -
This is driving me crazy and I can't find anywhere to answer it (I'm sure it's trivial to most of you).
I copied a game (just the .exe file - not a .cab) into the \program files\games folder. The game icon is in that folder and it runs just fine - from that folder.
How do I get the icon to display whenever I Start/Programs/Games ? I'm guessing that it must be that I did not formally install and register it as a .cab but I am not that familiar with this OS to be sure.
TIA
Thats why it doesnt show up, because it's not installed. One thing you can do is get something like iLauncher and make the .exe a shortcut... and the icon will show up on your today screen.
Thank you! Is there a way to package the .exe in to a .cab file such that it properly registers as a game in to the game folder? Again, let me guess - get an existing .cab file and decipher it and use my .exe instead of the one that's in the .cab? Just a guess.
Madcap180 said:
Thats why it doesnt show up, because it's not installed. One thing you can do is get something like iLauncher and make the .exe a shortcut... and the icon will show up on your today screen.
Click to expand...
Click to collapse
I have no idea how to make a CAB file... why not just find the game online, download the installer.. install it, and replace the .exe file with yours.
Hmmm.. Not trying to set the cat amoung the pigeons, but I'm not sure you need something installed to have an icon.
A few months back, I downloaded a battleships game that was just an .exe. I copied the exe onto my storage card, then placed a shortcut to it in the Windows/Start Menu/Games folder. When I open the Start > Programs > Games folder the icon showed up nicely.
Sorry, I've got no definitive answer on this, or even anything constructive to add, just concerned that I think you might be heading down the wrong path with the "cab needed" thing.
Ok, cool - I can try that - thanks! Right now it's not on the storage card and the program, not a shortcut is in the games folder in main storage.
Confused Stu said:
Hmmm.. Not trying to set the cat amoung the pigeons, but I'm not sure you need something installed to have an icon.
A few months back, I downloaded a battleships game that was just an .exe. I copied the exe onto my storage card, then placed a shortcut to it in the Windows/Start Menu/Games folder. When I open the Start > Programs > Games folder the icon showed up nicely.
Sorry, I've got no definitive answer on this, or even anything constructive to add, just concerned that I think you might be heading down the wrong path with the "cab needed" thing.
Click to expand...
Click to collapse
I found instructions on how to create a cab file on MSDN (Microsoft Developers Network). Search MDSN for "cab wizard".
As for installing one program, and replacing its exe with another, I'd be careful about doing that - there may be checksums, registry entries, other required system files, etc. which may not play well with the new exe.
In the old days, you could get away with things like that. Today, you don't have a clue what and where a cab file places system entries. There are .ini files, .xml files, etc. involved in a cab file and I wouldn't want to second guess what is supposed to go where. (Open one with winrar and check it out).
h**p://msdn2.microsoft.com/en-us/library/aa448616.aspx
Don't know if links like above are permitted - if not - mod please delete and I apologize.
Madcap180 said:
I have no idea how to make a CAB file... why not just find the game online, download the installer.. install it, and replace the .exe file with yours.
Click to expand...
Click to collapse

How to install .XML files??

How to install the .xml files bundled in the cabs.rar?? I do not know how to make the extrom run automatically after the HR so i have to install each cab file 1 by 1, can anyone help??
Use the ones in cabs2. Also make sure you know what are those .xml for (they are replaced with .cab (s) in cabs2)
xml files are a typicaly a formatted text file like html
not really binary exe programs files
some programs use xml files to store settings and data
maybe they need to be in a location the program in question
will look for them
Rudegar said:
xml files are a typicaly a formatted text file like html
not really binary exe programs files
some programs use xml files to store settings and data
maybe they need to be in a location the program in question
will look for them
Click to expand...
Click to collapse
Did you mean copy the .xml files to the location of the program file ??
use HTCustom1.7.cab
yup...
I am having the same issue. I keep seeing these .xml files. I am not a computer guru lol. Do I cut and paste it somewhere on my phone or what? I am so lost please help.
Same thing here on my side mixtape_butcha. I'm subscibed in an Universal forum and have to install a USB switch which is a folder containing an xml file. I asked many time a guide on how to use it but nothing came back.
If you happen to know how to handle it, let me know. I'l do the same with you.
bests
Michael
first of all it is nice that you looked up a matching post yourself and obviously searched for a solution there, but...
if i get your problem right, it doesn't match the ones before. they were talking about .xml files that came with a cab file and stored the settings on how to install and execute.
you, however, talk about a subscribtion to a thread, meaning your xml file is an RSS feed, for which you need a special reader, since PIE is not a proper desktop browser and therefore does not handle feeds. but there is a lot of software out there to handle rss feeds. i personally use spb online 1.2, but there is also freeware, like this: http://www.dewantoro.net/search/pda+rss+reader+cab
i don't get the point with the usb switch though, maybe if that didn't solve your problem you should post further details about that issue and maybe post filenames or screenshots so we all know exactly what you are about to do.
You need not worry to install xml file if it comes with a cab. Cab file should be designed to use it automatically. xml files store usually configurable settings, it may be worth opening those files using any text editor like note pad or even IE to check the contents, that may help if any change is needed. But 99% chances are that you need not do any thing with those xml files.
I have found some people run in to this problem when they download a .cab file from the internet and once downloaded it is a .rar so you extract the .rar to find NOT .cab but .xml
Here is more about it and how to fix it.
http://forum.xda-developers.com/showthread.php?p=2367946#post2367946
I am trying to install a game on my MDA Vario IV , it does have .xml file. But no .cab files , only .000 file , .002 , .003 , and .004 files. How do i install this game then ? The installer is the .xml file.
EDIT : Nvm , fixed it , i needed not the files within the .cab file , but just the .cab file itself to extract in on my mobile.
Hello guys iam actually looking to install a sat nav software on my HTC TOUCH HD phone and i got this file called SETUP.XML Document and there's thousands of other files in the same location called KB, which i have no idea what they are but my problem is when i copy those files to my phone and open the SETUP.XLM Document, it opens by the internet explorer in the phone and it does nothing, please let me know if u know any answer to this.
Thank you very much....
nickholas said:
Hello guys iam actually looking to install a sat nav software on my HTC TOUCH HD phone and i got this file called SETUP.XML Document and there's thousands of other files in the same location called KB, which i have no idea what they are but my problem is when i copy those files to my phone and open the SETUP.XLM Document, it opens by the internet explorer in the phone and it does nothing, please let me know if u know any answer to this.
Thank you very much....
Click to expand...
Click to collapse
Couple of things:
You are in the wrong subforum. This section is for the Blue Angel. You should look for the Blackstone (aka Touch HD) section.
Now, the file that you opened is a cab file. You don't need to extract the contents of a cab file. Just copy it to your device and click on it one. The cab will install everything, including the settings in the xml.
Good luck!
Gili50 said:
I am trying to install a game on my MDA Vario IV , it does have .xml file. But no .cab files , only .000 file , .002 , .003 , and .004 files. How do i install this game then ? The installer is the .xml file.
EDIT : Nvm , fixed it , i needed not the files within the .cab file , but just the .cab file itself to extract in on my mobile.
Click to expand...
Click to collapse
Couple of things:
You are in the wrong subforum. This section is for the Blue Angel. You should look for the MDA IV (aka Touch Diamond) section.
Now, the file that you opened is a cab file. You don't need to extract the contents of a cab file. Just copy it to your device and click on it one. The cab will install everything, including the settings in the xml.
Good luck!

Changing icons

I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
you can use icon changer http://www.shelllabs.com/
pull the exe file off your device. then load it into icon changer. change the icon then put it back on your device overwriting the old one. this will change the physical icon of that program.
i have used it several times and it works great.
joel2009 said:
I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
Click to expand...
Click to collapse
Hello,
See my signature. Just edit the icon.dll with XN Resource Editor. Open icon.lnk with notepad and just give the icon number.
Thanks
tom108 said:
you can use icon changer http://www.shelllabs.com/
pull the exe file off your device. then load it into icon changer. change the icon then put it back on your device overwriting the old one. this will change the physical icon of that program.
i have used it several times and it works great.
Click to expand...
Click to collapse
I knew about extracting from the exe already thanks for the reply though
ksrikanth said:
Hello,
See my signature. Just edit the icon.dll with XN Resource Editor. Open icon.lnk with notepad and just give the icon number.
Thanks
Click to expand...
Click to collapse
I'll try out the editor, this was more what i was looking for thanks
Well i found out the file i was trying to use i some how corrupted to i reloaded it, i got i t open but now when i try to save changes i get a write protects errors and it will not save... is this a certificate of a file property i can change
EDIT: nevermind, it was a file property problem fixed
Alright i have a feeling there is a certificate somewhere..... all of my icons are now folders....
joel2009 said:
I know alot of chefs have there own icon sets for thing like the program menus and setting and things. I also no that the settings for these are linked by an "icon.lnk" file to a dll file in the windows directory. I need help trying to edit these icon's, Whether it is through the dll file or there is another round about way.
A play by play would be great, thanks in advanced.
(i have already tried editing through a dll editor and connot seem to find a program that doesn't have an error trying to edit it (everything from wordpad to Resourse explorer to pe editor.)
Click to expand...
Click to collapse
You can edit a DLL with reasourse hacker. You just need the UNSIGNER, and MSSIGNER. first you unsign, then you edit and save, then you sign.
simpler than you think. the hard part is looking for graphics
SK Shortcut Manager
SK Shortcut Manager does the trick for me
http://www.s-k-tools.com/index.html?sksmgr/m_sksmgr.html
BUT, it's paid...
Also i've found DLL file with many (400) old school icons (attached with this post).
A little preview: http://www.wenzlaff.de/download/twicon/twicon3.jpg
U can use also your windows DLL files (shell32.dll).
That's the way i manage all my icons
Hope this helped you
bigchrizzieboy said:
SK Shortcut Manager does the trick for me
http://www.s-k-tools.com/index.html?sksmgr/m_sksmgr.html
BUT, it's paid...
Also i've found DLL file with many (400) old school icons (attached with this post).
A little preview: http://www.wenzlaff.de/download/twicon/twicon3.jpg
U can use also your windows DLL files (shell32.dll).
That's the way i manage all my icons
Hope this helped you
Click to expand...
Click to collapse
I imagagine you can royally screw your phone over messing with shell 32.....
I'm working with a different file and linking to that instead of the shell thanks though
S.V.I said:
You can edit a DLL with reasourse hacker. You just need the UNSIGNER, and MSSIGNER. first you unsign, then you edit and save, then you sign.
simpler than you think. the hard part is looking for graphics
Click to expand...
Click to collapse
I've gotten into the file using a resourse hacker, but how do i sign and unsign?
I don't seem it as an option in any of the menu's so either i'm using the wrong program or i just don't know what i'm doing at all
Edit: and i have already created my icons by hand..... i've got graphics down easy i just have never worked with a dll before..... usually just skinning apps

[HELP] How to register a dll?

I try to create a program which consists of
.asx files (to show online tv channels),
.lnk files (shorcuts to the .asx files) and
a .dll file which contains only some .ico files (icons of the tv channels).
I added all these files to a cab using WinCE Cab Manager and tried to install it on my ppc. So far so good. The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Although I have no idea about computer programming, I have created many cab’s with WinCE Cab Manager for skins I have created for several programs. Anyway, I realized that the problem occurred due to the .dll file, since this is the first time I add such a file in a .cab.
I created my .dll file using a .dll from another program which had only icons in it, as well. I deleted them using Restorator 2007 and I had an “empty” .dll sized 4KB. Then I added my icon files using XN Resource Editor.
I searched the Internet to see what might be the problem with the .dll and I found out that I have to “register” my .dll file. I really have no idea what this means but it needs to be done. I also found an option in WinCE Cab Manager for “self-registering” file, but it didn’t work either.
So, the question to you dev guys is how can I register my .dll file, or should I create it from the beginning with another way?
Please help! Thanks in advance!
sorry to repost but it seems that posts keep coming in this forum and this thread is already in the second page and I'm afraid that noone will see it and reply to it. By the way, is there any special sub-forum for such questions?
This may help. I use his instructions to edit existing DLL's
http://www.modaco.com/content/i9x0-...88904/lisbian-taskbars-for-i910/#entry1023568
It will unsign the dll which will probably fail on your custom dll but it should sign it when you are done editing.
NilsP
Many thanks for your suggestion but unfortunately it didn't work for me.
As you said, this is mainly for resigning already signed .dll files.
Any other help will be appreciated. I can attach it here if anypne is willing to help. Or just tell me the way. Thanks!
I deploy a few dll's with my app, without any problem. If the installer complains about the location, what did you specify where it should go?
There are 2 approaches to solve this problem:
1.) If you have a private key to match a certificate in the device's certificate store, sign the .dll and .cab with this private key and it will be installed with elevated privledges, and be successful. To facilitate this you can install the "SDK Certificates" - and sign with the matching private key (you should be able to find these on a search, term "SDKCerts" or similar)
2.) Look for an "Application Unlocker" or other security reduction tool, run it, and you should be able to install the cab. On this note, if you check here, it will give you a more technical overview of the security policies. You want to change 4101 / 0x1005 to "SECROLE_MANAGER" (8) - which tells the system to install it with elevated privledges. Also make sure 4102 / 0x1006 is set to 1 to allow unsigned applications.
6Fg8
I don't believe that is the location I specified that causes the problem because when I deleted the .dll file from the .cab, it was installed properly. How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Da_G
Thanks but both approaches seem very complicated for me!
So, will I need Visual Basic in order to do this or is there any easier way? Can anyone sign the dll for me?
angelos_cy said:
6Fg8
How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Click to expand...
Click to collapse
Yes with programming, C++ or .net. Never had any issue with signing. I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
6Fg8 said:
I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
Click to expand...
Click to collapse
I have sent them to you by pm. They are not secret at all but I will create a "program" (wannabe ) with that dll and I want that program to be a surprise for users of the forum where I'll post it. I may post it on xda too, but it's nothing important.
Many thanks!
angelos_cy said:
The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Click to expand...
Click to collapse
This happens because you've changed resources in signed file, which changed file checksum and invalidated it's signature, and Windows installer refuses to install file with invalid signature. But it won't refuse to install this file WITHOUT signature at all - so use unsigner (search for it on XDA) to remove signature completely; if you encounter error, try to remove signature from original (unmodified) file, and then change resources in it...
6Fg8
the_ozyrys
Thanks to both of you!
6Fg8 has created and signed the dll for me and it finally worked, but I also tried the_ozyrys' method and it also worked.
So thanks to baniaczek too, since he created the unsigner.exe.
Everything worked fine with the dll. Now the cab is installed properly.
However, I have another problem. Just after the installation of the cab on my ppc, it seems that the device freezes for about a minute. This is propably because my cab contains a lot of shortcuts (.lnk files) that go under Programs folder.
So, I would like to ask for another favour, if it's possible. As I said I intend to give this cab to others too. Since this delay can make them believe that my program has freezed their device, I would like to make the cab restart the device just after installation and after uninstallation as well. I think this is made with the "Setup.dll" which I don't know how to create.
If anyone knows how to do this and has the time for it, could you please create this setup.dll for me. If the cab is needed to do this, just tell me to send it to you.
Thanks in advance!
Anyone? Plzzzzzzz!
If you want to sign .dll or .exe u can use the apps posted in the two posts below
http://forum.xda-developers.com/showthread.php?t=432041
or
http://forum.xda-developers.com/showpost.php?p=3530246&postcount=18
raykisi
Thanks for your answer but 6Fg8 and the_ozyrys already helped me on that.
My question now is how to create a setup.dll in order to make my .cab to prompt the user to restart the device after installation and uninstallation. If anyone can do it for me, I can send you the .cab which I alreday created and you can add the setup.dll with those functions.

Help Please. Cabs not going into My documents

Hope someone can help.
As usual i am putting new cabs into my documents on the pc and syncing. But when i open file explorer, these new cabs are now showing as windows files that cannot be open as oppossed to cabs as they used to be.
I'm a bit of a noob ,so i'm not sure i have explained this very well but hopefully someone can help.
Thanks in advance.....
sounds like you are extracting the cabs to me, i just have a folder on my sd card i call general crap, and i copy all my cabs in there, go to file explorer sd card then general crap then click on what i want to install
Thanks very much for the swift response. Its very odd that this has started happening all of a sudden. Some cabs ie wallpapers, are going into my documents, but others as i said seem to now be windows files and not cabs, once they are in my documents and cannot be opened, very very frustrating !! I'll try what you said this evening and see if it works, but i cannot understand why it would all of a sudden be extracted when thats never been the case before ?
I'm sure i must have changed something, but i wish i new what
Cheers again for your help. I would be lost without this site, and my HD2 would be no-where near as much fun.
Thanks for the help, but it didn't work. Files still appear as window type files that i cannot open instead of the usual cabs. Wish i new whats changed, but unless anyone has a suggestion, i can feel a dreaded hard reset coming on !!!
Can you not just explore your device with activesync and copy the files manually, rather than using some method of synching? Or, connect as a USB drive and copy the files to your memory card. Either they're not actually cab installers, or the sync process is doing something to them.
Just tried both your suggestions, but with no luck. But thanks anyway for the reply. Wish i new what has changed but something has .
NREYNOLDS said:
Just tried both your suggestions, but with no luck. But thanks anyway for the reply. Wish i new what has changed but something has .
Click to expand...
Click to collapse
What actually happens then when you click a cab file? Do any old cab files work, or is it now all cab files that won't work?
It says " The file ????? cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file "
You can see before you try to open it that its not right, as i say , it appears to be a window file not a cab, once it goes on my device, though judging by the size of the file it is all there !!!
Wallpaper cabs seem to be working for some reason though.
Using your PC, browse to the folder on your phone and see what the file is called. If it doesn't look like a cab file should, then it probably won't have a .cab extension. (I only say this because the file explorer on the phone does not show file extensions. Your PC may not be set up to do so either though. The alternative is to use Total Commander or Resco to see what the file extension is.)
Can you give me a link to a cab file that doesn't work for you?
http://forum.xda-developers.com/showthread.php?t=576232
Shortcuts to start menu folders is one of the cabs. As above .
I'll have a play with the other things youv'e said.
Thanks again for you help.
NREYNOLDS said:
http://forum.xda-developers.com/showthread.php?t=576232
Shortcuts to start menu folders is one of the cabs. As above .
I'll have a play with the other things youv'e said.
Thanks again for you help.
Click to expand...
Click to collapse
Don't thank me till we've fixed it
Did you first unzip the file in that linked thread?
No, i'm putting it on unzipped as i normally do.
Looking at them on the pc, they appear as normal .
NREYNOLDS said:
No, i'm putting it on unzipped as i normally do.
Looking at them on the pc, they appear as normal .
Click to expand...
Click to collapse
Well the link you gave me is a zip file with a cab file in it, so you would need to unzip it first. Cab files are actually a format of compression, so it's likely that a cab file and a zip file would have the same icon on your PC. It's for reasons like that that I always make sure to have file extensions switched on on my PC.
Try unzipping it and copying the contents to your phone and see how you get on with that.
You are a life saver. Now I can say thank-you very much, that worked perfectly. This website is brilliant for those of you who know what your doing and for those like me who just like to play with their device and make use of the knowledge on this site.
Thanks again.
NREYNOLDS said:
You are a life saver. Now I can say thank-you very much, that worked perfectly. This website is brilliant for those of you who know what your doing and for those like me who just like to play with their device and make use of the knowledge on this site.
Thanks again.
Click to expand...
Click to collapse
You're welcome mate. Glad you got it sorted.

Categories

Resources