Stop system default messages

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Stop system default messages

Post by alemrantareq » Tue Jan 19, 2010 5:51 am

Hi everybody, I want to show my own message instead of the system default messages. Is it possible?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stop system default messages

Post by Mark » Wed Jan 20, 2010 12:39 pm

Dear alemrantareq,

What are system default messages?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: Stop system default messages

Post by alemrantareq » Wed Jan 20, 2010 4:41 pm

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?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stop system default messages

Post by Mark » Wed Jan 20, 2010 4:53 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Stop system default messages

Post by sturgis » Wed Jan 20, 2010 5:06 pm

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.

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: Stop system default messages

Post by alemrantareq » Wed Jan 20, 2010 6:20 pm

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?

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Stop system default messages

Post by sturgis » Wed Jan 20, 2010 6:34 pm

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.

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Re: Stop system default messages

Post by alemrantareq » Wed Jan 20, 2010 7:10 pm

Thanks sturgis. Its working, just using "/s" after "regsvr32". :D

Post Reply