Cmd or open exe with a parameter? - MDA III, XDA III, PDA2k, 9090 Software Upgrading

hello,
is there an way to open a exe with a parameter?
i want to unlock my xdaIII and install the unlocker. but when i start the installed exe there was an prompt who tell me that the exe-link is not correct.
when i look in Windows/programmfolder ther is the unlocker.exe and i can start it with different parameters (-hide / -unhide / ...) but how should i send these parameters?

add them to the target in a shortcut
total commander makes some nice shortcuts if you need a tool

Related

How do I run a program in Pocket PC

Ok, I am going to ask a dumb question here. Please don't make fun of me.
I am trying to get through this country code problem so I can upgrade my PDA2K. I have copied GetDeviceData.exe to my device (drag-and-dropped it there from my PC). Now - how the heck to I run the thing?
See, I told you it was a stupid question!
Re
Dear,
You have to use File Explorer to locate the folder in which you dropped the program and then double click it. If you wanna make shortcut to that, do the following
- Copy the file
- go to windows directory in your ppc and spot for start menu and then double click for program folder, then paste (paste as shortcut) the program in that folder
now you should be able to execute the program directly from your program screen
hth

Auto install of applications, folder making & regcodes.

I am starting this thread as there seem to be a lot of smart people on this forum that have a lot more knowledge about the BlueAngle device than I do and I hope that they will be able to come up with a better solution to my problem.
Problem:
1) Every time I update my device I need to run a lot of setup.exe to reload all of my software.
2) I have to create new folders under "Programs"
3) As I don’t like the default location of the links, I have to move the links into my new folders
4) I have to enter registration codes on a number of applications.
I would like to be able to automat this were possible.
I would like to share with you my solution in the hope that it helps you
and I would like it to be inproved by anybody who has a better understanding of this than me.
I have had to break this up into 3 parts and post then each seperatly.
Part 1:
Auto Install of applications based on a config file
http://forum.xda-developers.com/viewtopic.php?p=83120#83120
Part 2:
Dos add-on that allows me to make folders, copy and delete links from a batch file
http://forum.xda-developers.com/viewtopic.php?p=83121#83121
Part 3
Macro to enter the Reg codes of software.
http://forum.xda-developers.com/viewtopic.php?p=83122#83122
I base all of these on an application called "Splashphoto" which is a demo version and can be found on www.handango.com
(the link was to long to copy as it messed up the view)
You can find the files under:
ftp://xda:[email protected]/BlueAngel/Tools
I hope I can also add them as downloads.
Comments, sugestions and better ideas are welcome.
edited 18/01/04 Finished part 3 Macros
Auto Install of applications based on a config file
Problem:
1) Every time I update my device I need to run a lot of setup.exe to reload all of my software.
Now this has got on my nerves and I would like to share the solution that I have found in the hope that somebody SMART can simplify it.
I base this example on the application "Splashphoto" in the combination of the autorun.exe found in the Extended_ROM.
You can modify the concept to your own liking by changing the install location, the number of install files
**Note** the supplied config.txt files is set to turn the touch screen off when you install.
Thus it will ONLY work if your cab file does NOT come up with a message that requires you to confirm it by hand on installation.
Such as "written for older version.." or "Is already installed reinstall?.." You can change that as written below.
Although you are able to install software from your desktop onto any location of your device I have not found a switch for this and am already way out of my depth. I would think that there has to be some command line that that the Cab file reacts to. I hope somebody SMART can Work this part out.
I have added all the needed files to: AutoInstall_Beta.rar and have tried to go into a deep explanation based my own limited understanding.
ftp://xda:[email protected]/BlueAngel/Tools/Autoinstall_Beta/AutoInstall_Beta.rar
Step 1
You will need to download this file, extract it and copy it to your storage.
This example uses "\Storage\Install"
Step 2
You will need to modify the following key to insure that autorun.exe points to the correct config.txt file.
HKEY_LOCAL_MACHINE\Comm\AutoRunCFG
Old value: \Exteneded_ROM\config.txt
New Value: \Storage\Install\config.txt
Step 3
Run \Storage\Install\Autorun.exe from your device.
This file will run the commands found in Config.txt
In this case
A) disable Touch screen (may be also the phone)
B) install SlashPhoto
C) Enable Touch screen (may be also the phone)
D) Reboot
AutoInstall_Beta.rar has the following files:
1: SplashPhoto.2577.CAB
Extracted cab file from demo version of SplashPhoto found under:
http://www.handango.com/
2: AutoRun.exe
Found on the Extended_Rom.
This file will run the commands found in Config.txt
3: Config.txt
Modified config.txt file with the only entry being SplashPhoto.2577.CAB
4: TPDisable.exe
Application to disable the touch screen (may be Phone function) while installing applications also found on the Extended_Rom
5: TPEnable.exe
Application to Enable the touch screen (may be Phone function) while installing applications also found on the Extended_Rom
6: Ruler.ARM.CAB
This is a freeware application that turns your display into a Ruler.
It has been added as it comes up with a message that you need to confirm.
**Note** if you add this to config.txt you will hang and need to reboot your device.
After reboot you will find the application under start\Ruler and it will work.
**UPdate** By removing the commands TPDisable.exe and TPEnable.exe from the config,txt
you are able to confim the install dialog as the touch remains active.
Understanding of Autorun.exe:
Based on the info I have picked up there seems to be 2 versions of autorun.exe, one uses a config.txt and one not. (this one does)
After a new upgrade of your device autorun is executed to install the software based on the carrier that you have all of whih is found under \Extened_ROM hidden folder.
I took this Idea modified the config.txt and ran autorun in a new folder on my device to find out that it installed all the software in the Exteneded_rom and NOT out of the folder I was in nor with the config file that I had.
This was not what I wanted and did not make me very happy.
So after some playing around with regedit I found
HKEY_LOCAL_MACHINE\Comm\AutoRunCFG with the value of \Exteneded_ROM\config.txt
This I changed to \Storage\Install\config.txt,
re ran the autorun and it worked thus giving me Proof of concept.
Understanding of Config.txt
EXEC:\Storage\install\TPDisable.exe
CAB: \Storage\install\SplashPhoto.2577.CAB
EXEC:\Storage\install\TPEnable.exe
RST: Reset
Click to expand...
Click to collapse
It seems that with the command EXEC you can execute a *.exe file such as turning the touch screen on and off
It seems that with the command CAB you can install an application.
It seems that RST reboots the device.
What would be nice is to work out if you can force the application to install in a different location (Storage Card)
Finding your cab files.
Most applications that are installed from your desktop will create a folder and deposit the cab files in it.
If your device is connected it will kick of the setup routine that will ask you for the install location and then execute the cab file.
It is recommended that your install the software this way first to see if you get a message on your device.
If the install falls under the clean versions then you can remove it with the stettings\remove Programs and modify your config.txt
In our SplashPhoto Case the default location is:
"C:\Program Files\SplashData\SplashPhoto for PocketPC\SplashPhoto.2577.CAB"
I have also found cab files under
"C:\Program Files\Microsoft ActiveSync\Name_of_Application"
Working out which CAB is the correct one.
The file names might be ???.mips.CAB, ???.arm.CAB, ???.sa.CAB, ???.sh3.CAB or ???.Cef.CAB
I am in luck as in our case there is no choice
Which is just as well as I have no Idea what they mean.
Hint: I use ARM as it seems to work and I its my cpu type.
So what is left?
1) Solving the problem of cabs that come up with a message such as Ruler.ARM.CAB
Solved:
TPDisable.exe ----> Seems to disable the touch screen
TPEnable.exe ----> Thus this would enable the touch screen.
So for the Ruler.ARM.CAB that asks gives us the "written for other version" the following will work with out a reset
Config.txt
CAB: \Storage\install\Ruler.ARM.CAB
Click to expand...
Click to collapse
2) finding a switch to set the location of the install to say "\Storage Card"
3) A little cab that turns config location on and off.
Does a regedit of our key with out having to change it by hand.
And has a drop down Browse function to for my "\Storage\Install" folder
Or a better solution than mine!!!!
Next thing I will try to cover is batch copy and del of links
Gee I hope this all was not a waste of your time reading it.
Edit 18/01/04 added Open 1 as solved
Corrected text about what TPDisable.exe, TPEnable.exe (which is turn Touch screnn on/off (may be the Phone funtion)
Updated the section on Ruler.ARM.CAB
Dos add-on to make folders, copy and delete on Device
Problem:
2) I have to create new folders under "Programs"
3) As I don’t like the default location of the links, I have to move the links into my new folders
I base this example on the application "Splashphoto" in the combination of the autorun.exe found in the Extended_ROM
as well as freeware version of RemoteCommand.x86_15_English
I would presume that you have installed the SplashPhoto as discribed in:
http://forum.xda-developers.com/viewtopic.php?p=83120#83120
You can modify the concept to your own liking by changing folder structure of your programs menu,
the number of new folder you would like to make or the number of links you want to move.
I have added all the needed files to: CopyLinks_Beta.rar
ftp://xda:[email protected]/BlueAngel/Tools/CopyLinks_Beta/CopyLinks_Beta.rar
I have tried to go into a deep explanation based my own limited understanding.
Step 1
You will need to download this file, extract it and copy it to your desktop.
This example uses "C:\Install"
Step 2
You will need to extract the RemoteCommand.x86_15_English.zip in a location of your choice.
Step 3
You will need to install RemoteCommand.x86_15_English on your desktop
The program is setup.msi and found in the zip file
Step 4
You need to be connected to your device and activesync needs to be running
Step 5
You will need to run the CopyLinks.bat in a dos box
Start menu -> Run -> Cmd ->Enter
In the dos box
C: [Enter]
Cd c:\install [Enter]
CopyLinks.bat [Enter]
The batch file will
1) Create a new folder under your Programs folder of your device called applications
\Windows\Start Menu\Programs\Applications
2) Copy the splashphoto.lnk to this folder
\Windows\Start Menu\Programs\Applications\SplashPhoto.lnk
3) Delete the old Link
\Windows\Start Menu\Programs\SplashPhoto.lnk
CopyLinks_beta.rar has the following files:
1: RemoteCommand.x86_15_English.zip
Download freeware desktop version of RemoteCommand from
http://www.freewareppc.com/utilities/remotecommand.shtml
2: CopyLinks.bat
Batch file to create a new folder, copy the link and then delete the original link.
Understanding of RemoteCommand:
The install of remoteCommand gives you a new file called Rcmd.exe which is like a Pocket PC version of dos.
It is not executed on your pocket Pc so don’t even try to look for programs\dos.
It is a command line add-on executed in a dos window that allows you functions like copy, del md
from your desktop onto your Pocket PC or from your Pocket PC to your Pocket PC.
It adds itself in the path statement and thus a batch file can be executed from anywhere.
** Note ** You have to be connected to your device and ActiveSync needs to be running.
Understanding of CopyLinks.bat:
Rem Make a folder under programs
rcmd md "\Windows\Start Menu\Programs\Applications"
Rem Copy Links into that folder
rcmd copy "\Windows\Start Menu\Programs\SplashPhoto.lnk" "\Windows\Start Menu\Programs\Applications\SplashPhoto.lnk"
Rem Delete the old Link
rcmd del "\Windows\Start Menu\Programs\SplashPhoto.lnk"
Click to expand...
Click to collapse
Gee I hope I don’t need to go into that.
So what is left?
1) Would be nice if one would check "on error" as the dos screen sort of zips past.
2) Think it would be nice to add a "CopyLinks.bat /Install" and "CopyLinks.bat /Uninstall" option.
As we are moving the links and creating new folders the "remove program" will not pick it up.
This way one could put the links back were they belong before removing the software with "Remove programs"
Or a better solution than mine!!!!
Next think I will try to cover is batch Entering of Registration codes.
As always I hope this all was not a waste of your time reading it
Macro to enter the Reg codes of software
Macro to enter the Reg codes of software.
Problem:
4) I have to enter registration codes on a number of applications.
I base this example on the application "Splashphoto" in the combination with the
demo version of Pocket Controller-Professional by SOTI Inc found on
http://www.handango.com/ (Link was to long to copy)
or
http://www.soti.net/default.asp?Cmd=Products&SubCmd=PCPro
I would presume that you have installed the SplashPhoto as discribed in:
http://forum.xda-developers.com/viewtopic.php?p=83120#83120
I would presume that you have copied the link as discribed in:
http://forum.xda-developers.com/viewtopic.php?p=83121#83121
You can modify the concept to your own liking by recording your own macros, cutting them into one file and running them.
I have added all the needed files to: Macro_Beta.rar
ftp://xda:[email protected]/BlueAngel/Tools/Macro_Beta/Macro_beta.rar
I have not added the Pocket Controller-Professional due to its size.
Step 1
Download Pocket Controller-Professional
Go to www.handango.com
Browse by Operating System -> Windows Mobile™ Smartphone
in search add -> Pocket Controller-Professional
The rest should be clear
*or*
http://www.soti.net/default.asp?Cmd=Products&SubCmd=PCPro
Hit the [try] button
Step 2
Insure phone is connected, activesync is running
install Pocket Controller-Professional on your desktop
Step 3
Run Pocket Controller-Professional and connect to device
File -> connect
you should see you device on your screnn.
Step 4
Download the Macro_Beta.rar
Unpack it to c:\install
Step 5
in Pocket Controller-Professional
in menu Tools -> Macro -> Play [mouse click]
Browse -> choose C:\install\SplashPhoto.cmd [OK]
This will run the macro that:
1) Starts SplashPhot
(Start -> Programs > Aplications > SplashPhoto)
2) In SplashPhoto goes to Preferences and opens the keyboard
(Tools > Preferences > Keyboard)
Not very flash I know
Understanding of Pocket Controller
This is a very useful piece of software that will allow you to use your device on your Desktop.
You can take snap shots or films of your devices display. Great to prove your point with support.
It has a dos box that in this version does not support Batch files.
It has a file explorer of both desktop and device.
And what I need for this Macro recording.
(Personal pick I admit to it )
Soti if you read this post:
Qestion Is there much point in having my device on desktop if I cant even copy a text out of notepad into it?
Macro_beta.rar has the following files:
SplashPhoto.cmd
Understanding SplashPhoto.cmd
This is a text file that records the mouse event on a X/Y postion as well as other actions
That is also its downfall as you links will move as they are sorted in your folder.
Add to this that the start menu might be of a different hight.
The itemes in the start menu might have changed order
SplashPhoto.cmd
MouseEvent 0x0 0x2444 0x800
SleepEx 0xc8
MouseEvent 0x1 0x2444 0x800
SleepEx 0xd48
MouseEvent 0x0 0x3777 0xe0cc
SleepEx 0xc8
...........
Click to expand...
Click to collapse
So what is left?
1) Work out if there is a option to input in a text mode
The help is not much help.
My thoughts would be along the line of
Menu "Start"
SleepEx 0xc8
Menu "Programs"
SleepEx 0xc8
.....
Click to expand...
Click to collapse
I will e-mail support.
As always I hope this all was not a waste of your time reading it
you might check this thread out :
http://forum.xda-developers.com/viewtopic.php?t=9333&highlight=restorator
Thanks M4io
Did and did I ever go swimming!!! Have sent PM to SP for help.
Solved Part 1: CAB that need Touch screen input on install
Solved Part 1: CAB that need Touch screen input on install
Edit 18/01/04
added Open 1 as solved
Corrected text about what TPDisable.exe, TPEnable.exe (which is turn Touch screnn on/off (may be the Phone funtion))
Updated the section on Ruler.ARM.CAB (by removing the TP* commands out of config.txt the screen is still active
thus you can confirm with ok
Updated post is the original
http://forum.xda-developers.com/viewtopic.php?p=83120#83120
MDAIIIUser said:
did I ever go swimming!!!
Click to expand...
Click to collapse
System error s0c4 : Unknown expression :lol:
M4io
Try Help->search> Unknown expression > Find > Swim*
Will return, System error s0c4. <Grin>
The Short of that is after reading that post I had more questions than answers.
Finished Part 3
Macro to enter the Reg codes of software.
http://forum.xda-developers.com/viewtopic.php?p=83122#83122
I think I would simply use backup intead
i would like to know which .cab files MUST be kept in there....
Well the extrom should have the resco cabs to be able to hack the reg. (or what ever reg application you want to use).
If you don't have that then you cant change the keys to point to the new auto run as well as the new config.txt
As you will be installing of a different location the unlock cab is not needed but would be nice to have.
My smart suggestion
Hi MDAIII user,
Gr8 thing to be posted, but I follow a bit smarter way....
I use SPB Clone to take the Cloning image of all the device and after updating or after say if device got hard reset, I just restore that clone image...it restores all the data including the call history SMS and the installed softs with registration codes....
It also restores the extended ROM if one has unlocked it and the storage data too!!!!!
I hope, this information will be useful for all
Would a clone of a 1.22 Rom which is restored on a device that you just upddated to a 1.40 rom not sort of mess it up??????
Hi Man,
Logically yes, but I hv not encountered yet......

A Question for cabfile or package creator

Do you know how can I put my name and my registration code into my package ( for kitchen) or how can I put them into the cab file so I dont need to type the code everything I do the hardreset. THX
If your software keep the reg info in the registry, just add this key to your package's rgu; if on the other hand the info is in a file, just add the file and don't forget to add the file into initflashfiles
adwinp said:
If your software keep the reg info in the registry, just add this key to your package's rgu; if on the other hand the info is in a file, just add the file and don't forget to add the file into initflashfiles
Click to expand...
Click to collapse
How can I know which one in registry, which one in the file. Please let me know.
For example resco explorer I can not find where is the key storaged
Thx so much
Please anyone. Anyone can help?? THX SO MUCH
etenx500 said:
Please anyone. Anyone can help?? THX SO MUCH
Click to expand...
Click to collapse
Some one plz
etenx500 said:
Some one plz
Click to expand...
Click to collapse
use this software WinCE CabManager:
http://www.ocpsoftware.com/products.php?nm=cecabmgr
if u want further help u can mail me or PM.
Functions are:
Open Existing Cabinet Files
Open any Windows CE CAB file, as well as Smartphone and Pocket PC theme files.
Create New Cabinet Files
Allows you to create a brand-new CAB file, add the Windows CE files, shortcuts and registry entries needed to install your application, and then save the new CAB file to disk.
Modify Cabinet Information
View and modify general information about the Windows CE CAB file, such as the name of the company and of the application, processor and operating system version required to run the application, and the default installation directory.
Modify Windows CE File Entries
The Windows CE files stored in a CAB file can be viewed and modified, and new files can be added. You can change the order in which the files will be installed, the location where each file will be installed, and more.
Modify Shortcut Entries
The shortcut entries stored in a CAB file can be viewed and modified, and new shortcuts can be added. You can change the location where each shortcut will be installed, the name and target of the shortcut, and more.
Modify Registry Entries
The registry entries stored in a CAB file can be viewed and modified, and new entries can be added.
Modify Setup DLL Information
You can view information about the Setup DLL included in a cabinet, or add a new Setup DLL to the cabinet.
Full Drag and Drop Support
Use your mouse to quickly and easily add and extract files between WinCE CAB Manager and any other application that supports "Drag and Drop", such as Windows Explorer.
Full Copy and Paste Support
Quickly and easily add and extract files between WinCE CAB Manager and any other application that supports "Copy and Paste" operations, such as Windows Explorer.
Import/Export Windows CE INF Files
Automatically generate and load CAB files from your existing Windows CE INF files, or use the WinCE CAB Manager to edit the CAB files and then generate an INF file for use with automated builds.
Automation Support
The WinCE CAB Manager exposes a COM Automation interface which allows it to be manipulated from other programs, such as Visual Basic or even VBScript.
Support for Third-Party "Add-Ins"
The WinCE CAB Manager functionality can be expanded through the use of COM-based "Add-Ins".

.EXE files

how do i make .EXE files appear on the PROGRAMS folder on my diamond - do i always have to go to file explorer to open .exe file
help please
bump
anybody please
Creating a shortcut to the exe in the start menu might be enough, but I haven't tried it. Doing that will definitely work to show it in Start/Programs, but I don't know if it will show up in TF3D programs unless it's actually installed with a cab.
hawwy said:
how do i make .EXE files appear on the PROGRAMS folder on my diamond - do i always have to go to file explorer to open .exe file
help please
Click to expand...
Click to collapse
Use a file manager such as Total Comander and place the .exe you want in:
\Windows\Start Menu\Programs.
Greets.

[Question]How to make a link to a .exe

I have a question
I have the game "Worms" on my device. To specify it's on my storage card.
Today I made a hard reset.
Now I want to make a link to the .exe from Worms. Cause now I hae to go through file-explorer and I want it like it was before the hard reset. There was a link in my games folder before the hard reset under programs...
How can I do this again ?
resco file explorer is your friend
Sorry, but I don't unsterstand this....
It is being suggested you download and install Resco Explorer a pay-for app that does have a free trial. Resco allows you to Click/Hold an .exe file and Send To a StartMenu shortcut which are trying to do.
You can do it the hard way with Notepad but it is a pain.
http://www.resco.net/pocketpc/explorer/
Total Commander, I think will do it too, but I own Resco and am familiar with it. It is FREE.
Hi
If you use Resco File explorer you can create shortcut to any exe file.it wil be placed to your start menu.but you can do it manualy too.without useing Resco FE.
1. Open Notepad
2. Place the entire path to the file in the first line of the file, including the .exe file. You must use quotation marks if it resides in a directory with spaces, such as “\Program Files.”
3. Count the number of characters in the command line, including spaces and quotes, to get the length of the string.
4. In the .lnk file, the format for the line is
<length of string>#<command line>
5. Save the file and copy it to the "\Windows\Start Menu" directory on the Windows CE or Pocket PC device. This places the shortcut at the top level of the Start Menu.
You don't need a 3rd-party explorer or notepad. Creating shortcuts is very simple using the built-in file explorer.
Step 1: Start file explorer.
Step 2: Navigate to the folder the EXE is in.
Step 3: Highlight the EXE.
Step 4: Copy the EXE to the clipboard (Menu | Edit | Copy).
Step 5: Navigate to the start menu folder you want the shortcut in (typically \Windows\Start Menu\Programs).
Step 6: Paste a shortcut to the EXE (Menu | Edit | Paste Shortcut).
Step 7: Rename the shortcut if desired.
The shortcut will now be in start menu programs. You can now move it to and from the top-level start menu using Start | Settings | Menus.
V/R
Russell
First of all thanks to everyone for posting...
But I have one question....what do you mean with "highlight the EXE?"
I hope you can help me ^^
But I have one question....what do you mean with "highlight the EXE?"
Click to expand...
Click to collapse
When you navigate to a folder in File Explorer, the first file in the folder is highlighted (selected). Highlight the the executable file to which you need a start menu shortcut, either using d-pad down, or tap-n-hold with the stylus. This will be the file copied to the clipboard in step #4.
Note: I use the term "highlight" rather than "select" because selecting the file implies tapping on it, which will open the application. You don't want to start the application.
hammellose2 said:
First of all thanks to everyone for posting...
But I have one question....what do you mean with "highlight the EXE?"
I hope you can help me ^^
Click to expand...
Click to collapse
Do a search. There are many tutorials that can walk you through this.

Categories

Resources