How to convert LNK to EXE? For key remap - Windows Mobile Development and Hacking General

I have been trying to get my HW keys remapped on the Q9 for a day now. After picking through the registry, I found a reg key that maps to the button
\HKEY_CURRENT_USER\ControlPanel\Keybd\APP2_Path
It accepts any .exe but I need to point it to a Mortscript file and that won't work. I can't even put a shortcut LNK value in there. Soon as I pop any exe in that field it works. Anybody know how to convert a LNK into an exe to trick this thing? I even tried running Mortscript.exe with the script name as a parameter but no luck. Thanks!

Looks like what I need is a basic applauncher .exe that would read the script/exe parameter from the registry or file. I have experimented some more with this registry key and it won't take anything other then a straight exe. Even quotes around the value breaks everything so I can't pass parameters around.

Mortscript comes with a file called autorun.exe. rename this file to the name of your mortscript, so if your mortscript is named 'myscript.mscr' then rename autorun.exe to 'myscript.exe'. make sure both files are in the same folder. Now when you run 'myscript.exe' it executes 'myscript.mscr'. For more information check mortscript documentation.

joemanb said:
Mortscript comes with a file called autorun.exe. rename this file to the name of your mortscript, so if your mortscript is named 'myscript.mscr' then rename autorun.exe to 'myscript.exe'. make sure both files are in the same folder. Now when you run 'myscript.exe' it executes 'myscript.mscr'. For more information check mortscript documentation.
Click to expand...
Click to collapse
i was so happy to see this fix and tried it. it appears to work about 5 times and then it stops responding. i have to reboot to get it working again. If i click on the script .mscr it works however. so something buggy in the autorun.exe. Any suggestions?

Take a look at http://www.vijay555.com
I think it's VJbrisk.exe or something like that, but I'm not sure...
There's definitely something there that can help you!

ithx i tried vbrisk but it would not install on wm6 smartphone. Any other apps that do the same?

Are your files in the same folder as 'mortscript.exe'? If not, put them there and try it. Make sure you have the lastest mortscript version.
Also, there is an old program called 'Launch Pad' by 'On Hiatus' that was developed for the HPC version of WinCE, and uses PocketC by 'Orbworks' (google both). You can use it to create .EXEs that work like .lnk files.
It works fine on my WM6 Wizard PPC, don't know if it will work on a Smartphone, but it's worth a try if the above doesn't work.
Another thing you could try is to extract the VJbrisk.exe from the cab file and manually transfer it to your device, then see if it works.

Yah they are in the same folder and named the same. I moved it al into the root. It appears to work for a couple hours, then dies and requires reboot. Otherwise it does the trick nicely. Mortscript is great!

Related

Deny or restrain installation of applications WM5

I want to deny or restrain installation of applications on the fly as an service/process or by making changes in the registry on WM5 devices. Any ideas? The app preferely in C++/C#
CAB files are installed by wceload.exe in the windows directory.
You can overwrite this file with a blank exe, or remove the CAB extension reference to it in registry under HKEY_CLASSES_ROOT.
Deny or restrain inst. of apps
Thanks, yes I've thought about this - but this isn't a very dynamic solution. When a person run a CAB I want to check if app is okay to install from a "List" - then show a popup with a message saying something like "Sorry, you are not allowed to install this application. Please contact your company IT Admin for more info".
Is the .CAB association in HKEY_CLASSES_ROOT linked to wceload - so I could run an app to validate CAB, and if ok execute wceload..?
levenum said:
CAB files are installed by wceload.exe in the windows directory.
You can overwrite this file with a blank exe, or remove the CAB extension reference to it in registry under HKEY_CLASSES_ROOT.
Click to expand...
Click to collapse
Write up a registry entry in HKEY_CLASSES_ROOT to associate .CAB files with your custom file. Then, when the user taps on a CAB file, your program reads it, compares it against its list and, if it's approved, calls WceLoad with the appropriate parameters.
The key would probably look something like this:
HKCR\cabfile\shell\open\command
(default) = "<path to your app>" "%1"
(%1 will be replaced with the path to the CAB file).
Then, if the CAB was approved, call WceLoad with the following parameters:
\windows\wceload.exe "<path to cab file>" /nodelete
Note that some apps, may call wceload.exe directly. I am not sure if Activesync does it, but I know a couple of custom installers that do.
If you really want to secure the device against unothorized software do the following:
Rename wceload.exe to something else like wceload1.exe.
Create you own wceload.exe, but make sure you capture and preserve all command line parameters in case you need to transfer them to the original file for proper installation.
This way you can be sure no one will install anything without your permission.
Olso, keep in mind wceload is used to switch themes as well. (It handles *.tsk files).
Very much..
Thank You all!!

Simple and small Reboot/Soft-reset program

Heres a very simple and very small program I made with MortScript. I call it QuickReboot 1.0. It will ask you if you whant to soft-reset your phone. It works best if you map it to a hardware button, well, It does for me.
READ! VERY IMPORATANT HOW TO USE: Unzip the zip file and move the file "QuickReboot" to the My device folder (The root of your device) Then click on it. It will then make a shortcut to itslef in the programs folder. Then use it whenever you need to soft-reset. TO UNINSTALL IT: Open your file explorer and goto /Windows/start-menu/Programs and delete it from that folder. Then its completely gone from your device
IF YOU TAP ON THE FILE WHEN ITS NOT IN THE "My device" FOLDER, IT CANNOT MAKE A COPY TO "Programs" FOLDER!
Requirements: Mortscript 4.0
(You need MortScript 4.0 to use QuickReboot)
If you don't have mortScript 4.0 download here: http://www.sto-helit.de/downloads/mortscript/MortScript-4.0.zip
Free and NOT SPACE-TAKING
Cool, im gonna try it on my TP. thx
thanks and correction
first of all thanks! that's exactly what i was looking for.
second, i had to edit your code a little because the copying didnt work. your path was ".../start-menu/..." and should have been ".../start menu/..."

[App] Execute Apps Automatically (14 Jan 10) Source Code Included

I use Sashimi alot and the only gribe I have with it is that I cannot Automatically Setup My Applications within Sashimi. I know it will run all exe files that is placed within the \Sashimi\Auto\EXE folder but it cant execute .lnk files. So this little app has three files which you simply dump in \Sashime\Auto\EXE folder.
There will be a file called Executefiles.txt
Any apps in there will be executed automatically after Sashimi is done with its installation
I use 1. Pimbackup.exe
2. Galarm
3. Audio notes
4. Magicall
Theres a config file where you can specify whether it should auto close or wait for a keypress to exit
O yes Source Code is in vs2008 used C#. Graphics aint good. But it doesnt need to be. I only spent about an hour and half on the app
aren't executable (AND lnk files) automatically executed when placing them in \Windows\Startup directory? or is this some Sashimi related thing. Whatever Sashimi is!?
RAMMANN said:
aren't executable (AND lnk files) automatically executed when placing them in \Windows\Startup directory? or is this some Sashimi related thing. Whatever Sashimi is!?
Click to expand...
Click to collapse
When you flash a new rom Sashimi is used to install al your cabs automatically and do reg imports and copy files etc. So now when you are done installing everything you obviously need to run certain apps to chage settings and this app will help you execute these apps once sashime is done installing
Have a look at sashimi here : http://www.winmo-experts.com/viewtopic.php?f=7&t=4
Forgot
Forgot to add you can even install cab files with it
ok I see. Thanks for explanation.
Thx you. Will look into it.
Thanks for the source code, now i can excute a .lnk without error.
last try fail with process.start, shellexcuteex and mortscript
vua777 said:
Thanks for the source code, now i can excute a .lnk without error.
last try fail with process.start, shellexcuteex and mortscript
Click to expand...
Click to collapse
No problem i battleded my backside of as well to get it to work. It would only execute .exe files initially but now it will do .cab .lnk and properly .html as well cause it passes it to the shell instead off trying to execute it itself. What app are you trying to write? You will see there a waitcomplete or something. if you remove that line it will start the process and still continue to run the app in the foreground. that command makes it execute the app and wait for it to finish before carying on with code. The only problem with that is if you would execute an app and minimize it then your code will wait indefinately for the app to exit before it will continue

[Q] about cooking gameloft games to hd2

Default Trouble Cooking
I am trying to add Gameloft games that I have bought to my os kitchen. I am having trouble getting NBA 2010, Midnight bowling 2, and Avalanche Snowboarding to launch. I have all of the file in the correct places and they all show in in the rom after it has finished cooking but they dont launch either from the start menu or the programs files folder. I am hoping that if some could help me figure this out, and in the process help others who could have the same problem.
i used CABTOEXT And Package to ext the edited the appdata with xml maker. then i tried with out editing the appdata and nothing. i will be willing to compansate for the fix
I think it's better to make EXT's from scratch instead of using a cab-2-package creator. There may be registry keys added by a setup.dll that you miss, or that are added after launching the app or a soft reset. Here's how I do it (you need sk tracker):
Do a scan with sk tracker.
Install the cab.
Scan again.
Launch the program, enter any codes or settings.
Scan again.
Now, do comparisons of the scans, and find all the new files and registry keys. Export the reg keys to an app.reg file. You can generally ignore the HKLM\Software\Apps and appinstall keys-these are just keys that allow the device to uninstall the cab. Occasionally, the install directory key is needed, but usually not. Definitely leave out the files in \windows\appmgr, that's just un-install info.
Next, don't bother with getting the program loaded into its own folder in \program files. That's usually a waste, because most apps work straight out of \windows. Exe's search for resources first in their own folder and then in \windows most of the time, so if you put the .exe and everything else in windows, you're good to go. If there are sub-folders, then the sub-folders need to be loaded into \windows\ as a sub-folder (I personally use zip files/mortscripts to do it, but a cab will work as will initflashfiles.dat). You have to be careful about settings files, particularly .ini's. They do not like being read-only, and this may be why your game doesn't launch. So, if you have an .ini file, or a settings.txt file, or a game.dat file (or similar), you need to load it into \windows or wherever so it's not read-only. Personally, if I have sub-folders going into windows, I'll create a zip file that sends the .ini, .dat or .txt file into \windows as an archive file, but you can also use initflashfiles.dat to create a copy wherever you want that isn't read-only.
If you change the install directory from program files to windows, then you may need to look into the .reg keys and change some paths. Also, you'll need to change any shortcut paths to \windows\game.exe. Putting things directly in windows saves memory, and you can also convert files to modules to take advantage of the increase VM slots with native 6.5 kernels. It all comes down to experimentation, though.
Thanks for the info, but all of the reg entrys were either in the hklm\security\appsinstall or the hklm\software\apps, andi i entered them and still nothing. I have never worked with mortscript, I did look for a tutorial but couldn't understand all of what they were saying is there a video tutorial, or another soultion?
Did you check to see if any settings-type files are read-only? That will kill a game for sure, and they usually save user data in files (not the registry).
I appericeate your willingness to help a noob, and thank you. how do I check to see if they are read only, how do I make shure that they are what they need to be during the cooking process?
all of the files for one of the games are as follows
Avalanche Snowboarding.exe
data.bar------------------this one Program Files\Gameloft\Game name
GetRealDPI.exe------------------this one Program Files\Gameloft\Game name
icon_45x45.png------------------this one Program Files\Gameloft\Game name
icon_60x60.png------------------this one Program Files\Gameloft\Game name
icon_90x90.png------------------this one Program Files\Gameloft\Game name
Installer.dll------------------this one Program Files\Gameloft\Game name
STPA001.DLL---------------------------this one is in windows\ appmgr
60DE.tmp---------------------------this one is in windows\ appmgr
Avalanche Snowboarding.lnk------------------this one Windows\start menu\ programs\Games
the structure of each game is very simalier, except for midnight bowling 2 which has no icon.png in the gameloft file after install.
Which one look s like the suspect for tha data file\needs not to be read only?
do the games work when you install them as a cab? after you cook your rom and you say they wont launch, have you tried installing them as cabs and see if that fixes it? if so you know its a problem with your pkg and not something else in your rom. basically what farmer ted is saying is that you can make your own package by installing the cab and then exporting all the installed files/reg and putting them in your kitchen with app.dat to put them in the right places i think this is your best bet.
Data.bar is probably the game store; just check the file properties with total commander. If it's read-only, then uncheck it.
Get rid of the two appmgr files; those are just uninstall junk, and you don't need to cook them in. You only need one of the 3 icons in all likelihood. They're start menu icons, right? Just use the one that is in the startinfo/icon reg key, and leave out the other two. I kind of doubt you need installer.dll or the getrealdpi.exe as well. It seems like those just run the install. Speaking of which, this is probably where you're screwing up. Did you just dump this stuff from the .cab with a package creator? It seems like you have files for a partially installed app. Probably, the cab installs the 'getrealdpi.exe', and that process runs and figures out your device resolution, then the installer.dll decides what files to install or maybe sets reg keys for the proper resolution. I'm not sure that you have everything you need in your package. I suspect this is the source of your problem, more so than having a settings file marked as 'read-only.'
Edit: cough, cough, I know a little more about the game now (not saying how). Data.bar is a resource file (a big one). You need it, obviously. The settings files are .sav files (2 of them, as far as I can see). They're created after you launch the game. The only two files you really need are the avalanche snowboarding.exe and the data.bar file. Do this: stick them in an EXT, and don't use an app.reg file. Just send them to \windows. Send the shortcut to the games folder, but you'll need one with the proper path. You can make the shortcut by putting the following in a .txt file and changing the extension to .lnk.
Code:
1#"\Windows\Avalanche Snowboarding.exe"
Name it whatever you want.
Long story short: put the two files in a package. Screw the icon.png, they're a huge frickin waste, imo. Then use an app.reg to send the shortcut (also in the package) to the games folder. If you want to back up user data, save the .sav files and copy them into \windows after flashing. It should work.
Farmer Ted said:
Data.bar is probably the game store; just check the file properties with total commander. If it's read-only, then uncheck it.
Get rid of the two appmgr files; those are just uninstall junk, and you don't need to cook them in. You only need one of the 3 icons in all likelihood. They're start menu icons, right? Just use the one that is in the startinfo/icon reg key, and leave out the other two. I kind of doubt you need installer.dll or the getrealdpi.exe as well. It seems like those just run the install. Speaking of which, this is probably where you're screwing up. Did you just dump this stuff from the .cab with a package creator? It seems like you have files for a partially installed app. Probably, the cab installs the 'getrealdpi.exe', and that process runs and figures out your device resolution, then the installer.dll decides what files to install or maybe sets reg keys for the proper resolution. I'm not sure that you have everything you need in your package. I suspect this is the source of your problem, more so than having a settings file marked as 'read-only.'
Edit: cough, cough, I know a little more about the game now (not saying how). Data.bar is a resource file (a big one). You need it, obviously. The settings files are .sav files (2 of them, as far as I can see). They're created after you launch the game. The only two files you really need are the avalanche snowboarding.exe and the data.bar file. Do this: stick them in an EXT, and don't use an app.reg file. Just send them to \windows. Send the shortcut to the games folder, but you'll need one with the proper path. You can make the shortcut by putting the following in a .txt file and changing the extension to .lnk.
Code:
1#"\Windows\Avalanche Snowboarding.exe"
Name it whatever you want.
Long story short: put the two files in a package. Screw the icon.png, they're a huge frickin waste, imo. Then use an app.reg to send the shortcut (also in the package) to the games folder. If you want to back up user data, save the .sav files and copy them into \windows after flashing. It should work.
Click to expand...
Click to collapse
I am Trying now.
twopumpchump said:
do the games work when you install them as a cab? after you cook your rom and you say they wont launch, have you tried installing them as cabs and see if that fixes it? if so you know its a problem with your pkg and not something else in your rom. basically what farmer ted is saying is that you can make your own package by installing the cab and then exporting all the installed files/reg and putting them in your kitchen with app.dat to put them in the right places i think this is your best bet.
Click to expand...
Click to collapse
yes the cabs work after i cook, the problem seems to be in the package.
JMM2009 said:
I am Trying now.
Click to expand...
Click to collapse
No Dice, any other suggestions?
Have you tried just clicking on the .exe instead of the shortcut? This should be working.
Edit: ok, I was getting tricked. This game only works when the .bar file is in \program files\Gameloft\Avalanche Snowboarding. Make sure you have the folders named correctly-when I changed it to game loft, the game wouldn't launch. The .exe can be in \windows. I guess the search path for the .bar file is hard-coded to the one folder.
I put them in the Program Files\Gameloft\Game Name and I got one working, Brain Challenge 3. But of the four games I am trying to install I have only been able to get one working at best during any time I have been cooking, could it be possible that the app.dat file that I have for the file path is overwriting the data.bar. This is what I have in each app.dat file
Directory("\Program Files\"):-Directory("Gameloft")
Directory("\Program Files\Gameloft\"):-Directory("Avalanche Snowboarding")
Directory("\Program Files\Gameloft\Avalanche Snowboarding"):-File("Avalanche Snowboarding.exe","\Windows\Avalanche Snowboarding.exe")
Directory("\Program Files\Gameloft\Avalanche Snowboarding"):-File("data.bar","\Windows\data.bar")
Directory("\Windows\Start Menu\Programs\Games"):-File("Avalanche Snowboarding.lnk","\Windows\Avalanche Snowboarding.lnk")
could the fact that I am creating a new gameloft folder with each game be screwing me up?
D'oh, that's definitely it! You need to work around that. Name them data1.bar, data2.bar..., then have the app.dat files rename them to data.bar when it copies them. Lol, glad it's figured out.
Edit: here's a dummy package that I would try out if I were you. It has mortscript included and all the necessary reg keys. What you need to do is to add your .exe's to the \Files folder, then add the data.bar files to the game folders inside the zip file. Basically, create a zip file with this structure: \Program Files\Gameloft\individual game folders\ and put the data.bar files in each corresponding game folder. Make sure the names are correct on the folders. Zip it up, and make sure the paths are correct, just like the way I have it, although I don't know the game names.
Then, look in the UnzipGameloft.mscr file with a text editor. Edit the .exe names in each of the 'createshortcut' commands to the name of the exe (exactly). You can call the .lnks whatever you want. The mortscript will create the shortcuts, so don't bother with putting shortcuts in the folder. Also, the package has a script to back up user data for all of the games. This is only going to work if the .sav files are created in \windows, and not in the stupid program folders (you can write a script to back up the games in that case, but it's more of a pain). During customization, the zip file is unzipped, the shortcuts are created, and the user data is restored.
what do you use to make your pkgs???
OMG i would like to get rid of the windows files with the one in program files...
Does this MSCR pkg can do that you know this is a case of double files in windows and in progranfiles
Edited
Farmer Ted said:
D'oh, that's definitely it! You need to work around that. Name them data1.bar, data2.bar..., then have the app.dat files rename them to data.bar when it copies them. Lol, glad it's figured out.
Edit: here's a dummy package that I would try out if I were you. It has mortscript included and all the necessary reg keys. What you need to do is to add your .exe's to the \Files folder, then add the data.bar files to the game folders inside the zip file. Basically, create a zip file with this structure: \Program Files\Gameloft\individual game folders\ and put the data.bar files in each corresponding game folder. Make sure the names are correct on the folders. Zip it up, and make sure the paths are correct, just like the way I have it, although I don't know the game names.
Then, look in the UnzipGameloft.mscr file with a text editor. Edit the .exe names in each of the 'createshortcut' commands to the name of the exe (exactly). You can call the .lnks whatever you want. The mortscript will create the shortcuts, so don't bother with putting shortcuts in the folder. Also, the package has a script to back up user data for all of the games. This is only going to work if the .sav files are created in \windows, and not in the stupid program folders (you can write a script to back up the games in that case, but it's more of a pain). During customization, the zip file is unzipped, the shortcuts are created, and the user data is restored.
Click to expand...
Click to collapse
Ok Renaming didn't do the trick, so I am trying the mortscript method, have the exe in the first gameloft.zip then I have put the data.bar file in the folders that contain there name, I edited the unzipgameloft file with the creat shortcutlinks. now my question is this the gameloft zip withen the bundled files you sent, does this need to be renamed or can I drop it in my kitchen?
as of right now I am using OS kitchen, I tried cooking them in, which didn't work. then I tried pausing then adding the file, but I thought i remembered reading somewhrer that you need to pause before it reads the dump file however I dont have that ability I can onlt pause before the platform builder runs do I need to use a different kitchen, or should cooking them in or add them before the platform builder work?
Now this is funny
I tried to cook the games in with renaming data1 data2 ect... then I cooked, when the rom loaded I went to program files\gameloft folder and renamed each data.bar back to what it was, and they WORK thats good, now all i need to figure out is how to get each of those files to be renamed during the cooking processes or during the start up customazation. am I correct in thinking this, is it possiable?
JMM2009 said:
I tried to cook the games in with renaming data1 data2 ect... then I cooked, when the rom loaded I went to program files\gameloft folder and renamed each data.bar back to what it was, and they WORK thats good, now all i need to figure out is how to get each of those files to be renamed during the cooking processes or during the start up customazation. am I correct in thinking this, is it possiable?
Click to expand...
Click to collapse
You can edit app.dat and change the destination file name to do that.
Directory("DESTINATIONFOLDER"):-File("DESTINATIONFILENAME","\Windows\SOURCEFILENAME")
airxtreme said:
You can edit app.dat and change the destination file name to do that.
Directory("DESTINATIONFOLDER"):-File("DESTINATIONFILENAME","\Windows\SOURCEFILENAME")
Click to expand...
Click to collapse
It didn't rename it, it did however allow windows to overwrite the other data.bar files so it looks like it will have to be done during the customization
JMM2009 said:
It didn't rename it, it did however allow windows to overwrite the other data.bar files so it looks like it will have to be done during the customization
Click to expand...
Click to collapse
I suggest you to leave the cab as it is and add it in the config.txt file for Autorun (with an add2config.txt file): using cab2ext when the application has to stay in program files can make the first boot a little quicker but it's going to waste more imgfs space because the files are not compressed (also with CABs you can uninstall the game in case you need). If you still want to cook it in as an expanded package you just have to use the kitchen package converter, rename all the package files adding an identifier in front of it like "gamename_" different for each game and edit the initflashfile changing the source file name with the one with the prefix. That should do it.
airxtreme said:
I suggest you to leave the cab as it is and add it in the config.txt file for Autorun (with an add2config.txt file): using cab2ext when the application has to stay in program files can make the first boot a little quicker but it's going to waste more imgfs space because the files are not compressed (also with CABs you can uninstall the game in case you need). If you still want to cook it in as an expanded package you just have to use the kitchen package converter, rename all the package files adding an identifier in front of it like "gamename_" different for each game and edit the initflashfile changing the source file name with the one with the prefix. That should do it.
Click to expand...
Click to collapse
What kitchen package convertor do you reccomned?

Problems cooking quick shutdown

So, I'm pretty new at creating working ext packages from cab files, and I could use some help.
I'm trying to cook in the latest Quick Shutdown, and of course tie it to long press end key, like it was meant to be used for.
With some help from Grumps, here is what I've managed to get for my app.dat and app.reg:
app.dat:
Code:
Directory("\Windows"):-Directory("resources")
Directory("\Windows\resources"):-Directory("lang")
Directory("\Windows\resources"):-Directory("VGA")
Directory("\Windows\resources\VGA"):-File("bg_common_divider_section.png","\Windows\bg_ common_divider_section.png1")
Directory("\Windows\resources\VGA"):-File("bg_common_dotline.png","\Windows\bg_common_d otline.png1")
Directory("\Windows\resources\VGA"):-File("bg_common_msgbox.png","\Windows\bg_common_ms gbox.png1")
Directory("\Windows\resources\VGA"):-File("bg_common_titlebar.png","\Windows\bg_common_ titlebar.png1")
Directory("\Windows\resources\VGA"):-File("btn_checkbox_thirdState.png","\Windows\btn_c heckbox_thirdState.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_checkbox.png","\Windows\btn_commo n_checkbox.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_combo_down.png","\Windows\btn_com mon_combo_down.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_input.png","\Windows\btn_common_i nput.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_listitem_bottom.png","\Windows\bt n_common_listitem_bottom.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_listitem_middle.png","\Windows\bt n_common_listitem_middle.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_msgbox_large.png","\Windows\btn_c ommon_msgbox_large.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_msgbox_small.png","\Windows\btn_c ommon_msgbox_small.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_normal.png","\Windows\btn_common_ normal.png1")
Directory("\Windows\resources\VGA"):-File("btn_common_slider.png","\Windows\btn_common_ slider.png1")
Directory("\Windows\resources\VGA"):-File("sliderBtn.png","\Windows\sliderBtn.png1")
Directory("\Windows\resources\lang"):-File("lang.czech.txt","\Windows\lang.czech.txt")
Directory("\Windows\resources\lang"):-File("lang.danish.txt","\Windows\lang.danish.txt")
Directory("\Windows\resources\lang"):-File("lang.english.txt","\Windows\lang.english.txt ")
Directory("\Windows\resources\lang"):-File("lang.french.txt","\Windows\lang.french.txt")
Directory("\Windows\resources\lang"):-File("lang.german.txt","\Windows\lang.german.txt")
Directory("\Windows\resources\lang"):-File("lang.greek.txt","\Windows\lang.greek.txt")
Directory("\Windows\resources\lang"):-File("lang.italian.txt","\Windows\lang.italian.txt ")
Directory("\Windows\resources\lang"):-File("lang.polish.txt","\Windows\lang.polish.txt")
Directory("\Windows\resources\lang"):-File("lang.russian.txt","\Windows\lang.russian.txt ")
Directory("\Windows\resources\lang"):-File("lang.spanish.txt","\Windows\lang.spanish.txt ")
Directory("\Windows"):-File("bootloader.exe","%Windows%\bootloader.exe")
Directory("\Windows"):-File("ConfigQS.exe","%Windows%\ConfigQS.exe")
Directory("\Windows"):-File("DLLSetup.dll","%Windows%\DLLSetup.dll")
Directory("\Windows"):-File("QuickShutdown.exe","%Windows%\QuickShutdown.exe")
Directory("\Windows"):-File("Short_Power.exe","%Windows%\Short_Power.exe")
Directory("%Windows-StartMenu-Programs%"):-File("Quick Shutdown.lnk","%Windows%\_Shutdown.lnk")
app.reg:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Manila_Config QuickShutdown]
"SourcesDirectory"="\\Windows\\resources\\VGA\\"
[HKEY_LOCAL_MACHINE\Software\Manila_QuickShutdown]
"actionShortPress"=hex:00
"BootActiv"=hex:01
"langFile"="\\Windows\\resources\\lang\\lang.english.txt"
"RestartActiv"=hex:01
"ScreenOffActiv"=hex:01
"ShutdownActiv"=hex:01
"SleepActiv"=hex:01
Cooking that package, I have a few problems. When I hold down the power button, it says exe can't be found. So, just to make sure that the visual aspect is working, I try searching for quickshutdown.exe in \Windows and can't find it.
So, what's wrong in my .dat and .reg?
Thanks a lot for the help, this will definitely give me a better understanding of how EXT packages work!
Regards
Smith
First of all, I think that these lines in your app.dat are unnecessary; because when you cook the ROM then the files that are not specified with the path in app.dat land automatically in the Windows folder:
Directory("\Windows"):-File("bootloader.exe","%Windows%\bootloader.exe")
Directory("\Windows"):-File("ConfigQS.exe","%Windows%\ConfigQS.exe")
Directory("\Windows"):-File("DLLSetup.dll","%Windows%\DLLSetup.dll")
Directory("\Windows"):-File("QuickShutdown.exe","%Windows%\QuickShutdown.exe")
Directory("\Windows"):-File("Short_Power.exe","%Windows%\Short_Power.exe")
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Second: All of the lines are wrong. Example:
Directory("\Windows"):-File("QuickShutdown.exe","%Windows%\QuickShutdown.exe")
Click to expand...
Click to collapse
It should be:
Directory("\Windows"):-File("QuickShutdown.exe","\Windows\QuickShutdown.exe")
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Third: Open up the file _Shutdown.lnk in notepad and see if it links to the \Windows\QuickShutdown.exe
Click to expand...
Click to collapse
Maybe you will find something in my post that can help you.
It's much, much easier to do than the way you're trying to do it. First, copying all of those files is really wasteful. If you look at your registry keys, there are paths there for the resource files. Instead of creating a \windows sub-directory, you could just set the path as \windows. Then, the files that are in rom will be used, and you won't need duplicates, or any of the app.dat lines (except for the .lnk).
Change the .rgu to this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Manila_Config QuickShutdown]
"SourcesDirectory"="\\Windows\\"
[HKEY_LOCAL_MACHINE\Software\Manila_QuickShutdown]
"actionShortPress"=hex:00
"BootActiv"=hex:01
"langFile"="\\Windows\\lang.english.txt"
"RestartActiv"=hex:01
"ScreenOffActiv"=hex:01
"ShutdownActiv"=hex:01
"SleepActiv"=hex:01
Try deleting the DLLSetup.dll-it's really unlikely that you need it. It's just cabinstall information, most likely. Unless you really want all those other lang files, I'd just delete all but the English one. If you cook them all in, it's possible that you'll need to get the others into \windows\lang (it doesn't look like there's a reg key for the lang directory, just for the file being used). I don't know, I've never used the app. As mentioned above, you may also need to fix the path of the shortcut.
You may also want to look into compressing the png files, although it's not really worth it if they're only 1-2 kb each.
This is what I use. I put it together and it worked, so I never did much investigation to see if it could be optimized.
One thing to be aware of ... if you have carrier files which fire provxml, it is possible that the provxml could do something to overwrite the poweroffwarning file here. Same is true if you have a poweroffwarning file getting copied in later in the build process.
Best regards,
-boggsie
Farmer Ted said:
It's much, much easier to do than the way you're trying to do it. First, copying all of those files is really wasteful. If you look at your registry keys, there are paths there for the resource files. Instead of creating a \windows sub-directory, you could just set the path as \windows. Then, the files that are in rom will be used, and you won't need duplicates, or any of the app.dat lines (except for the .lnk).
Change the .rgu to this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Manila_Config QuickShutdown]
"SourcesDirectory"="\\Windows\\"
[HKEY_LOCAL_MACHINE\Software\Manila_QuickShutdown]
"actionShortPress"=hex:00
"BootActiv"=hex:01
"langFile"="\\Windows\\lang.english.txt"
"RestartActiv"=hex:01
"ScreenOffActiv"=hex:01
"ShutdownActiv"=hex:01
"SleepActiv"=hex:01
Try deleting the DLLSetup.dll-it's really unlikely that you need it. It's just cabinstall information, most likely. Unless you really want all those other lang files, I'd just delete all but the English one. If you cook them all in, it's possible that you'll need to get the others into \windows\lang (it doesn't look like there's a reg key for the lang directory, just for the file being used). I don't know, I've never used the app. As mentioned above, you may also need to fix the path of the shortcut.
You may also want to look into compressing the png files, although it's not really worth it if they're only 1-2 kb each.
Click to expand...
Click to collapse
Great call! Worked immediately! Thanks a lot!
One more quick question. Cooking total commander is being dumb. The EXT I create doesn't have any exe files in the "files" folder, and doesn't extract any into windows. It just isn't working well lol.
Also, what version or what addon enables the user to hold the slash button and bring up the menu where you can hide exit blah blah total commander?
Thanks
Smith
Total Commander is easy to cook in. Again, you don't need app.dat lines, except for the shortcut (make sure it points to windows). Just put the .exe and the plugins (registry, wlan, ftp and webdav, if you have it) in windows. Cook in the reg settings, and you're good to go. I would convert the exe to a module as well.
Farmer Ted said:
Total Commander is easy to cook in. Again, you don't need app.dat lines, except for the shortcut (make sure it points to windows). Just put the .exe and the plugins (registry, wlan, ftp and webdav, if you have it) in windows. Cook in the reg settings, and you're good to go. I would convert the exe to a module as well.
Click to expand...
Click to collapse
So... Create the EXT and recmod without any reg or dat entries except icon and shortcut?
No, include the ghisler reg key (hkcu-software-ghisler). Set it up however you like it (like w/ a fully loaded hotlist). But don't move the files around w/ the app.dat.
Farmer Ted said:
No, include the ghisler reg key (hkcu-software-ghisler). Set it up however you like it (like w/ a fully loaded hotlist). But don't move the files around w/ the app.dat.
Click to expand...
Click to collapse
Huh this isn't working lol could you post the cab you're working with? My cab is acting up (even on fully functional roms)
Farmer Ted said:
Total Commander is easy to cook in. Again, you don't need app.dat lines, except for the shortcut (make sure it points to windows). Just put the .exe and the plugins (registry, wlan, ftp and webdav, if you have it) in windows. Cook in the reg settings, and you're good to go. I would convert the exe to a module as well.
Click to expand...
Click to collapse
Hello Farmer Ted - what for is the file that you attached?
It's a plugin for WebDav, which is the new big thing. I have no clue wtf it does.
Get the ghisler reg key from the device, not the cab. That's always the way to do it. Kheb 1.1 is the way to go for making packages. Cab converters miss a lot of stuff.
Edit: here's my package; it's in oem form (for osbuilder), and it looks like there's a second file needed to get webdav to work in the plugins. Edit the hotlist however you want it (it has folders on my sd card, which are useless to anyone else). It doesn't have a shortcut or initflashfiles.txt in it, since I don't use them for my start menu.
To be more specific about TCMD, here is the output I get with OSkitchen cab to ext:
TCMD>Files
And within the files directory:
000cecmd.002
CECMD_~2.001
00000ftp.003
00000LAN.005
registry.004
TcmObex3.007
TcmObex5.006
So what do I do with those files lol
Regards
Smith
Farmer Ted said:
It's a plugin for WebDav, which is the new big thing. I have no clue wtf it does.
Get the ghisler reg key from the device, not the cab. That's always the way to do it. Kheb 1.1 is the way to go for making packages. Cab converters miss a lot of stuff.
Edit: here's my package; it's in oem form (for osbuilder), and it looks like there's a second file needed to get webdav to work in the plugins. Edit the hotlist however you want it (it has folders on my sd card, which are useless to anyone else). It doesn't have a shortcut or initflashfiles.txt in it, since I don't use them for my start menu.
Click to expand...
Click to collapse
Thank you for sharing the package.
Farmer Ted said:
It's a plugin for WebDav, which is the new big thing. I have no clue wtf it does.
Get the ghisler reg key from the device, not the cab. That's always the way to do it. Kheb 1.1 is the way to go for making packages. Cab converters miss a lot of stuff.
Edit: here's my package; it's in oem form (for osbuilder), and it looks like there's a second file needed to get webdav to work in the plugins. Edit the hotlist however you want it (it has folders on my sd card, which are useless to anyone else). It doesn't have a shortcut or initflashfiles.txt in it, since I don't use them for my start menu.
Click to expand...
Click to collapse
Thanks for your package, much appreciated! This thread has taught me a lot about how ext's work
Do you know what all those strange files I talked of 2 posts up are though? Like, how do I put those all together?
Regards
Smith
smithisize said:
Thanks for your package, much appreciated! This thread has taught me a lot about how ext's work
Do you know what all those strange files I talked of 2 posts up are though? Like, how do I put those all together?
Regards
Smith
Click to expand...
Click to collapse
I'm not sure what the technical name is, but those are the raw files from the cab; if you extract the cab with winzip or 7-zip, that's the file names. If you give them the proper extensions (.dll, exe, etc) then you can recover the proper files. It looks like the unpacking didn't work properly.
Farmer Ted said:
I'm not sure what the technical name is, but those are the raw files from the cab; if you extract the cab with winzip or 7-zip, that's the file names. If you give them the proper extensions (.dll, exe, etc) then you can recover the proper files. It looks like the unpacking didn't work properly.
Click to expand...
Click to collapse
Ah! You're right thanks a lot lol that's where my confusion was stemming from lol I couldn't figure out what to do with them!
Thank you very much!
Regards
Smith

Categories

Resources