Edit exe to move picture reference ? - General Questions and Answers

Hi guys,
I would need a help in editing an exe.
I'm trying to change the reference to the associed pictures. The app is supposed to be installed in the Windows folder so the reference to the pictures is hardcoded in the exe (ex: \Windows\CMP_Button_On_Mask.png).
I would like to move the app to the storage card in order to free up some memory. If I launch the exe from the Storage Card, it works but it still looks for the pictures in the Windows directory. I would like to be able to change the reference to something like "CMP_Button_On_Mask.png" instead of "\Windows\CMP_Button_On_Mask.png" to be able to put the pictures in the same folder than the application.
If I try to hexedit the exe and to manually change the reference (visible as .\.W.i.n.d.o.w.s.\.C.M.P._.B.u.t.t.o.n._.O.n._.M.a.s.k...p.n.g), it seems to corrupt it and I cannot launch it anymore on the device.
I tried to unsign/resign the file before/after editing but the result seems to be the same.
Please help !

Bump
If a moderator is around, maybe you could move my post to "Development and Hacking" it will probably get more success

Related

Executing file from flash-card immediately after booting..?

Hey people on the board!
I'm a relative newbie in this PDA-stuff so I have a question which perhaps (hopefully) is easy to answer. Problem:
I have an application which I run on my Qtek 1010. The application runs fine, but prior to using it, a significant amount of time must be spent on installing and configuring it. In case of battery-faliure, this needs to be done from scratch. I would therefore like the Qtek to execute a script-like file (autorun.exe) which performs this task, immediately after booting.. The file is present on a flash-card inserted in the slot. How do I do this? Where - on the card - do I place the file? In the root? And how do I detect it and run it automatically after a cold-boot?
Any help would be greatly appreciated! Thx!
/Joe72
Its quite simple
Hi there, your problem to fix is quite easy.
If you look in in your windows directory with the built-in explorer, you'll find a directory - either "startUp" or "Autostart" depends on the system language you are using. Here you put a link to the program you're having on card. With every cold- or warm boot it will be executed. :lol:
regards
cimber
On the memory card make a directory named 2577, I believe the pocket pc will look here for your autostart on boot, try it and see. You can try putting a cab file in there or your autostart config file. I am not an expert in this but thats how its done with ipaq navigation system which is an automatic routine using the 2577 directory and I have also seen other software using the same method.
the file should be called 'autorun.exe' in the '\storage card\2577\' directory.
when you insert the card, the autorun.exe will be copied to \windows, and executed with 'install' as parameter.
when you remove the card, it will get executed with 'uninstall' as parameter.
and then removed from \windows.
but this will not nescesarily happen at boot.
just figured out another thing: the number you put in the .lnk file in \windows\startup is completely ignored by windows.
also, if the executable is in \windows, you may omit the path,
you may also omit the extension if it is .exe.
if you specify commandline parameters, your application will get passed upto 255 characters starting from the first non-whitespace character after the executable name.and including any newlines that may be in the file.
Hi!
Thanks for the response. I'll give the methods a try during the day and get back.
Thanks so far - I appreciate it
/Joe72
Hi there (again)!
I have tried the different suggestions with no luck. Perhaps I should have been a bit more specific. What I actually need is to have the autorun.exe run (install) a number of cab-files also on the flash-card. I was - perhaps naively - thinking that there would be a generic tool out there to create this type of autorun.exe file? I am looking for something along the lines of what is being done here:
http://forum.xda-developers.com/viewtopic.php?t=508&highlight=autorun
Only, in the case above, the autorun.exe lauches a specific .cab-file which contains a ROM for the PDA.
Is there a "configurable" .cab-installing autorun.exe out there somewhere? Or should it be written from scratch every time for new purposes?
Hope I make myself clear
/Joe72
yes, it is in the extended rom, processing the config.txt file.
eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
itsme said:
yes, it is in the extended rom, processing the config.txt file.
eeeh, but the location of the config.txt is taken from the registry, which is currently always set to \extended_rom\config.txt.
Click to expand...
Click to collapse
Could you explain that to me in more detail, please? As I mentioned, I am a relative newcomer in this Xda stuff Thanks..
/Joe72
what you are asking for is the autorun.exe found in the extended rom,
look for 'extended rom batch language' on the forum for details.
problem is that the autorun.exe from the extended rom uses the config.txt
pointed to by the "[HKEY_LOCAL_MACHINE\Comm] AutoRunCfg" registry value. which always is '\Extended_ROM\Config.txt"
what you could do, is change the 'autoruncfg' string in the autorun.exe binary in to something else. and then fill your own config.txt path in that registry value.
Thanks - that sounds like the way to do it. I guess I would copy the original config.txt, add my .cab-files, put it on the flash-card and then change the key in the registry to point to the card. Is that how it would go?
Now another stupid question: How do I access the registry? There is apparently no regedit.exe like on my desktop?
/Joe72
Joe72 said:
Thanks - that sounds like the way to do it. I guess I would copy the original config.txt, add my .cab-files, put it on the flash-card and then change the key in the registry to point to the card. Is that how it would go?
Now another stupid question: How do I access the registry? There is apparently no regedit.exe like on my desktop?
/Joe72
Click to expand...
Click to collapse
Managed to access the registry using Windows CE Remote Registry Editor. But whooops.. After a cold boot, the registry is reset to factory settings?! Hence my changes of the path to config.txt are also lost..? What to do?
/Joe72

dificulty locating themes

greetings all,
i've attempted to search this site and have read the wiki. i saw the sticky on not starting threads until exhausting other options, but i didn't find the answer to my particular question.
i installed teh Tf3d config, but none of the themes i've installed are showing up in the drop down menu under appearance. i've tried relocating them to various spots on my device and storage card, but nothing seems to work. in one tutorial, i read to creat a new folder named Internal Storage/Themes/ but my device would not allow this as a folder name and i've tried slanting the slashes in both directions.
one of the themes was a zipped file, the other was not. the zipped file was DL'd to my PC first, then i extracted the files to my device.
the TF3D config seems to be, otherwise, working fine. i've deleted a tab and rearranged the others.
any help would be greatly appreciated.
injunwil said:
greetings all,
i've attempted to search this site and have read the wiki. i saw the sticky on not starting threads until exhausting other options, but i didn't find the answer to my particular question.
i installed teh Tf3d config, but none of the themes i've installed are showing up in the drop down menu under appearance. i've tried relocating them to various spots on my device and storage card, but nothing seems to work. in one tutorial, i read to creat a new folder named Internal Storage/Themes/ but my device would not allow this as a folder name and i've tried slanting the slashes in both directions.
one of the themes was a zipped file, the other was not. the zipped file was DL'd to my PC first, then i extracted the files to my device.
the TF3D config seems to be, otherwise, working fine. i've deleted a tab and rearranged the others.
any help would be greatly appreciated.
Click to expand...
Click to collapse
for ease of use several people have create cabs out of their themes.. simply install the cab file. look for a thread created my mobile matt (username mchapman) it has several themes and mods in it.
one of the themes i've installed is a cab. however, it does not show up. that's what the problem is.
i guess the title of thread could be a little misleading. i'm not having trouble locating themes to install - tf3d config is having trouble finding them, after i do.
ETA - i searched for the thread you mentioned, but it says "mchapman" is an invalid username
ETA - i've found this instruction to be a little confusing. if somebody could PLEASE give me a little clarity on exactly what they are telling me to do:
- Create the root of internal storage of your HTC Touch Diamond a folder named: Themes
thank you
can someone just explain this one sentence, please.
- Create the root of internal storage of your HTC Touch Diamond a folder named: Themes
injunwil said:
can someone just explain this one sentence, please.
- Create the root of internal storage of your HTC Touch Diamond a folder named: Themes
Click to expand...
Click to collapse
Means create a folder named Themes. no sub folder (or folder inside a folder).
injunwil said:
greetings all,
i've attempted to search this site and have read the wiki. i saw the sticky on not starting threads until exhausting other options, but i didn't find the answer to my particular question.
i installed teh Tf3d config, but none of the themes i've installed are showing up in the drop down menu under appearance. i've tried relocating them to various spots on my device and storage card, but nothing seems to work. in one tutorial, i read to creat a new folder named Internal Storage/Themes/ but my device would not allow this as a folder name and i've tried slanting the slashes in both directions.
one of the themes was a zipped file, the other was not. the zipped file was DL'd to my PC first, then i extracted the files to my device.
the TF3D config seems to be, otherwise, working fine. i've deleted a tab and rearranged the others.
any help would be greatly appreciated.
Click to expand...
Click to collapse
Go to here for find themes, wallpapers, everything you need....please read and read some more before posting....
http://forum.xda-developers.com/showthread.php?t=470023
slawcop` said:
Means create a folder named Themes. no sub folder (or folder inside a folder).
Click to expand...
Click to collapse
is this something that requires a registery editor? i ask because, i've attempted making a folder with that name in several locations then placing the file in it. it still won't show up in the drop down menu.
exactly where do create the folder named "themes"?
thanx
injunwil said:
is this something that requires a registery editor? i ask because, i've attempted making a folder with that name in several locations then placing the file in it. it still won't show up in the drop down menu.
exactly where do create the folder named "themes"?
thanx
Click to expand...
Click to collapse
Maybe this will help. If you were to create this folder on your pc instead it would look like this:
C:\themes <- C:\ is your root directory.
so on your phone the folder should appear in the list with windows and program files and document and storage card. It should be \themes NOT something like \Program Files\themes

Theming the phone

Hello all,
I am new here and just got my Galaxy S 4g. I am used to creating themes on the iphone and am getting very frustrated with this phone so far. I have rooted my phone, and also downloaded go launcher and a couple widgets. and a couple different file explorers.
Problems I am having is that everyone says the apps and themes are located in the phones data folder. My data folder is always blank with nothing inside. I search for the exact name or location of the apps and it says 0 files. I look at the apps running and details of them tell me they are in the /data folder, but My folder says empty. I even have the show hidden files checked.
Also I am trying to find a way to browse the phones files (not the memory card files) from my computer. I have now read over hundreds of pages of searches and can not find any answers.
Please help me.
the files that you are going to want to find are the framework-res.apk and twframework.apk.
those files are located in the system/framework/
i use android commander to push and pull files cause it is the easiest for me. you will need winrar to unzip the apk's but if you want to edit the .9.png's you will need APK manager to unpack the .9.png's and Ultimate Compiler to recompile after you edit or the png's will stretch wrong and look horrible.
There is a link on the main Android Themes page on XDA that has a wonderful write up in PDF about theming...
ill see what else i can post when i have time later to help you out.

[Q] How can I change file path inside of a exe file?

Hi.
First of all, let me say that half of time took me to look for the right forum in XDA to post this message, and I'm still not sure I'm in the right place..
I think my Q is about modifying my OS, and this is why I post it here.
If the admin think there's better forum to this issue - I'd love to hear it..
Now, to business:
I have a GPS device, brand is X-GPS Navigation, Model GPS-S450B, that I will like to play with.
The OS is Windows® Embedded CE 6.0.
I just found out that at my GPS device, there is a file that resposible to a certain BMP that shown up at the shutdown process.
The filename is "PowerKey.exe", and it reffer to a file named "Notice_en.bmp".
I want to change that Notice-en.bmp file, to show that message in another langueage. I tried to overwrite the file with a similar bmp file, no luck. The file just re-created.
I've tried to edit the PowerKey.exe with a hex editor, and write a new path, to a file in NandFlash directory instead of the Notice_en that lays in Windows folder.
That also didn't go so well. "PowerKey has been preform illegal action and have to be shout down" or something like that, was the message. I could only put the device to sleep, until I recovered the old PowerKey file.
Any solution how to change the BMP file that resposible for the shutdown message?
(I guess the best idea is to write a registry entry to overwrite the BMP file in \Windows directory with the one in the \NandFlash directory every boot, only problem - I donno how to do it. )
Anyone?
There's no solution to my problem?
Recompile the exe.
Thank you.
Any chance to general guidlines in how is that done?

how to edit packages.xml

Hello, hopefully I am posting in the correct section.
I want to give my phone app access to write and delete files on my SD card, but unfortunate Android remove this ability in newer android versions, so I found the following thread.
https://android.stackexchange.com/q...ccess-to-external-storage-to-an-app-in-nougat
When I plug the phone into computer, only three folders is found in /data, the system folder is missing. Why ain't all folders shown when accessing through computer?
I found the packages.xml file in using root explorer, which showns all files, I opened it, but I have no idea how to edit it.
Can someone give me a general instruction on how to edit the package.xml?
Thanks.

Categories

Resources