Prohibit the execution of the *.cab - General Topics

Hi,
I develope an application on HP IPAQ,
my application turns in FullScreen Mode, I want to prohibit the
execution of the *.cab on my pocket pc
So, how can i lock or disable the execution of the file of installation
.cab?
Any idea?
Sol

...with SKtools you can unassign the association.
Or use the program "cabinstl 1.3" to led you assign all *.cab to this program and whether or not accept install at popup...

Krinkiespijer said:
...with SKtools you can unassign the association.
Or use the program "cabinstl 1.3" to led you assign all *.cab to this program and whether or not accept install at popup...
Click to expand...
Click to collapse
Thank you for your help and your file,
The first one, that i search a solution that i can to introduce in my source code with c#, so i can't use your program, i want that will be do automatically.
The seconde one, to prohibit the execution of the *.cab in my poket, i
have remove this key from registre :
[HKEY_CLASSES_ROOT\cabfile\Shell\Open\Command]
=> wceload.exe "%1" /nodelete
so now, i can't open any .cab file in my pocket pc .
But that i want, When we click in .exe or .msi on PC, that can be transfer
the application in Pocket pc. did you understend my objective.
i want any program can be installed from PC. prohabit any installation
from Pc to Pocket Pc
Is there any way to do this?

Cab installation on the device is done by wceload.exe. If you overwrite it with an empty exe file (with the same name) there will be no way to install cab files from device or PC.

levenum said:
Cab installation on the device is done by wceload.exe. If you overwrite it with an empty exe file (with the same name) there will be no way to install cab files from device or PC.
Click to expand...
Click to collapse
it's good idea, but we have a small probleme, that we can just read wceload.exe because it have a Archive and Read-Only on the his Attributes.

Actually, it is in ROM, which is why you can't delete or edit it, but any ROM file can be overwritten by a file with the same name which will be stored in regular memory (RAM for WM2003, flash for WM5) and will "hide" the original file.
In WM5 device this has to be done from inside the device with apps like Resco explorer or Total commander or using a cab installation because of security restrictions. On WM2003 and lower you can do it via file explorer from the desktop.

Don't you have the Policy setting in the Control Panel?
That restricts the user to download/install programs via:
- PIE
- Inbox
- File Explorer
- Active Sync
- IR beaming
and users will not be able to rename programs to enable them to start.
Settings will be done in HKLM\Security\Policies\Policies and Shell.
Make sure you have the HKLM\ControlPanel\AdminPassword key with no "Redirect"="" value. Rename "Redirect" to something like "_Redirect".
Then check your Control Panel settings again for the Policy setting.
Cheers

levenum said:
In WM5 device this has to be done from inside the device with apps like Resco explorer or Total commander or using a cab installation because of security restrictions. On WM2003 and lower you can do it via file explorer from the desktop.
Click to expand...
Click to collapse
when I copied a file named wceload.exe to \windows in the pda by using Resco Explorer, I succeeded to prohabit any installation from pc to Pocket.
So, to Introduce this solution in my c# code, I have used File.copy(wceload.exe,\windows\wceload.exe,true),
Finnaly, I solved my problem
Thank you for your help

Related

Installing software to other directory.

Hi all,
I just sucessfully installed big storage on my O2 mini and was wondering how i can change the default directory to which my software installs. The software is Imaginet-arabitizer and it uses a PC-based installation. No cab files...
Help please....
help
you can only whether you want to install a program to a default location, storage or a storage card. it will ask you in the beginning of installation by ActiveSync. choose NO and install sonewhere else.. gl
Still no luck....
Unfortunately, this particular program does not use the active sync user interface for the installation....
Any other methods?
i saw a shareware program on the forums once that did that... wish i downloaded it then cause i cant find it again sorry .. thought id let you know its out there though.....
aidil916 - unless it's some kind of ROM update etc, anything that gets installed on the PPC must always use a cab file, even on PC based install. So, start the install, and does add/remove programs or something come up?
Either way, if it installs something to the PPC (i've no idea how the arabizer works), interrupt the installation or somehow stall it. Then use a program like Filetracer or even the XP search tool to find any cabs installed to your pc in the last few minutes. Track down the cab (usually in your temp folder, programs folder or activesync folder) and then take a backup copy of the cab. Then, copy that to your PPC..
Tell me how it goes.
V
aidil916 said:
I just sucessfully installed big storage on my O2 mini and was wondering how i can change the default directory to which my software installs.
Click to expand...
Click to collapse
Usually when you perform PC-based installation software asks you for target location but some programs are hard-coded with "\Program Files\ProgramName" path so they will fail to work if you place them to another locations, i.e. to Storage Card
For programs that don't allow you to change target location you can change their registry entries to correct their path from "\Program Files\" to "\Storage Card\Program Files\". Here you will also need to manually move your program to a new location (SD) using Explorer's copy-&-paste functions
ps: don't use cut-&-paste because some of your programs may be running and this will cause sharing violation errors
Example, I have program "ABC" installed at "\Program Files\ABC" folder.
1) Using Explorer I navigate to "\Program Files" and COPY "ABC" folder to clipboard
2) Now I navigate to "\Storage Card" and create folder "Program Files"
3) I open newly created folder "\Storage Card\Program Files" and PASTE my "ABC" folder from clipboard here
4) Using Registry Editors I search for "\Program Files\ABC" entries and change them to "\Storage Card\Program Files\ABC"
5) I do soft-reset. If after that program works Ok, I delete "\Program Files\ABC"
The software is Imaginet-arabitizer and it uses a PC-based installation. No cab files...
Click to expand...
Click to collapse
Check your activesync's installation location. You will find the cab file within Software name or company folder, like "C:\program files\microsoft activesync\ABC"
Cheers
aidil916 said:
Hi all,
I just sucessfully installed big storage on my O2 mini and was wondering how i can change the default directory to which my software installs. The software is Imaginet-arabitizer and it uses a PC-based installation. No cab files...
Help please....
Click to expand...
Click to collapse
There are 3 methods i use,
1st is download the CAB file if you can, copy to your PPC and install with a program called CAB Install http://www.s-k-tools.com/fp/viewtopic.php?t=44 which allows you to install the app anywhere you want.
2nd is to run the standard ??.exe PC installation file but without your PPC pluged in. After the ??.exe install file is finished it will normally produces a CAB file on your PC which will copy across to your PPC next time you plug it in. All you need to is to find the CAB file and manually copy it to your PPC and use CAB Install.
The 3rd way is to do the same as 2 above and then use an app called WinCE CAB manager which you can generally modify the CAB files standard installation directory to what ever you want to.
Hope this helps
Most software including PC based installs eventually use CAB files. For this I use a small program CabInstl.

How to extract cab file from exe ?

hi !
Most of our software are .exe files to be run from a PC and to be installed then on the PPC.
When one wants to perform a HR away from PC, it is then hard to quickly re-install all apps.
Having cab files stored in the SD card is the solution but what to do when no cab files are available only exe ?
My question is then the following : is there a possibility to extract CAB files from .exe files ?
Thx in advance
Hi,
Often the .exe is just a self extracting archive which you can open with winrar
doesn't always work, just right-click on the .exe en choose open with winrar...
also, when you try to install an exe file, the .cab is extracted and moved to you phone, that means you should be able to find the cab somewhere and copy it...
most of the time in \program files\microsoft active sync\(appname)
also, when you install an app, some of them ask you where to install it on your pc, in that directory you can find the cabs you need
now I'm just looking for a program that can make an cab installer that can be run on my phone and installs every cab to SD...
I found one, but it doesn't work... teksoft airwizard 1.1...
Bartus
at times one can also just rename it from .exe to .zip
yes copy from activesync folder is possible but i have the same problem only with this difference. On my working computer i have administrator rights and folder Program files is blocked for me. I need a program to extract cab form exe. WinRar does not work. Sorry for my bad english
well try this: after cab transferred to your device, don't install it (and don't cancel!!) , go to Windows\AppMgr , and see if a folder with the name of that program exists with a cab file in it ...
now I'm just looking for a program that can make an cab installer that can be run on my phone and installs every cab to SD...
I found one, but it doesn't work... teksoft airwizard 1.1...
Click to expand...
Click to collapse
try SettingsSaviour ... it has a silent install feature with which you can install many cabs at once, downside is silent isntall can't be used to install programs on SD, you'll have to manually choose Storage Card for each program...
Very comprehensive explanations ... thanks to all of you ! I gonna try and report if any further problems.
--------------------------------------------
After trying to change the extension of the .exe, I have to report that it works with one of the files I wanted to CABized.
To MODO : do I need to stamp this thread as SOLVED ?
Bonusbartus said:
Hi,
Often the .exe is just a self extracting archive which you can open with winrar
doesn't always work, just right-click on the .exe en choose open with winrar...
also, when you try to install an exe file, the .cab is extracted and moved to you phone, that means you should be able to find the cab somewhere and copy it...
most of the time in \program files\microsoft active sync\(appname)
also, when you install an app, some of them ask you where to install it on your pc, in that directory you can find the cabs you need
now I'm just looking for a program that can make an cab installer that can be run on my phone and installs every cab to SD...
I found one, but it doesn't work... teksoft airwizard 1.1...
Bartus
Click to expand...
Click to collapse
What I did to keep installed cab files was I created a new folder in my storage card and named it "CABS", then I did a registry tweak to where the cab file was not deleted after installation. Now whenever I download a cab file, I "save as", CABS folder(from the dropdown box) on my storage card.
DR400 said:
hi !
Most of our software are .exe files to be run from a PC and to be installed then on the PPC.
When one wants to perform a HR away from PC, it is then hard to quickly re-install all apps.
Having cab files stored in the SD card is the solution but what to do when no cab files are available only exe ?
My question is then the following : is there a possibility to extract CAB files from .exe files ?
Thx in advance
Click to expand...
Click to collapse
Just wants to mention a "universal" unpacker called UniExtract - http://legroom.net/software/uniextract - it can extract many .EXEs made by install tools. Also - check out MSCEInf - which can analyze an CAB-file - http://www.freewareppc.com/utilities/msceinf.shtml
Are you able to open a exe file on your device? 90% of the programs I like have exe files and I always get not a valid pocket pc application. I've even tried to rename exe to cab or zip, but doesn't work. The file extension being downloaded is shaded out in the file type box in the download dialog box and cannot be changed. I've tried programs to convert exe files to other extensions, but all they do is convert after the downloaded exe files have already been installed.
hotdog53 said:
Are you able to open a exe file on your device? 90% of the programs I like have exe files and I always get not a valid pocket pc application. I've even tried to rename exe to cab or zip, but doesn't work. The file extension being downloaded is shaded out in the file type box in the download dialog box and cannot be changed. I've tried programs to convert exe files to other extensions, but all they do is convert after the downloaded exe files have already been installed.
Click to expand...
Click to collapse
thats because they are exe files that are supposed to be run on a normal PC. You download the exe to a PC, then when you have your Phone connected via Activesync, run the exe and it will install on your phone.
Alternativly, use WinRar on your PC to extract the exe, and copy the .cab files to your phone, then open them. (this does not always work, not all exe files are extractable)
DR400 said:
hi !
Most of our software are .exe files to be run from a PC and to be installed then on the PPC.
When one wants to perform a HR away from PC, it is then hard to quickly re-install all apps.
Having cab files stored in the SD card is the solution but what to do when no cab files are available only exe ?
My question is then the following : is there a possibility to extract CAB files from .exe files ?
Thx in advance
Click to expand...
Click to collapse
My solution is:
1) keep PDA disconnected (no active sync session)
2) install exe as usual and, when standard installation dialog will appear, go on (later cab installation will begin when you'll connect phone to pc)
3) open regedit.exe
4) go to this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AppMgr\Apps
5) there you'll find a list of installable cabs via active sync
6) under each application, the value ListCabFiles is the name of cab file and the value InstallDir is its position of file system.
Remember to uninstall exe after you copy/move the cab file (or delete application key) otherwise installation of cab files will start on next activesync session!!
Simple, do you agree?
yeh... sure i cant use activesync, so i just extract the exes seems easy enough
mugglesquop said:
thats because they are exe files that are supposed to be run on a normal PC. You download the exe to a PC, then when you have your Phone connected via Activesync, run the exe and it will install on your phone.
Alternativly, use WinRar on your PC to extract the exe, and copy the .cab files to your phone, then open them. (this does not always work, not all exe files are extractable)
Click to expand...
Click to collapse
I use a program called pocketRAR like winRAR but for mobile win -extract files- get cab and run its that easy just did it with this calc.exe
Knocksock said:
Just wants to mention a "universal" unpacker called UniExtract - http://legroom.net/software/uniextract - it can extract many .EXEs made by install tools. Also - check out MSCEInf - which can analyze an CAB-file - http://www.freewareppc.com/utilities/msceinf.shtml
Click to expand...
Click to collapse
I have just used uniextract to unpak my Pocket informant, I think this utility will be a life saver for all those files that i can't get as CABS. I have a lot of problems with active sync but can easily transfer to SD card with card reader or WM5Storage.
Thanks you so much
exe programs which use activesync
always get cabs from the install programs
if just renaming the exe to zip don't let you extract the cab file manualy
an installation on a pc without a pda connected to active sync would leave the cab files somewhere so next time the pda is connected the cabs can be transfered
search for *.cab and find the one you're looking for on the computer
Ran the .exe, found the cab, copied it.
Thanks.
Oh and UniExtract looks like a great program so I'll probably be using that next time.
NOT ALL
Not all the apps can run on the SD... thats for sure
but always you can... use setingsaivour BTW you can edit some cabs that arent sign trusted or only read with cab manager and edit the cab to apply the default installation or tell it that you dont want to choose set default main or SD... save it and tadaaaa!
I always do that... change .exe to .rar or .zip see inside extract the cab and copy it to my Cab folder on sd... always edit the sd config... and run the User customization !
this is not only easy, but it works flawlessly,
thanks
why don't you try 7zip for pocket pc? is the best way and quick cuz you ccan estract your cab files right on your ppc
just go to menu and extract, works for executables for windows
Bonusbartus said:
Hi,
Often the .exe is just a self extracting archive which you can open with winrar
doesn't always work, just right-click on the .exe en choose open with winrar...
also, when you try to install an exe file, the .cab is extracted and moved to you phone, that means you should be able to find the cab somewhere and copy it...
most of the time in \program files\microsoft active sync\(appname)
also, when you install an app, some of them ask you where to install it on your pc, in that directory you can find the cabs you need
now I'm just looking for a program that can make an cab installer that can be run on my phone and installs every cab to SD...
I found one, but it doesn't work... teksoft airwizard 1.1...
Bartus
Click to expand...
Click to collapse
Not to get off subject but teksoft is just one way. I know there is a nother and I can't remember where it was, but I'll keep looking for the cab install program and let you know where it is or provide a link, if I find it.

Cab-file creation question.

Hi,
I have a question. I have for example SPB Mobiele Shell. We all now this has to be installed via a PC and i needs a serial to install. I have the program and the serial and i would like to make a cab-file of this 2. I have a program to make cab-files, WinCE CAB Manager. Can anyone explain to me how i can do this? I like to have this on my SD-card and like to install it from there in case of emergency's. I hope someone can help me with this.
Thx
many activesync install exe's
can be renamed to zip and one can out the cab files
give it a try
Rudegar said:
many activesync install exe's
can be renamed to zip and one can out the cab files
give it a try
Click to expand...
Click to collapse
Tried that but no luck. I think this is not what i mean. I would like to turn this exe into a CAB and the key included. So when i install the Cab i don't have to register.
one would think the program maker took precautions to make that impossible otherwise your cab could be distributed as a pretty easy free version
you can try to single out what files it depend
on and make a cab file from cratchs
and if the exe or dll files got alter when the serial was given
that cab would be reg'd
otherwise you would have to find out what registries was altered in the
serial process and make a reg which which did those alterations
and get the cab file to run it
Most installations that require you to install through activesync end up leaving a cab file behind. Check Program Files\Activesync\SPB... for the cab file. If it is not there restart the installation but after you have executed the setup file leave it alone and search for the cab file again. I hope this is what you were looking for
ALL exe that install via activesync have a cab, some are hidden in the profiles temporary files, some auto-delete once installed, so leave the application hanging in the install and do a search for recent files and sort by date/time (remember to allow it to scan hidden and system folders). a lot go into the activesync directory, some go into program files, i have even found some that go into the internet explorer temp files, install, and then delete themselves. The most common hiding place is your computers profile temp folder --- typically found under
C:\Documents and Settings\PROFILE\Local Settings\Temp
just dig around, its not to difficult once you find the 3 most basic hiding places.
good luck.
Sponzert said:
Hi,
I have a question. I have for example SPB Mobiele Shell. We all now this has to be installed via a PC and i needs a serial to install. I have the program and the serial and i would like to make a cab-file of this 2. I have a program to make cab-files, WinCE CAB Manager. Can anyone explain to me how i can do this? I like to have this on my SD-card and like to install it from there in case of emergency's. I hope someone can help me with this.
Thx
Click to expand...
Click to collapse
You can simply download the CAB files from SPB site directly.
Sponzert said:
Hi,
I have a question. I have for example SPB Mobiele Shell. We all now this has to be installed via a PC and i needs a serial to install. I have the program and the serial and i would like to make a cab-file of this 2. I have a program to make cab-files, WinCE CAB Manager. Can anyone explain to me how i can do this? I like to have this on my SD-card and like to install it from there in case of emergency's. I hope someone can help me with this.
Thx
Click to expand...
Click to collapse
I have run into a similar situation where my installation was failing due to the huge size of a CAB file.
In my case, the size of the CAB was nearly 23mb and the free storage left was around 26mb. This made the installer fail as it ran out of space midway during the install.
I know one thing for sure was that the PC installers (Exes that would run on the PC that would extract the CAB on the device) would extract the CABs and put them in \windows\appmgr\install folder and would trigger the installer on the device.
So during my second attempt, when the device prompted for installation location "device or storage card", I opened up the explorer on the device (guess you can do the same thing with Windows Explorer since your would stay connected over USB using Activesync) and went into \windows\appmgr\install folder and made a copy of the cab to the storage card (you can copy to your PC as well).
Exited the installer and then installed the cab from the storage card and the installation went fine.
Not sure about how the SPB apps work since there are two options during the PC install. Trail or Registered version. Based on the option chosen, it would either extract the necessary CAB (either trial or registered). I hope it creates a "Registered" version of the app in the CAB after you follow the above steps.
Hope this helps.
PS: I wish that the standard install location on the device "\windows\appmgr\install" be changed to the storage card by some tweaks. So far not successful in finding/getting one.
vprabu said:
I have run into a similar situation where my installation was failing due to the huge size of a CAB file.
In my case, the size of the CAB was nearly 23mb and the free storage left was around 26mb. This made the installer fail as it ran out of space midway during the install.
I know one thing for sure was that the PC installers (Exes that would run on the PC that would extract the CAB on the device) would extract the CABs and put them in \windows\appmgr\install folder and would trigger the installer on the device.
So during my second attempt, when the device prompted for installation location "device or storage card", I opened up the explorer on the device (guess you can do the same thing with Windows Explorer since your would stay connected over USB using Activesync) and went into \windows\appmgr\install folder and made a copy of the cab to the storage card (you can copy to your PC as well).
Exited the installer and then installed the cab from the storage card and the installation went fine.
Not sure about how the SPB apps work since there are two options during the PC install. Trail or Registered version. Based on the option chosen, it would either extract the necessary CAB (either trial or registered). I hope it creates a "Registered" version of the app in the CAB after you follow the above steps.
Hope this helps.
PS: I wish that the standard install location on the device "\windows\appmgr\install" be changed to the storage card by some tweaks. So far not successful in finding/getting one.
Click to expand...
Click to collapse
Thank you, this did the trick for me. Installed en included the registration.
Welcome. I am happy that I could be of some help
vprabu said:
Welcome. I am happy that I could be of some help
Click to expand...
Click to collapse
Now i have everything in registered Cab-files on my SD-card. Now i can make the switch to WM6. I'm dutch and have a P3300 and i guess it will take some time before HTC wil come with a dutch WM6 upgrade, so maybe not the place to ask but do you now where i can find a original English WM6 for the P3300?

Add file to WM programs list

I have a exe file on my Touch HD which is an application. It wasn't installed on my device, it was simply copied from my computer. To access the application, I currently have to go into file explorer and select the exe file.
I would like to be able to access the application from Start/Programs. Is there any way that I can make a link to my file appear in the programs list? Perhaps a new registry entry??
Thanks
dgspitfire123 said:
I have a exe file on my Touch HD which is an application. It wasn't installed on my device, it was simply copied from my computer. To access the application, I currently have to go into file explorer and select the exe file.
I would like to be able to access the application from Start/Programs. Is there any way that I can make a link to my file appear in the programs list? Perhaps a new registry entry??
Thanks
Click to expand...
Click to collapse
Move the exe file to your programs folder manually
Edit: Sorry I just thought actually that I don't know if this will work for your device (Touch HD with WM 6.1) but it works for me with my device and my ROM.
on my Nike with 6.0 i do it by copying the exe file and paste shortcut to Start Menu/Programs
ingerasu said:
on my Nike with 6.0 i do it by copying the exe file and paste shortcut to Start Menu/Programs
Click to expand...
Click to collapse
Actually you are not making a shortcut, you are copying the whole exe to the programs folder. You should actually cut and paste that way you are not having the program exe twice on your device - Save space on your internal memory.
it's .lnk file and has less than 1 KB. But thanks in advice

Where does Resco File Explorer store its serial/license number

As I flash my HD2 weekly (sometimes more frequently ) I try to adapt my program cabs with my settings and my registration info. This way I don't have to adjust my program settings and registrationinfo manualy. This saves a lot of time when flashing a new rom.
For most programs this is working perfect but for the resco program's I can't find the registration info in the register. Does anyone know where Resco File Explorer stores its serial/license number?
you could try kheb, maybe it'll help
p107r0 said:
you could try kheb, maybe it'll help
Click to expand...
Click to collapse
Thanks, I will try it.
Hi. Just have a look into your registry (use CeRegEditor or sth.). Have a look there for HKCU/Software/Resco, or HKLM/Software/Resco - somewhere you'll find the entry that saves your reg-info. I found it for every program that I bought and use (and these are quite a lot). If you won't find it within the registry, then you will have to backup your whole program-folder as it can also contain registration-info.
Hi.
Resco Serials are stored in a file. Go in Windows Dir and copy the File wmtrigger.dat. After you flash new Rom you must install Resco Programs and then copy the file into the Windows dir. Now your Programs are registered. Make it all the time with Sashimi and everything works fine
Mfg Uro
most keys are stored in the registry dude... what i do to avoid re-registering all my apps and games... i use the registry editor plugin by resco, search the registry for all the serials after i entered them, then copy the key to the storage card.... transfer the key to my desktop, then import the key to the cab using WinCE cab manager... this way you wont have to manually restore the keys all over again... i save myself this trouble bcos i have over 30 apps and games
i also did this with resco file man...
Urokinase said:
Hi.
Resco Serials are stored in a file. Go in Windows Dir and copy the File wmtrigger.dat. After you flash new Rom you must install Resco Programs and then copy the file into the Windows dir. Now your Programs are registered. Make it all the time with Sashimi and everything works fine
Mfg Uro
Click to expand...
Click to collapse
Hi,
Thanks this is working. It works for all the resco programs which are using the owner info of the device. Essential is also to put the owners name in your device. I've made a cab with the wmtrigger.dat + the owner info and this is working perfect now.
Thanks again for the info.

Categories

Resources