I want to change one entry in registry, when I run some special application in order it can work properly. What I need is to run some kind of script with two commands:
1) run regedittool.exe parameters
2) run myapplication.exe
I don't have such registry editor which allows command parameters.
Do you have a solution?
Thanks
I'm not sure what are you trying to do but try for searching the net for an app. called 'regsrvce.exe'.
Search Mortscript and try it.
Thanks
Related
I have been attempting to re-cook a ROM (famewolf's latest) and for some reason I keep getting the 'USB to PC' icon in Settings\System as opposed to Settings\Connections. I thought it was a HTCCPL issue (with provxml and/or registry settings but I am not sure now. What is the actual application that starts when you click this icon so I can attempt to locate which file is causing it to appear where it is?
Thanks
Andy
OK, fixed it. For some reason it looks like there is a typo in one of the .RGU files. This is in the there:
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\PC Connection]
"Group"=dword:2
However the space between the PC and Connection needs removing:
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\PCConnection]
"Group"=dword:2
Now if I could work out how to get Button 4 to launch Voice Command I would be sorted....
Currently my .RGU file that installs the registry entries for Voice Command contains this:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C4]
@="\"\\Windows\\AppButtons\\Voice Command.lnk\""
"Name"="Button 4"
"Icon"="\\windows\\voicecmd.exe, 0"
"ResetCmd"="\"\\Windows\\AppButtons\\Voice Command.lnk\""
"Flags"=dword:00000000
In re-cookings of other ROMs this has worked fine. With famewolfs latest the entries in the registry are not there. I have tried creating a 'provxml' which is half working, what I can't get it to do is include the quotation marks when the settings are added to the registry. Does anyone know how? Doing this via a .RGU file you need the extra '\', but this doesn't seem to work with a provxml file.
Any takers?
Andy
I am struggling a little here and don't know why this isn't working, I was hoping someone has been through this before and knows how to do it
OK, I understand the registry settings needed to add applets to the settings pages for HTC applications. You create two registry keys and increment the 'TotalApplets' registry value to include enough for all the 'applet extensions'. I have backward engineered some existing ones to see this. Now I am trying to add another application without just creating a physical shortcut file. I have created an OEM package that has the following .rgu file:
Code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Inbox\Settings\OEM]
"SMSInboxThreadingDisabled"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\SMS Mode]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\Software\HTC\HTCCPL\Applet16]
"CmdLine"=""
"Name"="SMS Mode"
"Path"="SMS.exe"
"Title"="SMS Mode"
I have then built my ROM and the Icon doesn't appear on the Settings, System page. The application is there as I can use file manager to browse to it and then execute it. I have verified that all the registry settings are there, however the Icon is not displayed. I know I could simply create a physical shortcut and put it in Start Menu\Settings, however I would prefer to get it working this way, and it's bugging me now...
Any takers?
Oh, its the 'sms.exe' application from ce4arab.com that allows you to change the WM 6.1 threaded SMS view settings.
Andy
i dont know if you found the solution or not..but did u change the " Total Applets " also..because if u didnt..it would'nt read any other added Entries
its in
HKEY_LOCAL_MACHINE\Software\HTC\HTCCPL
Click to expand...
Click to collapse
ather90 said:
i dont know if you found the solution or not..but did u change the " Total Applets " also..because if u didnt..it would'nt read any other added Entries
its in
Click to expand...
Click to collapse
I did solve it, however it is a bit of a weird one.... The SMS.exe application I was trying didn't have an Icon embedded in the file so when viewed in Explorer (on a PC or on the Wizard) it just looked like a regular .exe file. I simply swapped the file for another Threaded SMS enabler/disable someone else posted and it all worked.
I am not 100% sure it was just the fact the file didn't have an Icon, however that is all I can put it down to.
I have other issues now though; I can't get .NetCF 2.0 to work in my re-cooked 5.2.19588 ROM The Threaded SMS app is a .Net application so it's there and looks pretty, however it doesn't run.........
Andy
Is there any command I can add to my iGO Amigo shortcut to make my device turn landscape before launching iGO?
Of corse there's always mortscript, but I'm clueless as to how to use that..
thanks!
btw the name of the exe I'm using is called amigo_pna.exe
You may be hesitant to use mortscript, but someone has actually already written a script to do this for Tomtom. Check it out at http://forum.xda-developers.com/showpost.php?p=1096841&postcount=4 and you might be able to modify it to your needs.
EDIT
Just realised that download is no longer available. Try http://forum.xda-developers.com/showthread.php?t=438929 instead.
thanks I'll try editing this. If I've installed mortscript already then does my device just recognize the .mscr file type? Or how do I actually make the file work?
Yes, .mscr should be associated with mortscript and just run like any program.
You can open it in any text editor on your pc to change it.
Hey there,
I got a Samsung Omnia 7 with Telekom Branding and a serious problem. I cannot access the registry of my phone anymore with any tool. WP7 Root tools and the registry editor from TouchXperience keeps crashing.
What I been doing is trying to add a new accent color.
I first went to [HKEY_LOCAL_MACHINE\ControlPanel\Themes] and then in the folder which contains the theme names. I have created there a correct Dword entry and called the name "grau".
Well, then I switched into [HKEY_LOCAL_MACHINE\ControlPanel\Themes\0\Accents] and wanted to add there another accent color with the index number 11. I was looking for the hex values on my PC while my phone screen got locked.
After unlocking it again, I couldnt access any of the tools anymore.
Also when I go into the control panel -> design (where you can choose light/dark background and accent color) it just kicks me out of the menu.
I dont know what I should do, I need something which lets me access the registry somehow or an app which could remove the key...
Any help is greatly appreciated
You can do write-only registry operations in a few ways, but one of the easiest is to use provxml. Download the Interop Unlock XAP from the Dev&Hacking sub-forum and open it in 7-zip (the built-in Windows ZIP explorer won't work for this). There's a .. folder. Navigate it up to ..\..\..\..\.. or so, then there's a provxml folder. Open it, and there's a file inside. Edit that file. It'll have some registry write commands in an xml format (wap-provisioning, you can read about it on MSDN if you want). Put the registry commands you want into the file and save it back into the XAP archive. Then, follow the normal steps for interop-unlock on a Samsung phone, except don't install the original app (deploy your modified version). This will process the provxml and make the registry changes.
Note: provxml can be used to delete registry values as well as create or modify them. This is a great way to undo partial jobs like adding a new theme that isn't supposed to be there.
Thanks a lot for your reply.
It worked out. I removed all those broken keys.
I had done loads of registry changes and a bunch of tweaks for the phone, at the end I did a hard reset.
I'll wait for tools the next time
hi,guys
i try to achieve it by using fiinix's dllimport dll,but now i have no idea?whocan give me some advices?
thank you!
This is a mildly scary idea, but an interesting potential hack.
On desktop Windows, you'd either use the registry, the Startup folder of the Start menu, or create an NT Service that ran automatically.
The registry key is
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
or
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
but WP7 only has those registry paths up through CurrentVersion. You could try creating the Run key, and adding entries under it, though.
WP7 doesn't have a "Startup" sub-folder of the Start menu the way that Windows for the PC does, but it does have a Startup folder. The path is \Windows\Startup. You'd probably want to create a shortcut, most likely to "app://<APP_GUID_HERE>/_default" because that's how app paths are described in the registry, although I can't promise that would work.
While WP7 does have Services, I don't think they're how you'd want to do this. For one thing, they may need to be written in native code, which would make it very tricky to run them on a stock ROM.
In any case, any of these changes are going to require at least interop-unlock (root-unlock would make it easier) or full-unlock. Using DllImport doesn't actually give you any extra permissions; it just makes it eaier to call native functions. They still run with your limited permissions (such as no ability to edit the Registry or the \Windows folder), though.
GoodDayToDie said:
This is a mildly scary idea, but an interesting potential hack.
On desktop Windows, you'd either use the registry, the Startup folder of the Start menu, or create an NT Service that ran automatically.
The registry key is
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
or
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
but WP7 only has those registry paths up through CurrentVersion. You could try creating the Run key, and adding entries under it, though.
WP7 doesn't have a "Startup" sub-folder of the Start menu the way that Windows for the PC does, but it does have a Startup folder. The path is \Windows\Startup. You'd probably want to create a shortcut, most likely to "app://<APP_GUID_HERE>/_default" because that's how app paths are described in the registry, although I can't promise that would work.
While WP7 does have Services, I don't think they're how you'd want to do this. For one thing, they may need to be written in native code, which would make it very tricky to run them on a stock ROM.
In any case, any of these changes are going to require at least interop-unlock (root-unlock would make it easier) or full-unlock. Using DllImport doesn't actually give you any extra permissions; it just makes it eaier to call native functions. They still run with your limited permissions (such as no ability to edit the Registry or the \Windows folder), though.
Click to expand...
Click to collapse
good idea!but it is a little difficult to achieve now.and do you know fiinix's screen_capture app use backroundworker to achieve the backround task.however,when i use such method on my htc T9292,nothing happened.do i need any other skill to achieve such goal?