Page 1 of 1
Stop system default messages
Posted: Tue Jan 19, 2010 5:51 am
by alemrantareq
Hi everybody, I want to show my own message instead of the system default messages. Is it possible?
Re: Stop system default messages
Posted: Wed Jan 20, 2010 12:39 pm
by Mark
Dear alemrantareq,
What are system default messages?
Best,
Mark
Re: Stop system default messages
Posted: Wed Jan 20, 2010 4:41 pm
by alemrantareq
I've the following btn script -
Code: Select all
on mouseUp
set the hideconsolewindows to true
get shell("regsvr32 %windir%\system32\zipfldr.dll")
end mouseUp
It shows a message after clicking on the btn. Now I want to show my own message instead of the system message. Is it possible?
Re: Stop system default messages
Posted: Wed Jan 20, 2010 4:53 pm
by Mark
alemrantareq,
You really should provide more information when you ask questions on this forum. What makes you think that zipfldr.dll should work? Which message do you get? Do you have any other info that might be relevant?
Best,
Mark
Re: Stop system default messages
Posted: Wed Jan 20, 2010 5:06 pm
by sturgis
In this case, the script is trying to register the dll, so the shell should work. My guess from the limited information is that regsvr32 is causing an alert or error of some type and this is what alemrantareq wants to catch, but i'm not positive. As you said, a better description of whats trying to be done would surely be helpful.
Edit: Just read this page
http://support.microsoft.com/kb/249873 and it describes the /s flag so that it will run silent. Still not sure this is what you want to do, but maybe.
Re: Stop system default messages
Posted: Wed Jan 20, 2010 6:20 pm
by alemrantareq
This script is to repair windows default zip function. For example, after installing some extracting softwares, they associate the zip files with themselves. Then the zip files open with them; if you uninstall that softwares, the zips don't work. So this script helps to associate them with the default zip function. You also can try it. It just register the zip files with zipfldr.dll file to extract via it. After executing my script, it gives a successful message. I just want to show my personal message instead of it. That's it. Now may I get any help related to my problem?
Re: Stop system default messages
Posted: Wed Jan 20, 2010 6:34 pm
by sturgis
Please check the link I posted. It mentions /s to make regsvr32 run silent at which point you are free to supply your own result dialog or whatever you wish. I'm pretty sure it was help related to your problem.
Re: Stop system default messages
Posted: Wed Jan 20, 2010 7:10 pm
by alemrantareq
Thanks sturgis. Its working, just using "/s" after "regsvr32".
