Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Suppressing the "open file" security window

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48553
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Suppressing the "open file" security window
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Suppressing the "open file" security window - 6/20/2007 5:04:11 PM   
  tokiwoki

 

Posts: 8
Score: 0
Joined: 3/3/2007
Status: offline
I realize that this is probably disabled in Windows for obvious reasons, but is there anyway I can get around the security warning window that pops up when I run an .exe file?  I've written a script that needs to load an .exe and silently install it, which is all fine and good, except that it brings up the said window and using SendKeys doesn't seem to work on it.  I thought I'd try wrapping the .exe's in msi packages, which I know nothing about beyond the concept.

Any ideas or pointers?

Thanks.

 
 
Post #: 1
 
 RE: Suppressing the "open file" security window - 6/20/2007 5:56:32 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
is this windows vista?

(in reply to tokiwoki)
 
 
Post #: 2
 
 RE: Suppressing the "open file" security window - 6/20/2007 8:26:45 PM   
  tokiwoki

 

Posts: 8
Score: 0
Joined: 3/3/2007
Status: offline
Nope, it's XP.

(in reply to tokiwoki)
 
 
Post #: 3
 
 RE: Suppressing the "open file" security window - 6/20/2007 11:38:42 PM   
  RobertParker

 

Posts: 24
Score: 2
Joined: 6/8/2007
Status: offline
I've never had a security window popup when I try to run an *.exe, Can you post some code?

(in reply to tokiwoki)
 
 
Post #: 4
 
 RE: Suppressing the "open file" security window - 6/23/2007 4:08:06 PM   
  tokiwoki

 

Posts: 8
Score: 0
Joined: 3/3/2007
Status: offline
Here's a screenshot of the window.




Here's the code, which I'm running on WinXP SP2:


      

(in reply to RobertParker)
 
 
Post #: 5
 
 RE: Suppressing the "open file" security window - 6/24/2007 10:56:48 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
I could be wrong, but I think this is from IE.  Try this code..
Put this before your call to the exe
IEZoneChecks("ENABLE")'Turns off zone check
And this after the call.
IEZoneChecks("DISABLE")'reenables zone check



      

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to tokiwoki)
 
 
Post #: 6
 
 RE: Suppressing the "open file" security window - 6/24/2007 11:42:56 PM   
  LANlazy

 

Posts: 82
Score: 0
Joined: 4/11/2007
Status: offline
I have found that most .exe have options that you can use such as -q -u /norestart which is what I use for most XP patches

Go to cmd and the folder the .exe is located and type drvupdi.exe /? and it should give you a pop-up with an explanation

(in reply to tokiwoki)
 
 
Post #: 7
 
 RE: Suppressing the "open file" security window - 6/25/2007 4:24:37 PM   
  tokiwoki

 

Posts: 8
Score: 0
Joined: 3/3/2007
Status: offline
You got it, boss that did the trick!  Thanks.

quote:

I have found that most .exe have options that you can use such as -q -u /norestart which is what I use for most XP patches

Yeah it's supposed to be running in silent mode, but the security window kept popping up nonetheless.

(in reply to LANlazy)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Suppressing the "open file" security window Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts