Create CAB File that does NOT allow uninstalling - Windows Mobile Development and Hacking General

Hi guys,
I use WinCE CAB Manager v1.1 for creating CAB files.
The only problem is that there is no option here like "Allow Uninstall: TRUE/FALSE" (like in v2.0).
I would like that some of the CAB files that I created do NOT show up in "Remove Programs".
Is there something like a standard INF file that I can use for this option, so that with every CAB that I am going to create I 1st import the .inf file (that sets uninstalling to False) and then add my files/registry settings and things like that.
If this is possible, can someone provide me with something like this?
Thanks and regards,
Molski

As far as I know there is no such option in the INF, but the app that installs the cabs (wceload.exe) has the '/nouinstall' command line parameter.

levenum said:
As far as I know there is no such option in the INF, but the app that installs the cabs (wceload.exe) has the '/nouinstall' command line parameter.
Click to expand...
Click to collapse
So adding: "wceload.exe "%1" /nouninstall" to the registry would solve my problem.
But when I do this, every CAB file I install cannot be uninstalled.
I would like to set nouinstall per CAB file, so one CAB file can be uninstalled and another one cannot.
Regards,
Molski

Why do you want to do this?
If I installed something that later could not be removed - I'd be VERY pissed off.

TheBrit said:
Why do you want to do this?
If I installed something that later could not be removed - I'd be VERY pissed off.
Click to expand...
Click to collapse
It's for 2 files I use in the Ext Rom of my Molski.Biz roms.
And believe me...you DON'T want to uninstall these 3 files ;-)
Molski

Hi molski
If you remove the registry entry in HKLM\security\appinstall for the named apps they wont show in the remove program list. You could make a cab file to do this after installing the other cabs, or try including this in the apps cabs - I only know how to do this with xml. If you need help give us a shout.

meschle said:
Hi molski
If you remove the registry entry in HKLM\security\appinstall for the named apps they wont show in the remove program list. You could make a cab file to do this after installing the other cabs, or try including this in the apps cabs - I only know how to do this with xml. If you need help give us a shout.
Click to expand...
Click to collapse
Is it possible that you could create a XML file for me that I could use in the CAB'S that I want to prevent from uninstalling?
If you want I can PM you the CAB files.
Thanks,
Molski

molski said:
Is it possible that you could create a XML file for me that I could use in the CAB'S that I want to prevent from uninstalling?
If you want I can PM you the CAB files.
Thanks,
Molski
Click to expand...
Click to collapse
Yes pm the cab files and i will see what i can do - i have managed to delete the reg entry with a cab so far and will try to include it in yours. What do the cabs install? Will it affect my wizard?

Install all of your files and export HKLM\security\appinstall to a .reg
Post the contents here and we can make you the cab you are after.

meschle said:
Yes pm the cab files and i will see what i can do - i have managed to delete the reg entry with a cab so far and will try to include it in yours. What do the cabs install? Will it affect my wizard?
Click to expand...
Click to collapse
It are 2 files, Performance and Registry tweaks CABS.
Check out "My Cabs" page on www.molski.biz for what the files do with your Wizard.
Molski.

molski said:
It are 2 files, Performance and Registry tweaks CABS.
Check out "My Cabs" page on www.molski.biz for what the files do with your Wizard.
Molski.
Click to expand...
Click to collapse
Yes i am familiar with those - i'll download the cabs and i will see what can be done.

meschle said:
Yes i am familiar with those - i'll download the cabs and i will see what can be done.
Click to expand...
Click to collapse
I will PM you the latest version tomorrow, don't use the files on molski.biz, they are outdated
Molski

molski said:
I will PM you the latest version tomorrow, don't use the files on molski.biz, they are outdated
Molski
Click to expand...
Click to collapse
I have posted you a cab - it appears the best fix. I doubt if including the reg tweak in the 2 cabs would work as the reg values are added after the install. Install my cab after yours and it will do a fix - i have left the name of the fix cab blank so it does not appear in the uninstall programs list.
rename zip to cab

@molski...
What are those cab files for? if those CAB files are only for registry manipulation (meaning no files would be dumped to th device) then CAB Provisioning will be the best, it doesn't show on the Remove Programs.. Please tell if that's what you are looking for. Goodluck!

Here are the 2 files
Here are the 2 tweak files, they are created with WinCE CAB Manager v1.1
I would like that these 2 files cannot be uninstalled after they are installed by the Extended Rom.
And please...can you guys be sure that after adding the "nouninstall" option to these files I still can edit them with WinCE CAB Manager v1.1 (because I noticed that WinCE CAB v1.1 cannot open every CAB file, especially files that are created with Visual Studio or a newer version of WinCE CAB Manager).
Really thanks a lot guys!
Regards,
Molski
p.s. Some of the tweaks are in both files in case people want to manually install one of the files, but for installing via the Ext. Rom I want to make sure that they are not able to uninstall!
p.s.2 These are the tweaks that are in the files right now:
The file: Molski.Biz Performance Registry Tweaks
• Increase FileSystem cache
• Increase FileSystem filter cache
• Increase font cache
• Disable window animations
• Disable menu animations
• Enable FileSystem cache
• Enable ClearType
• Enable ClearType in Landscape mode
• Change the thickness of scrollbars to 9
• Change the length of scrollbar arrow buttons to 9
• Enable 802.11g 54Mbps
• Set IE Mobile Zoom Settings to "normal"
• Move "IE Temporary Internet Files" to 'Storage Card' ( \Storage Card\IE Mobile\ )
• Move "IE History" to 'Storage Card' ( \Storage Card\IE Mobile\ )
• Move "IE Cookies" to 'Storage Card' ( \Storage Card\IE Mobile\ )
• Move "IE Cache" to 'Storage Card' ( \Storage Card\IE Mobile\ )
• Enable CAPS Lock indicator
The file: Molski.Biz Customizing Tweaks
• Don't delete CAB files after installing
• Turns SMS Delivery on
• Install Wireless today plug-in
• Enable receiving of files over BlueTooth/IrDA
• Add time sync page to Phone Settings
• Add a 'Disconnect' button (and Timer) to the "GPRS Balloon Tip"
• Disables different GPRS/EDGE indicator icon
• Show All Day Event and tomorrow appointments on the Today Screen
• Workaround to avoid GPRS connections conflict with phone calls
• Enable DTMF Support
• Always show the clock in the taskbar

I've edited the files so that they are uninstallable.
Don't know if they will open inn 1.1
But If the cab files only contain reg entries the solution da_mayhem suggested is a better alternative.
Øystein

da_mayhem said:
@molski...
What are those cab files for? if those CAB files are only for registry manipulation (meaning no files would be dumped to th device) then CAB Provisioning will be the best, it doesn't show on the Remove Programs.. Please tell if that's what you are looking for. Goodluck!
Click to expand...
Click to collapse
CAB Provisioning sounds great....can you give me some more info on how to do this?
The CAB files are only containing Registry Entries.
Molski

t0flus said:
I've edited the files so that they are uninstallable.
Don't know if they will open inn 1.1
But If the cab files only contain reg entries the solution da_mayhem suggested is a better alternative.
Øystein
Click to expand...
Click to collapse
Thanks, unfortunately they cannot be openend anymore with 1.1, but until I have some changes to these files they will be perfect.
Can you give me some more info on how you did this?
Maybe I can do it myself also
Molski

t0flus said:
I've edited the files so that they are uninstallable.
Don't know if they will open inn 1.1
But If the cab files only contain reg entries the solution da_mayhem suggested is a better alternative.
Øystein
Click to expand...
Click to collapse
When I try to install the files it says that the files are not compatible with my current OS ?
Molski

I just opened and edited them with Cab Manager 2.0
The Registry CSP is documented at MSDN: http://msdn.microsoft.com/library/d...en-us/mobilesdk5/html/wce51grfregistrycsp.asp
I've attached a example and the only thing you need to do is to edit the _setup.xml file and run runme.bat to generate the cab file.
Easy as .... dell..?
Best regards
Øystein

Related

Ext Rom Customisation

Hi All,
I am meddling with my ext rom. I am setting it to auto install s/w upon hard reset. it works fine. I found out that when i hard reset the pda and phone volume is set to half. How do i make it to full ? Also, i would like to know
how do i move some files to some other folders. eg: ringtones, etc.
One option is to use the CAB Wizard and create a Small CAB File with your settings for Registry - Cab wizard allows you to put files into specific folders etc and all this you can do without writing ONE SINGLE LINE OF Script.
Another option is to do it via script :
In the config.txt you can add the lines :
CPY1:\Extended_ROM\CabInstall.exe
CPY2:\Windows\Start Menu\Programs\CabInstall.exe
Means the Cabinstall.exe will be copied from the extended_Rom to the Programs folder in Windows\Start Menu.
The Registry keys you can check out on the link :
http://wiki.xda-developers.com/index.php?pagename=BA_Hacks
If they are not there - PM me and I shall send them to you...
Rgs/DD
thanks! I downloaded the PHM Reg editor and followed the instructions under Microsoft Application Installer -> Changing the setting so that it asks you where to install a cab on the link above..
It worked.. my ipaq now ask me where to install the cab files!
brilliant... thanks again!

K-JAM CAB Delete Disable tool - Stop CAB files being deleted

I made a little CAB file which contains a reg key to prevent CAB files from being deleted after you install them.
Just run this on your K-JAM and no more CAB files will be deleted.
(Although ironically of course it still deletes this CAB file since the change doesn't take place until after the install finishes and this file is deleted.)
Neat!
I store CAB files in zip files, when I want to install anything, just open it and run from zip. This way my CABs are not deleted either.
I think it's enough if you set the Read Only attribute on the CAB file.
Re: K-JAM CAB Delete Disable tool - Stop CAB files being del
awojtas said:
I made a little CAB file which contains a reg key to prevent CAB files from being deleted after you install them.
Click to expand...
Click to collapse
my solution is CabInstaller program. simply copy it on your wizard, run it and check two options:
[x] Do not delete CAB file
[x] Associate CabInstl with CAB files
from now on, CabInstaller will popup after every CAB file installation attempt, then just click install and that's it!
I've got my cabs on a storage card, and within totalcommander you can
set the properties of the cabs to "read only",
this works like a good workaround for me, some cabs i want to be deleted,
some not..
I agree^^^. I set them to read only before I copy them to the device and they are fine. If you have something like total commander or resco explorer then you can set the Read Only attribute on the device.

Using xplode's cabs as the extended rom

FIXED! NOW IT SHOULD WORK!
I hope this can help some of you.
To use xplode's cabs as the extended rom first you need to create a folder on your SD card named ExtROM
Then you need to extract all files from the cabs.rar to this folder (ExtROM on your SD card). You will need winrar or 7zip to extract the files.
Now go to ExtROM folder and rename the file SAMPLE_CFG.TXT to CFG.TXT. You can edit this file to customize it to your needs.
The final part is to download this file: extromtools.rar and extract the file autorun.exe and OemExtDll.dll to the ExtROM folder on your SD card.
Now you need to hardreset your device or simply execute CheckAutorun.exe which is located on your windows folder.
More info here:
http://wiki.xda-developers.com/index.php?pagename=BA_ERK_Understand
Execution of the Extended ROM
* CheckAutorun.exe (which is started from \Windows\Startup\CheckAutorun.lnk) executes the AutoRun.exe
* AutoRun.exe is found in the \Extended_Rom Folder
* AutoRun.exe reads the \Extended_Rom\Config.txt and executes the commnands in that file
* The pointer for AutoRun.exe HKEY_LOCAL_MACHINE\Comm\AutoRun is set to \Extended_ROM\AutoRun
* The pointer for Config.txt HKEY_LOCAL_MACHINE\Comm\AutoRunCFG is set to \Extended_ROM\AutoRunCFG
* The Touch screen is disabled by the first command (TPDisable.exe)in the Config.txt
* The Touch screen is enabled by the 2nd to last command (TPEnable.exe)in the Config.txt
* The last Command of the config.txt (RST) performs a soft reset
Click to expand...
Click to collapse
FOR PEOPLE WITH THE MMS PROBLEM:
xplode has created new cab files that include the xml and make the instalation a breeze.
xplode said:
ArcsoftMMS4.2.8.1.cab - updated cab for Arcsoft MMS Composer - one of the xmls is included in it
MMS_enable.cab - enable MMS in messaging
WU_enable.cab - enable windows update connectivity
WMDC.cab - adds T-Mobile UK support link in Windows Mobile Device Center in Windows Vista, adds high res icon for Blueangel, Changes Manifacturer and Model properties to T-Mobile MDAIII
Click to expand...
Click to collapse
Here are the files:
xplode's
http://rapidshare.com/files/52623532/cabs2.rar
mirror
http://www.megaupload.com/?d=QWCPHXT1
It works, thanks
Speed_Sheep said:
It works, thanks
Click to expand...
Click to collapse
Thanks for the reply.
Where is xplode's tool file - URL please..........
mms account
hi
i m not getting any mms account after auto run of xplod's extrom.
kumar00455 said:
Where is xplode's tool file - URL please..........
Click to expand...
Click to collapse
It's in the first post on the thread where you can download the new wm6 rom.
well remove system attributes from the xml files and you will get it
xplode said:
well remove system attributes from the xml files and you will get it
Click to expand...
Click to collapse
here is no system attribute on xml. all the files hv archive attributes.can u tell me how i do that
Thanks LGSilva.
Very good help
Obrigado!
thanks LGSilva, it works fine
fine help from u
LGSilva said:
FIXED! NOW IT SHOULD WORK!
I hope this can help some of you.
To use xplode's cabs as the extended rom first you need to create a folder on your SD card named ExtROM
Then you need to extract all files from the cabs.rar to this folder (ExtROM on your SD card). You will need winrar or 7zip to extract the files.
Now go to ExtROM folder and rename the file SAMPLE_CFG.TXT to CFG.TXT. You can edit this file to customize it to your needs.
The final part is to download this file: extromtools.rar and extract the file autorun.exe and OemExtDll.dll to the ExtROM folder on your SD card.
Now you need to hardreset your device or simply execute CheckAutorun.exe which is located on your windows folder.
More info here:
http://wiki.xda-developers.com/index.php?pagename=BA_ERK_Understand
Click to expand...
Click to collapse
I hv installed xPlode package but I can't see the MMS setting and account in Pocket Outlook. Can I solve this problem?
This is from xplode:
xplode said:
well remove system attributes from the xml files and you will get it
Click to expand...
Click to collapse
I have created cabs which replace the xml files. The one of the xml files i have merged with the Arcsoft MMS cab and there are two other cabs for enable MMS into messaging app and for enable the windows update. also i have created from the other xml cab which does this in vista:
also it adds the T-Mobile as manifacturer and MDAIII as model in properties of it.
i will test the cabs and post them, have to do a hard reset in order to test them in action
xplode said:
I have created cabs which replace the xml files i will test them and will post them
Click to expand...
Click to collapse
Thank you xPlode, I'm waiting your cab
Excellent, looking forward to your new cab. I also need MMS but it didn't work for me.
also by the way you can always use this for loading xml configurations
http://forum.xda-developers.com/attachment.php?attachmentid=37404&d=1176889923
Tried it, it just gives me an error when I run it and click on "click me", I get an windows error.
xplode said:
I have created cabs which replace the xml files. The one of the xml files i have merged with the Arcsoft MMS cab and there are two other cabs for enable MMS into messaging app and for enable the windows update. also i have created from the other xml cab which does this in vista:
also it adds the T-Mobile as manifacturer and MDAIII as model in properties of it.
i will test the cabs and post them, have to do a hard reset in order to test them in action
Click to expand...
Click to collapse
Looks pretty =) Will definitely try it when I have time...
ArcsoftMMS4.2.8.1.cab - updated cab for Arcsoft MMS Composer - one of the xmls is included in it
MMS_enable.cab - enable MMS in messaging
WU_enable.cab - enable windows update connectivity
WMDC.cab - adds T-Mobile UK support link in Windows Mobile Device Center in Windows Vista, adds high res icon for Blueangel, Changes Manifacturer and Model properties to T-Mobile MDAIII
http://rapidshare.com/files/52623532/cabs2.rar
hi xplode's
i want repeat to install the Helmi wm6 rom, but
now i have in my blueangel create a ExtROM with your cabs.
what i have to do before reinstall the Helmi rom's.
i have to cancel or format the extrom???
please help me

[SOLVED] Install Cabs in Config.txt, Then Auto-Delete Shortcut.lnk files?

I have cabs set to autoinstall in my config_ap.txt, but they also automatically create shortcut icons in the start menu which I dont want there; I would just load them in as EXTs except the programs have a few bugs that way.
Is there a way to install cabs via config.txt and in the same file delete the shortcut icons? Or is there some other way to force an autodelete of those Start Menu Icon shortcuts after the cab installs?
venomshot629 said:
I have cabs set to autoinstall in my config_ap.txt, but they also automatically create shortcut icons in the start menu which I dont want there; I would just load them in as EXTs except the programs have a few bugs that way.
Is there a way to install cabs via config.txt and in the same file delete the shortcut icons? Or is there some other way to force an autodelete of those Start Menu Icon shortcuts after the cab installs?
Click to expand...
Click to collapse
Yes, it is possible. I use Mortscript to remove/move shortcuts.
Entries in config.txt
Code:
LOCK:Enabled
LOCK:Disabled
CAB: \windows\xxxxxxx.cab
EXEC:\Windows\[B]DelReglnk.mscr[/B]
Entries in DelReglnk.mscr:
Code:
Delete ("\Windows\Start Menu\Programs\yyyyyyy.lnk")
i just create and package folder in EXT of kitchen and drop config.txt, mortscript file and the cab in the "files" folder
Either use the mortscript method, or better yet, edit the cabs and put the shortcuts where you want them.
Farmer Ted said:
Either use the mortscript method, or better yet, edit the cabs and put the shortcuts where you want them.
Click to expand...
Click to collapse
^
|
|
This.
Edit the cab and remove the icon or point it to a new path.
Farmer Ted said:
Either use the mortscript method, or better yet, edit the cabs and put the shortcuts where you want them.
Click to expand...
Click to collapse
Thanks to all. Ted, I ended up getting WinCE Cab Manager and deleting the shortcuts from the cabs.
Thanks everyone.

[SOLVED] Resco Explorer in ext package

Does anybody has Resco Explorer in ext package?
Tried to do it but i miss resco registry and resco ftp.
Thanks!!
What exactly do you want to get? I have it (selfmade).... But it's free for sure....
One more thing - I use OEM regular structure - not EXT (For OsBuilder). It's a normal package - with rgu and dsm.... Registry is a separate cab - you should add it to the package. FTP is a part of explorer - just added features.
AndrewSh said:
What exactly do you want to get? I have it (selfmade).... But it's free for sure....
One more thing - I use OEM regular structure - not EXT (For OsBuilder). It's a normal package - with rgu and dsm.... Registry is a separate cab - you should add it to the package. FTP is a part of explorer - just added features.
Click to expand...
Click to collapse
Well, in Resco site there is one cab for all the subprograms that are included in the resco 2010 8.10 version.
It is this cab I tried to convert to ext package.Everyrhing works except registry function.
Thanks anyway.
Attached is the app.reg (renamed to app.txt because of forums limitations) file that I use for Resco Explorer with FTP and Registry plugins added.
I didn't clean it up so it also contains the keys and values for the options and settings that I prefer having.
For future reference, I had the same issue as you at first then I used a tool called Kheb to monitor the registry changes that happen when I install cabs and customize everything. Kheb can also make diffs between different registry snapshots and even generate OEM packages based on such diffs.
I did apply your REG file, but Resco Registry not work yet, the problem is a SETUP.DLL in to the Resco Explorer CAB, it contains a secret instructions and I believe that is impossible to open it, anyway I saw some cooks with Resco Explorer and Registry in their ROMs, it's obvious that they know the secret.
I also want to know.....pleaseeeee
justintxu said:
I did apply your REG file, but Resco Registry not work yet, the problem is a SETUP.DLL in to the Resco Explorer CAB, it contains a secret instructions and I believe that is impossible to open it, anyway I saw some cooks with Resco Explorer and Registry in their ROMs, it's obvious that they know the secret.
I also want to know.....pleaseeeee
Click to expand...
Click to collapse
Make the package with cab to package software (there is in all kitchens) and then replace the reg and app.dat files with the ones attached and cook it.Works for me.
The idea goes to MusicMonk but his attached file doesnt work for me.
Just use Kheb like MusikMonk suggested; it will capture all of the reg keys that are installed by the setup.dll. You can also look in the setup.dll with notepad and probably see the keys that are installed.
If you're trying to backup you registration info, it's stored in a file in \windows called wmtrigger.dat. All of Resco's registration codes are stored in that file, so if you have several of their apps, that's all you need.
NIKOSXRI said:
Make the package with cab to package software (there is in all kitchens) and then replace the reg and app.dat files with the ones attached and cook it.Works for me.
The idea goes to MusicMonk but his attached file doesnt work for me.
Click to expand...
Click to collapse
I did apply your REG file but not works for me, anyway thanks for your help, mate.
I made a CAB file from the original Resco Explorer CAB, I deleted all files except SETUP.DLL and later run it and VOILA!!! the Resco Registry works !!!!!
Unfortunately I don't need it, I need the secret instructions in SETUP.DLL, I did open it using UltraEdit but I can't find nothing.
try this it should work, but your still gonna need the code as this is not cracked
Thank you, mate, but I found the secret reg keys in the setup.dll file. I used CeRegEditor to create a registry image, later install the cab with setup.dll and I created a image again, and finally I compared the first and second image to detect the differences.
I made a new reg and all works now
Thank you very much mates
fully working resco explorer package
Fixed some shortcuts added rtoday plugin, resco update, task manager that was missing and ftp in previous packages and is attached below.
Of course it needs the usual registration process.
NIKOSXRI said:
Fixed some shortcuts added rtoday plugin, resco update, task manager that was missing and ftp in previous packages and is attached below.
Of course it needs the usual registration process.
Click to expand...
Click to collapse
Have you managed to have in built registration code in it so that you dont have to feed the registration key after the installation?
c_shekhar said:
Have you managed to have in built registration code in it so that you dont have to feed the registration key after the installation?
Click to expand...
Click to collapse
The registration code is in the wmtrigger.dat file in windows folder which is created after registration.
So you have to copy this folder after registration and put it in your kitchen.
NIKOSXRI said:
The registration code is in the wmtrigger.dat file in windows folder which is created after registration.
So you have to copy this folder after registration and put it in your kitchen.
Click to expand...
Click to collapse
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
c_shekhar said:
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
Click to expand...
Click to collapse
All Resco products write registration to one file It's well known for ages and it's no need to discover anything. So if you decide to use several resco products - you should install and register them all and then save the summary wmtrigger.dat - it will be one for all installed Resco-s..... And for sure - system User name should be the same for all your roms - it's also fixed in that file...
One more tip: if you occasionally decide to use cracked resco products - you will get a conflict if you use for example one legal and one cracked program simultaneously in one rom. So better use all registered.
AndrewSh said:
All Resco products write registration to one file It's well known for ages and it's no need to discover anything. So if you decide to use several resco products - you should install and register them all and then save the summary wmtrigger.dat - it will be one for all installed Resco-s..... And for sure - system User name should be the same for all your roms - it's also fixed in that file...
One more tip: if you occasionally decide to use cracked resco products - you will get a conflict if you use for example one legal and one cracked program simultaneously in one rom. So better use all registered.
Click to expand...
Click to collapse
Thanks a lot. Added to my knowledge bank..
c_shekhar said:
Thanks a lot. I was looking for this clue sinse ages.
BTW: how did you discover this?
Click to expand...
Click to collapse
You can use sktracker in your phone.
This program traces the changes in registry and files so if you create a snapshot with the program and then install or register applications or change the options and user settings in applications (you better do it program by program) you can easily find the changes and apply them each time you change your rom.
I apply all mods with sashimi but there are other choices also.
NIKOSXRI said:
You can use sktracker in your phone.
This program traces the changes in registry and files so if you create a snapshot with the program and then install or register applications or change the options and user settings in applications (you better do it program by program) you can easily find the changes and apply them each time you change your rom.
I apply all mods with sashimi but there are other choices also.
Click to expand...
Click to collapse
I used to find the registry part of any cab or software by saving the registry and comparing the one before and after with the help of registry workshop on my PC, but did not know that there exists a utility with which wmtrakker.dat"" type of new file creation can also be found out.
Thanks a lot bro!!!
It's very good
Does anyone know how to backup Resco Customizations ( e.g ToollBar Shortcuts etc ? )

Categories

Resources