ddshadow Posted December 24, 2005 Posted December 24, 2005 Hi all here's my problemFileCopy(@ScriptDir & "\programs\SYSTEMTOOLS.exe" , @DesktopCommonDir,1);FileCopy(@ScriptDir & "\ddlogo.bmp" , @Systemdir & "\oobe\images\",1) ;alternative for the logo imageFileCopy(@ScriptDir & "\programs\*.*" , @SystemDir,1) If FileExists ( @WindowsDir & "\SysWOW64\cmd.exe") Then ;detect if Windows x64 ;FileCopy(@ScriptDir & "\programs\*.*" , @WindowsDir & "\system32\,1) ;not working goes to \SysWOW64 Msgbox(0,"Win x64 detected","Run" & @ScriptDir & "\copy.bat" & "to complete instalation) Else DirRemove (@ScriptDir & "\programs\",1) Msgbox(0,"INSTALLATION COMPLETE","Delete folder " & @ScriptDir) EndIfIf i run copy.bat from autoit it runs 32-bit cmd.exe and copyies to \SysWOW64Any idea will be gratefulHappy HolidaysddSHADOW
jpm Posted December 24, 2005 Posted December 24, 2005 AutoIt3 is a 32-bit application so all work is done in the "compatibility" mode. For now only reference to the registry cross mode can be possible see reg functions. for macros as @WindowsDir & "\system32\" I am not sure that win_X64 will not do any redirection as for the registry so you cannot go around from a 32-bit process as AutoIt3 is. I cannot have access to a X64 machine so I cannot verify what can be done if any. If you have some more precise information in searching in the MSDN please help us. PS to know if you run under a X64 window it is better to use the @ProcessorArch macro.
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