Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RickJ on Wed 30/09/2009 17:39:36

Title: Howto get rid of WinXP "Open File Security Warning"
Post by: RickJ on Wed 30/09/2009 17:39:36
I recently upgraded my AGS workstation to WinXp  := and now I notice that whenever I run/test a game from within the AGSeditor a security warning dialog pops up asking if it's Ok to run the exe.   

It's annoying after the first time and I would like to turn it off.  I am guessing there is a simple and obvious answer that eludes me at the moment. Any advice and/or enlightenment would be appreciated.  Thanks.     
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: Pumaman on Wed 30/09/2009 21:32:49
Find the ACWIN.EXE file in the AGS folder, right-click it and do Properties. There should be some sort of "Unblock" button in the properties dialog that will stop it doing this.
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: RickJ on Thu 01/10/2009 11:46:47
Ok, found the Acwin.exe unblock button and clicked it as instructed.

Problem still exists when gameis created and run on  network mapped drive.    WinXP is running in VirtualBox and mapped drive is a shared folder between host and guest OSes. 

Looks like a Windows problem rather than an Ags one.  I tried fiddling around with security settings but haven't stumbled upon the correct combination.  Any further advice will be greatly appreciated.
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: Intense Degree on Thu 01/10/2009 14:13:06
I think (if memory serves correctly) there is a check box on the actual warning that comes up, something like "always ask for this type of file" which you can uncheck.
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: monkey0506 on Thu 01/10/2009 14:18:23
The type of file is EXE and if you uncheck that box you're opening up a whole different can of worms. Also any time you compile (build) the game or run the debugger you're working with a completely different EXE file (the old one is replaced) which is important to note.

Sorry I don't have any further info, but just wanted to clear up why unchecking that box is a terrible idea.
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: Intense Degree on Thu 01/10/2009 14:43:22
My bad, I meant "Always ask before opening this file" - not type of file. ;D
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: Pumaman on Thu 01/10/2009 21:44:55
Quote from: RickJ on Thu 01/10/2009 11:46:47
Problem still exists when gameis created and run on  network mapped drive.    WinXP is running in VirtualBox and mapped drive is a shared folder between host and guest OSes. 

I think XP is always suspicious of files that come from a network share, though there must be an option to disable this. I'm not sure how to fix it -- maybe the easiest solution is to work on a local copy on the XP virtual hard drive, and then copy it back to the share when you're done.
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: RickJ on Thu 01/10/2009 22:43:42
The following modification of the windows registry eliminates the warning message.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".exe;.bat;.reg;.vbs;"

I found this solution here:
http://www.sevenforums.com/system-security/8642-how-get-rid-open-file-security-warning.html

I used REGEDIT from the command lineto makethe change.   Just for the sake of being thorough isn't there a way to make this change using a script file? 

Anyway thanks to everyone for your help.   
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: Calin Leafshade on Thu 01/10/2009 23:12:35
.reg files will be added to the registry on double click.

You can use the export function in regedit to create a reg file
Title: Re: Howto get rid of WinXP "Open File Security Warning"
Post by: RickJ on Fri 02/10/2009 04:56:20
Cool! I exported the entry and got a .reg file with following contents ..

Quote from: FixSecurityWarnings.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"="\".exe;.bat;.reg;.vbs;\""

I suppose one could create a text file, paste this stuff in there and save it as a .reg file and double click it to make the entry?