supraspecies Posted February 26, 2013 Posted February 26, 2013 (edited) I simply need to copy a file that disables Adobe Flash auto-update to both - System32 and SYSWOW64 system folders.FileCopy (@ScriptDir & '\Data\mms.cfg', @WindowsDir & '\SysWow64\Macromed\Flash') FileCopy (@ScriptDir & '\Data\mms.cfg', @WindowsDir & '\System32\Macromed\Flash')File doesn't get copied to System32 folder, only to SYSWOW64 (and yes, all directories exist). UAC is off. Any ideas? If I need some special permissions, how do I obtain them via script?Edit: Doesn't look like a permission issue. Created a copy of "Flash" folder, took ownership of it, and still can't copy there. I'm lost.Also triedDllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)and it doesn't help, either.Wait, it actually works now. Last time I disabled redirection, I used a wrong system directory variable. Stupid me. :/Working code:;Flash Update Disabler DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) FileCopy (@ScriptDir & '\Data\mms.cfg', @WindowsDir & '\System32\Macromed\Flash\mms.cfg', 1) ;Writes to SystemDir on x86, writes to 64-bit SystemDir on x64 FileCopy (@ScriptDir & '\Data\mms.cfg', @WindowsDir & '\SysWow64\Macromed\Flash\mms.cfg', 1) ;Does nothing on x86, writes to 32-bit SystemDir on x64 DllCall("kernel32.dll", "int", "Wow64EnableWow64FsRedirection", "int", 1) Edited February 26, 2013 by supraspecies
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now