I'm creating a CAB file with _setup.xml. Is there a way I can automatically launch an application withing the cab file after or during the install?
Also, is there a way I can get a list of the verbs used in the _setup.xml. I've been unsuccessful here.
Thanks.
You can't launch an app using _setup.xml
Basically what you can do there (sorry I don't have a link to a full list) is to copy files, create shortcuts and add / change registry. This is all that cab installer knows how to do.
If you can code c++ you can add a setup.dll which has 4 functions that are automatically activated:
1 - before installation
2 - after installation
3 - before uninstall
4 - after uninstall
You can use that to do whatever you want.
Thanks for the quick reply. Any links on more info on Setup.DLL?
Can't you just create a process from within the setup dll on the after install message. I have not tried that but I have been able to do just about everything I can think of from a setup dll (ie edit registry, manipulate files, create dialogs draw stuff). If you know the location of what you want to run it should be easy.
I have only created cabs the old way, so to search for that google cabwiz.
I have this document about it (i can't remember where it comes from), log in to get it attached.
Hi guys,
I am trying to make a script to basically delete a shortcut when it is run,
What can I use to make this, I do not want any user interaction as I have another program which will kick off the script.
Senario =
Program is in startup (to nag the user to run through the install on boot)
Program is then alowed to run
program then kicks off an external script
I need an exe or something like that to delete the startup icon.
Thanks
MortScript?
Yes thanks,
I was looking at that, I guess thats what it will have to be
There r some programs that I've installed into my devive. However it;s XML files when u open them. Now what applications do I need to open them? Appreciate if somebody could help.
I think you have .cab files.
So, you don't have to open them: just put them in your phone and run them
When I open the program files, it said I have to run d applications first. But then
what application is it referring to?
Thomaswoon said:
When I open the program files, it said I have to run d applications first. But then
what application is it referring to?
Click to expand...
Click to collapse
Could you be a bit more specific? Which programs, filenames etc?
xml is just text it's not a real program
xml is often used to store settings and
define themes for other programs
you can use total commander to view the
xml text not that it will do you much good
if you expected to run xml as a program
just like to share with you how with those who need a command line for
"Settings" aka "Control Panel" and for
"Programs List" aka "Start Menu"
there have been apps like "control.exe" and "folderview.exe" which did the same but on my device (and os) it is not working anymore.
however, you need mortscript:
to launch "Settings" execute this command:
Code:
Show(FindWindow( "Settings", complete, yes, no, no, "MSSTARTMENU" ))
to launch "Start Menu" simply execute this command:
Code:
SendWin
i am sure it will be of help for those who create their own UI
Add this:
Launch "Programs":
Code:
Show("Pograms")
Launch "Settings" for WM5/6.0/6.1
Code:
Show(FindWindow( "", complete, yes, no, no, "Dialog" ))
Launch "Settings" for WM6.5
Why not use
Code:
Show("Settings")
since this window has a valid title.
is it possible to use the above command lines in an lnk file?
twfx said:
Why not use
Code:
Show("Settings")
since this window has a valid title.
Click to expand...
Click to collapse
... because mortscript tries to find the "best" fitting window for your criteria. if you just provide "Settings" mortscript might also find another window named Settings.
but you are right it is not mandatory - just regard the other parameters as additional.
oldsap said:
is it possible to use the above command lines in an lnk file?
Click to expand...
Click to collapse
yes it is. just write path and name of the .mscr file in your .lnk file - just as you would do with .exe files
Can U guys please provide ready mortscript or lnk to launch Seetings in wm 6.1 ? I would be very gratefull ! Because i get confused what shall i do ... Thankx a lot !
Krzysiec said:
Can U guys please provide ready mortscript or lnk to launch Seetings in wm 6.1 ? I would be very gratefull ! Because i get confused what shall i do ... Thankx a lot !
Click to expand...
Click to collapse
i do not know if the above code really works on wm6.1
but i warmly recommend to install total commander which can do all for you:
you can create a file, rename it to <name>.mscr
add the above script line - save and close
double tab on the script and it is being executed
if it works, control panel will appear
to create a shortcut: there is also a menu for creating shortcuts
egoist6 said:
i do not know if the above code really works on wm6.1
but i warmly recommend to install total commander which can do all for you:
you can create a file, rename it to <name>.mscr
add the above script line - save and close
double tab on the script and it is being executed
if it works, control panel will appear
to create a shortcut: there is also a menu for creating shortcuts
Click to expand...
Click to collapse
But which string exactly ? Because there are few of them above :/ Tried to create mscr files with settings string for WM 6.1 but no luck Can`t get this work ...
Unknown function findwindow
Line:
Show.......
Invalid parameter count for `Show`
Line:
Show.......
Those two errors pop up...
Krzysiec said:
But which string exactly ? Because there are few of them above :/ Tried to create mscr files with settings string for WM 6.1 but no luck Can`t get this work ...
Unknown function findwindow
Line:
Show.......
Invalid parameter count for `Show`
Line:
Show.......
Those two errors pop up...
Click to expand...
Click to collapse
as said i do not know if string
Show(FindWindow( "", complete, yes, no, no, "Dialog" ))
really works as i can't test it myself. if problems appear post here again and you'll be helped
however, you need v4.3 which is beta (but works perfectly stable). here. that's why you get error messages.
Show("Settings") worked
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Farmer Ted said:
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Click to expand...
Click to collapse
hm. not sure what the problem exactly is.
what do you mean by re-start start menu?
Well, with magic button you can actually kill the start menu. I believe it's part of a service, but haven't been able to track it down. For instance, I've used sk tools to save the list of running services, killed the start menu, then looked at the services and not seen any obvious changes (the same goes with processes). When the start menu is dead, it won't open up at all. I'd like to find out how to get it going again without resetting.
Farmer Ted said:
Well, with magic button you can actually kill the start menu. I believe it's part of a service, but haven't been able to track it down. For instance, I've used sk tools to save the list of running services, killed the start menu, then looked at the services and not seen any obvious changes (the same goes with processes). When the start menu is dead, it won't open up at all. I'd like to find out how to get it going again without resetting.
Click to expand...
Click to collapse
check it with dotfred's taskmanager and browse through the windows.
probably magic button closes this window.
Maybe the HoneyComb is shell32.exe, can you confirm?
And what is other side-effects without honeycomb?
Edit: I'm on the reverse side, want to kill it ! Just no device to test it ATM, but eager to know, also several weeks looking for this.
Just install magic button, it kills all!
Thanks Farmer Ted for the info, another lite tool added to my suitcase: MagicButton.
Just still curious to know what is exactly the WM6.5 Start Menu. (Edit: Check this tread for the start menu close issue.)
To be less off-topic, here is another thread talking about similiar issue of this thread:
http://forum.xda-developers.com/showthread.php?t=381281
wg5566 said:
To be less off-topic, here is another thread talking about similiar issue of this thread:
http://forum.xda-developers.com/showthread.php?t=381281
Click to expand...
Click to collapse
yeah. i know as i have posted a solution to this thread. that was wm6.0 or wm6.1.
those apps mentioned in the thread you are talking about do not work on wm6.5
this thread is about wm6.5
Farmer Ted said:
I've been looking for a way to re-start the 6.5 start menu for a few weeks now. I've been using Magic Button, and even when I put the start menu on the MB exclusive list, it still kills it occasionally when exiting. The 'sendwin' morscript doesn't revive it. Any ideas on a command that would? Thanks.
Click to expand...
Click to collapse
Add MSSTARTMENU to your exclusion list. That is what I just did to Smartskey.ini exlude list for closeapp
Krzysiec said:
Show("Settings") worked
Click to expand...
Click to collapse
Hi
i tried this but does'nt work...
can u help me please? (i'm on WM6.5)
SendWin
Sleep( 2000)
Show("Settings")
End
The startmenu opens but i have the error message: could not find window 'Settings'
i have the following Problem and hope some expert might be able to help.
I have the 5*5 shortcut-matrix installed on my Sense-Homescreen. I always use SK Tools to uninstall programms and let it do a "deep scan" after the uninstallation to get rid of any rubble in the registry.
This was the first time i uninstalled a programm which had a shortcut link on the sense homescreen.
Unfortunatly, now i have a dead link. When i press on the link, it tells me it did not find the programm named "" (the name was obvoisly removed by SK Tools). Thats quite obvois, as i uninstalled the program.
However, when i want to remove the dead shortcut (direct link) and replace it by another, it wont let me. The other shortcut links work quite fine and i can remove or replace them.
I guess i have to repair something in the registry, eg. give the link back its name to the program - but where? If i knew before, I just would have removed the shortcut link before the uninstallation...
Can anyone help?
go to registry: hklm/software/htc/manila/home and there u have to find where the shortcut of the program is located and delete it