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

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.

Related

Create CAB File that does NOT allow uninstalling

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

shortcut for remove programs

How to make a shortcut for remove programs ? any one can help ?
furiardy said:
How to make a shortcut for remove programs ? any one can help ?
Click to expand...
Click to collapse
Euuhmmm can that also be files... cause I'm looking for a solution to delete/remove files after startup
remove programs cpl
furiardy said:
How to make a shortcut for remove programs ? any one can help ?
Click to expand...
Click to collapse
Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
more infos see this thread
petervbeck said:
Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
more infos see this thread
Click to expand...
Click to collapse
I've done it.
A long time ago.
Use TrayLaunch to embed it to Today tray as pic.
I see Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
but how?can i use resco explorer ?
furiardy said:
I see Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
but how?can i use resco explorer ?
Click to expand...
Click to collapse
You can use Total Commander to copy any .lnk file to a temporary folder, edit the name of the link to "anythingyoulike.lnk"
After that, you can use a file editor (Total commander has one) to edit the content of the .lnk to show 21#ctlpnl cplmain.cpl,10 and save.
Move the link to the place you want it to show: tray, drop down menu or using a software to show application on Today screen.
All the best.
1. copy the string between the dotted lines (not including the lines) to your notepad
2. save it as Remove Programs.lnk
3. move the link to your ppc-- windows\Start Menu\Program Files
--------------------------------
ctlpnl cplmain.cpl,10?shellres.dll,-13943
--------------------------------
Note:
1. by doing this, you'll have a shortcut with the native icon for Remove Programs
2. try "shortcut creator" if you prefer some other icons
Thanks Guys.
Thank you wovens and iiiox, it was a combination of you both that helped me. 21#ctlpnl cplmain.cpl,10?shellres.dll,-13943 is the string that worked for me. I'm happy now, although I got a basic icon and not the custom one I thought I was gonna have. Check out the pics of the 2 icons below. I must have the 'remove programs' icon next to 'file manager'. It's like addition and subtraction. I never could find the original ink file using Activesync. I just ended up editing another ink with total commander. Is there anyway to change the icon?
The part ?shellres.dll,-13943 tells it the icon to use. Most likely the one you show is actually a png image that is used by the new start menu system for icons.
You can use other programs icons as in ?\windows\myprogram.exe,23 would use the icon numbered 23 in you program called myprogram.exe
I have heard of people creating their own dll files to contain icons they want.
RoryB said:
The part ?shellres.dll,-13943 tells it the icon to use. Most likely the one you show is actually a png image that is used by the new start menu system for icons.
You can use other programs icons as in ?\windows\myprogram.exe,23 would use the icon numbered 23 in you program called myprogram.exe
I have heard of people creating their own dll files to contain icons they want.
Click to expand...
Click to collapse
I'm using Energy rom so I figured it was part of it's customization. I'm not sure I understand the example you have given, but I have tried unsuccessfully to locate the wanted icon. Also, I'm clueless about creating dll. Thanks anyway RoryB. Maybe if I stare at it long enough, it will start to make sense to me.
didn't work for me plz help

[SOLVED]How to create a shortcut for mortscript

hello to all i have created a mortscript but i did not able to create a shortcut in startmenu with packages maker.....will anyone please help me how to create a shotcut with mortscript because packages maker only show the "exe" files.
thanks to all
1#"\Windows\Connections_OFF.mscr"
Like that. Just put in your script name, put it in a .txt file and change the extension to .lnk.
Total Commander is a great tool for making links.
Since you're using mortscript, you can also use the createshortcut command to make the shortcut, like this:
Code:
CreateShortCut("\Windows\Start Menu\Programs\MortScript\RestoreWeather.lnk","\Windows\RestoreWeather.mscr")
Farmer Ted said:
1#"\Windows\Connections_OFF.mscr"
Like that. Just put in your script name, put it in a .txt file and change the extension to .lnk.
Total Commander is a great tool for making links.
Since you're using mortscript, you can also use the createshortcut command to make the shortcut, like this:
CreateShortCut("\Windows\Start Menu\Programs\MortScript\RestoreWeather.lnk","\Windows\RestoreWeather.mscr")
Click to expand...
Click to collapse
thanks for ur reply when i add like this in my created script it does not create a shortcut
any solution??????
I didn't have the script in code tags, so it had a space in the second 'windows'; maybe that was the problem. It should work fine; my whole start menu (100+ shortcuts) is created that way. You just need to have the correct path to the script you want linked.
are i add these entries ina rgu or in my created script
They go in a mortscript; you also need to put an EXEC command into an add2config.txt file to get the script to run (and mortscript has to be cooked in).
Farmer Ted said:
They go in a mortscript; you also need to put an EXEC command into an add2config.txt file to get the script to run (and mortscript has to be cooked in).
Click to expand...
Click to collapse
Thanks once again ....i put m'y scripts into m'y Windows folder and i havé created a new note.txt and i add m'y entries like u havé marked and i rénamed thé txt to mscr but when i want to test thé script before cooking it gives a error ...i havé mortscript installed ...Will i add some thing Else in m'y script or ...is it possible to upload a sample script for creating shortcut?
Do the cheaters method, and find your file in the windows directory of your device, then select and copy, finally paste as shortcut in storage card. Move shortcut off storage card. Done.
indagroove said:
Do the cheaters method, and find your file in the windows directory of your device, then select and copy, finally paste as shortcut in storage card. Move shortcut off storage card. Done.
Click to expand...
Click to collapse
ok but i want to create a shortcut in my kitchen for cook with
shafizal said:
Thanks once again ....i put m'y scripts into m'y Windows folder and i havé created a new note.txt and i add m'y entries like u havé marked and i rénamed thé txt to mscr but when i want to test thé script before cooking it gives a error ...i havé mortscript installed ...Will i add some thing Else in m'y script or ...is it possible to upload a sample script for creating shortcut?
Click to expand...
Click to collapse
What's the error? I'm guessing there's just some syntax that's off. You should try each script one at a time (comment out all but one at a time with #'s).
Farmer Ted said:
What's the error? I'm guessing there's just some syntax that's off. You should try each script one at a time (comment out all but one at a time with #'s).
Click to expand...
Click to collapse
now its ok bro ur entries worked now and i added into config.text now its creates the shortcuts automatically after flash.....
thank u very much for ur help from begin..

[Q] Default STK UIPPC icon location

When i add STK service and STK UIPPC package, a shortcut is automatically placed in root my my start menu. The name of shortcut is based on service provider (in my case, its EasyAccess.lnk). Is there any way to define where the shortcut will be placed? I.e.: "\Windows\Start Menu\Programs\Tools"
I tried provxml, it didnt work. I guess the shortcut is created on first boot and provxml is executed prior to the shortcut being created.
p/s: I do not want to resolve to mortscript yet. (im keeping mortscript as last option)
Thanks in advance!
tidus18 said:
When i add STK service and STK UIPPC package, a shortcut is automatically placed in root my my start menu. The name of shortcut is based on service provider (in my case, its EasyAccess.lnk). Is there any way to define where the shortcut will be placed? I.e.: "\Windows\Start Menu\Programs\Tools"
I tried provxml, it didnt work. I guess the shortcut is created on first boot and provxml is executed prior to the shortcut being created.
p/s: I do not want to resolve to mortscript yet. (im keeping mortscript as last option)
Thanks in advance!
Click to expand...
Click to collapse
Use a program like agent ransack to search your entire kitchen for the text "EasyAccess.lnk". There must be a file you are missing somewhere. This will find all occurrences of the shortcut in provxmls, app.dats, etc.
http://www.mythicsoft.com/page.aspx?type=agentransack&page=home
hardcoded path
mwalt2 said:
Use a program like agent ransack to search your entire kitchen for the text "EasyAccess.lnk". There must be a file you are missing somewhere. This will find all occurrences of the shortcut in provxmls, app.dats, etc.
http://www.mythicsoft.com/page.aspx?type=agentransack&page=home
Click to expand...
Click to collapse
I have searched my entire kitchen and the paths are not in app nor provxml I missed. But as I initially suspected, the path is hard coded into STK_Service.dll. I found few paths as unicode, and I did try to insert the desired folder "\Tools" to the path. Unfortunately, Im a newbie when it comes to hexediting...my edited dll resulted in non-booting room.... Will try again and post update or any hex wiz can help me out please? That would be very much appreciated.
My target is to drop the new shortcut into "\Windows\Start Menu\Programs\Tools"
I also noticed the icon registry entry for the shortcut is also defined in the dll.
My steps was: Recmod the module - edited the paths - recmod and replace the original module in ext package. The original module is attached.

[SOLVED] Start Menu icon that just won't go away

So I added MP3 Trimmer to my kitchen, but moved the location of the start icon to a Tools folder. The problem: an MP3 Trimmer icon remains in the initial start page. There is no associated .lnk file in the Start Menu\Programs folder, and the registry HKLM\Security\Shell\Startinfo\Start has the reference to the link in the correct spot.
I have tried placing the link by moving it from the default location with a MortScript, and by changing the app.dat. Same results.
I have done this same move with many other packages, this is the only one causing any problems.
No other references to MP3 Trimmer.lnk exist in the registry or kitchen. Why is it displayed in the start menu when no .lnk is present, and where is that information coming from? Thanks!
Did you check your Initflashfile.dat ?
Also the language folder may contain a app.dat or .provxml file which creates the shortcut
I didn't bothered about two folders that was empty in "\windows\start menu\programs\" until I read this post. I found one of them in Initflashfile.dat, "Outlook" and had deleted the line away. I'm still unable to find the other folder "Start Menu". It's not in Initflashfile.dat, nor any of the xml or proxml files in the "OEM Packages" folder. :-(
Check for some App.dat in EXT folder or a provxml in Project A.
Both OsKitchen and EVK has a search string inside,use it to find your dead folder.
zard said:
I didn't bothered about two folders that was empty in "\windows\start menu\programs\" until I read this post. I found one of them in Initflashfile.dat, "Outlook" and had deleted the line away. I'm still unable to find the other folder "Start Menu". It's not in Initflashfile.dat, nor any of the xml or proxml files in the "OEM Packages" folder. :-(
Click to expand...
Click to collapse
af974 said:
Check for some App.dat in EXT folder or a provxml in Project A.
Both OsKitchen and EVK has a search string inside,use it to find your dead folder.
Click to expand...
Click to collapse
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
zard said:
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Click to expand...
Click to collapse
zard said:
I'm using OSKitchen. It's not in provxml in Project A. I tried using search in OSKitchen to search "Start Menu" and "Start*.*" but can't find it. :-(
Click to expand...
Click to collapse
You probably can't find it because of hexadecimal or html entities values in which the shortcut name is probably encoded into, try looking for the encoded values instead.
Check to make sure autoshortcut isn't doing it (it could be in a reg file). Autoshortcut sucks, but I don't know if it's still used.
airxtreme said:
You probably can't find it because of hexadecimal or html entities values in which the shortcut name is probably encoded into, try looking for the encoded values instead.
Click to expand...
Click to collapse
I did try hexadecimal and html but still couldn't find it. I'm using v1.31. Maybe it is the format of the search that I'm not doing right.
af974 said:
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
Click to expand...
Click to collapse
Thanks for this but unfortunately, my kitchen is screwed up when I tried out your packages. My kitchen was alright before that. Even unchecking the two packages didn't help.
Don't worry, I'm not blaming you for the problem in my kitchen. Will have to find out what went wrong before I can test your packages again and hopefully, it can solve the problem since I can't find the culprit within my packages.
Farmer Ted said:
Check to make sure autoshortcut isn't doing it (it could be in a reg file). Autoshortcut sucks, but I don't know if it's still used.
Click to expand...
Click to collapse
Still very new to cooking so don't know what you meant by "Autoshortcut". :-(
HTC puts a file called autoshortcut.exe in one of the oem folders. It runs during customization, and creates shortcuts for htc apps. There are reg keys in the apps that get the shortcuts.
oooo__OoO__oooo said:
So I added MP3 Trimmer to my kitchen, but moved the location of the start icon to a Tools folder. The problem: an MP3 Trimmer icon remains in the initial start page. There is no associated .lnk file in the Start Menu\Programs folder, and the registry HKLM\Security\Shell\Startinfo\Start has the reference to the link in the correct spot.
I have tried placing the link by moving it from the default location with a MortScript, and by changing the app.dat. Same results.
I have done this same move with many other packages, this is the only one causing any problems.
No other references to MP3 Trimmer.lnk exist in the registry or kitchen. Why is it displayed in the start menu when no .lnk is present, and where is that information coming from? Thanks!
Click to expand...
Click to collapse
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
bobsbbq said:
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
Click to expand...
Click to collapse
What I'm talking about is behavior on the phone itself. Let's assume my kitchen searches have been wrong and it really is an app.dat issue. I have a shortcut that exists in the start menu with no associated link file or reg entry -- so there's nothing to delete to get rid of the shortcut on the actual phone!
Kitchen searches result in only the expected "MP3 Trimmer.lnk" locations and "MP3Trimmer.exe" text.
As far as I can tell, ManilaShortcut.exe only makes shortcuts for HTC People and HTC Calendar (but I have IsShortcutEnable = 0 to keep those from popping up). MP3 Trimmer isn't in the original ROM from which the Manila is based, so it's possible there's something going on there.
It's not a huge issue so I haven't been spending a lot of time trying to find or fix it, but I'm virtually out of bugs to fix. What's bothering me more is something seemingly simple that I don't understand.
oooo__OoO__oooo said:
What I'm talking about is behavior on the phone itself. Let's assume my kitchen searches have been wrong and it really is an app.dat issue. I have a shortcut that exists in the start menu with no associated link file or reg entry -- so there's nothing to delete to get rid of the shortcut on the actual phone!
Kitchen searches result in only the expected "MP3 Trimmer.lnk" locations and "MP3Trimmer.exe" text.
As far as I can tell, ManilaShortcut.exe only makes shortcuts for HTC People and HTC Calendar (but I have IsShortcutEnable = 0 to keep those from popping up). MP3 Trimmer isn't in the original ROM from which the Manila is based, so it's possible there's something going on there.
It's not a huge issue so I haven't been spending a lot of time trying to find or fix it, but I'm virtually out of bugs to fix. What's bothering me more is something seemingly simple that I don't understand.
Click to expand...
Click to collapse
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
af974 said:
Ok, i dunno why you didnt find nothing ...anyway, cook the attached file in your rom, i have set it for deleting any Start Menu.lnk in Start Menu\Programs.
Basically you can use it for deleting any dead links.
If it doesnt work try to leave ".lnk" after Start Menu.
It is a mortscript , i have include also Mortscript package in case you dont have it.
Click to expand...
Click to collapse
bobsbbq said:
It is 100 % a app.dat or initflashfiles.dat issue. Or a reg in the 0409 folder.
Also when looking in you initflashfiles be careful to look for entries that point to Windows\Start Menu
instead of Windows\Start Menu\Programs
Click to expand...
Click to collapse
bobsbbq said:
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
Click to expand...
Click to collapse
Since I was trying to improve on the response of my Contacts in Manila 2018 by mixing and matching 2016 and 2018 tabs, I took the opportunity to continue to search the elusive "Start Menu" folder in my Start Menu.
I was still not able to find it in the initflashfiles, nor dat, app.reg or proxmls. I modified the mortscript that af974 gave me into "Delete("\Windows\Start Menu\Programs\Start Menu.lnk")" and ran it from SD Card. Even after soft reset, the "Start Menu" folder is still there.
What I find strange is that in my \Windows directory, there was no "Start Menu.lnk" - I'm using Resco Explorer and is able to see hidden files. But in \Windows\Start Menu\Programs, I could see "Start Menu" folder. I was able to delete it using Resco Explorer.
bobsbbq said:
I know how frustrating this is and I have had the same in the past. I know this is not what you want to hear but the fact is there is only a few ways for a shortcut to be created. Mainly initflashfiles.dat to move or rename shortcuts, and app.reg or rgu files to create shortcuts, and by way of provxml file. The chances are 99% one of the above. But there is also the possibility of shortcuts to be created by mortscript as well but if it is your kitchen I would think you would know if you created a mortscript. There is also the Older HTC Auto shortcut found in some reg files.
I know it is sometimes hard to find but you will eventually find it.
By the way where did the package from the MP3 trimmer come from? Was it from a chinese ROM?
Click to expand...
Click to collapse
To the best of my ability utilizing search there is no reference to the link or the executable in any initflashfiles.dat/app.dat/.reg/.rgu/.*xml. Even the hex coded .dat entries still refer to a "normal" name.lnk, so my search should uncover those.
I pulled the MP3 Trimmer from the Rhodium 2.07 EXT latest packages, which is from an asian ROM at least judging from the links in the original app.dat.
No autoshortcut.exe exists in the ROM. The MP3 Trimmer and a bunch of other packages create an AutoShortcut key, but there's nothing under that so I'm not sure exactly how it's used (and it would therefore be present even if I deleted it from the trimmer package).
My guess is that it has to be either the start menu initial creation process some Manila initialization process that is creating the initial link. How it gets into a state where it remains in the start menu but no information exists to delete it is the 2nd question -- where is that information??
I've verified if I delete \Windows\Start Menu\Programs, then copy the directory structure back in the link goes away. This could be a solution long term, but I was trying to stick to the automatic creation process as much as possible.
Thanks to those who have responded and provided input so far.
Looking at a stock rom dump for the raphael, the autoshortcut operations are in a .provxml in the 0409 folders, like this:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\AutoShortcut">
<parm name="\Windows\Start Menu\Programs\Streaming Media.lnk" value="\Windows\Streaming Media.lnk" datatype="string" translation="install"/>
<parm name="\Windows\Help\Streaming Media.lnk" value="\Windows\Help_Streaming Media.lnk" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
The autoshortcut.exe is in oemdrivers. I really don't even know what the point of it is; I guess it's for book-keeping, to keep track in the registry of all the shortcuts being moved around. It could just be done by a provxml file operation instead of by autoshortcut during customization, but whatever, that's how it's done. Just try deleting the autoshortcut references. Heck, delete or rename the shortcut in the kitchen and send it to the start menu a different way (like by renaming it while copying it with an app.dat file).
Farmer Ted said:
Heck, delete or rename the shortcut in the kitchen and send it to the start menu a different way (like by renaming it while copying it with an app.dat file).
Click to expand...
Click to collapse
OK, I'm going to modify the orignal post as solved, because this simple idea (which of course didn't occur to me) is the ticket. I renamed the .lnk to .link in the kitchen and it's renamed back to .lnk when copied by the app.dat. Presto change-o, no MP3 Trimmer.lnk file in \Windows. Works like a charm.

Categories

Resources