kalle_mod Posted February 22, 2008 Posted February 22, 2008 Hi guysI'm trying to install reg-mech with AutoIt v.3 but it says "error on line -1 could not execute external program - the system could not find the file specified"I attach my script and i'm absolutely sure that it is the right filename and both script(.exe) and the file are in the same folder.registry_mechanic1.au3
Kelsenellenelvian Posted February 22, 2008 Posted February 22, 2008 $SF_1 = "./registrymech.exe" <-- Your error is in this line here.Try this:$SF_1 = "registrymech.exe"
kalle_mod Posted February 22, 2008 Author Posted February 22, 2008 still no luck according to my testing...The funny thing is that as far as I remember it works just fine when i test in windows but as soon as it is supposed to run during unattended install of XP it failsKalle_modregistrymech1.au3
Kelsenellenelvian Posted February 22, 2008 Posted February 22, 2008 (edited) Ahhhhhhhhh thats your issue too. Windows does not recognize the au3 file normally therefore it cannot run it as it has no clue what to do. You must compile to an exe.$SF_1 = "registrymech.exe"Run($SF_1)If WinExists( $SF_1 ) Then ExitAutoItWinSetTitle ( $SF_1)WinWait("Setup - Registry Mechanic","Welcome to the Regis")If Not WinActive("Setup - Registry Mechanic","Welcome to the Regis") Then WinActivate("Setup - Registry Mechanic","Welcome to the Regis")WinWaitActive("Setup - Registry Mechanic","Welcome to the Regis")Send("{ALTDOWN}n{ALTUP}")WinWait("Setup - Registry Mechanic","Please read the foll")If Not WinActive("Setup - Registry Mechanic","Please read the foll") Then WinActivate("Setup - Registry Mechanic","Please read the foll")WinWaitActive("Setup - Registry Mechanic","Please read the foll")Send("{ALTDOWN}an{ALTUP}")WinWait("Setup - Registry Mechanic","Select Destination L")If Not WinActive("Setup - Registry Mechanic","Select Destination L") Then WinActivate("Setup - Registry Mechanic","Select Destination L")WinWaitActive("Setup - Registry Mechanic","Select Destination L")Send("{ALTDOWN}n{ALTUP}")WinWait("Setup - Registry Mechanic","Select Additional Ta")If Not WinActive("Setup - Registry Mechanic","Select Additional Ta") Then WinActivate("Setup - Registry Mechanic","Select Additional Ta")WinWaitActive("Setup - Registry Mechanic","Select Additional Ta")Send("{ALTDOWN}i{ALTUP}")WinWait("Setup - Registry Mechanic","Completing the Regis")If Not WinActive("Setup - Registry Mechanic","Completing the Regis") Then WinActivate("Setup - Registry Mechanic","Completing the Regis")WinWaitActive("Setup - Registry Mechanic","Completing the Regis")Send("{SPACE}{ALTDOWN}f{ALTUP}")Compiled into an exe and in the same folder as : registrymech.exe works just fine. Edited February 22, 2008 by Kelsenellenelvian
kalle_mod Posted February 22, 2008 Author Posted February 22, 2008 well I dont want to sound rude but of course I compile my script(with AutoIt) to an exe before putting it in the iso file but it is much easier for you guys to find errors in the au3 file than in the exe file Kalle_mod
radix Posted February 22, 2008 Posted February 22, 2008 You don't need AutoIt for this program.rminstall.exe /sp- /verysilent /norestart
kalle_mod Posted February 25, 2008 Author Posted February 25, 2008 Thx, I'll try that later, btw. do you know the command for moving and overwriting a file from install.cmd, I have:move /y source destination but it doesn't workKalle_mod
radix Posted February 25, 2008 Posted February 25, 2008 Thx, I'll try that later, btw. do you know the command for moving and overwriting a file from install.cmd, I have:move /y source destination but it doesn't workKalle_modExamples:move /y G:\info.txt C:\move /y G:\info.txt C:\fgfdg.txtmove /y G:\info.txt C:\trtyrff.mntzjkhNeed quotes if have spaces in paths.
oskingen Posted February 27, 2008 Posted February 27, 2008 It is possible to specify to do not install google toolbar for the silent install?
radix Posted February 27, 2008 Posted February 27, 2008 It is possible to specify to do not install google toolbar for the silent install?Google Toolbar is not installed during silent or normal installation.
oskingen Posted February 28, 2008 Posted February 28, 2008 It is possible to specify to do not install google toolbar for the silent install?Google Toolbar is not installed during silent or normal installation.You're wrong. I tried it today and it install the google toolbar. I have version 7.0.0.1010
radix Posted February 28, 2008 Posted February 28, 2008 You're wrong. I tried it today and it install the google toolbar. I have version 7.0.0.1010No I'm not. I have Opera set as default browser. In this case, that option don't appearwhen I have installed Registry Mechanic. Installer detect which is default browser and if I.E. is that, will offer to install Google Toolbar for I.E.
oskingen Posted March 1, 2008 Posted March 1, 2008 You're wrong. I tried it today and it install the google toolbar. I have version 7.0.0.1010No I'm not. I have Opera set as default browser. In this case, that option don't appearwhen I have installed Registry Mechanic. Installer detect which is default browser and if I.E. is that, will offer to install Google Toolbar for I.E.I don't use opera. Do you have a tweak to change the default browser before installing. I don't know in registry where I can set the default browser. Maybe we can make a false value and restore it at the end of the installation.
radix Posted March 1, 2008 Posted March 1, 2008 (edited) Do you have a tweak to change the default browser before installing. I don't know in registry where I can set the default browser. Maybe we can make a false value and restore it at the end of the installation.The problem is here:[HKEY_CLASSES_ROOT\HTTP\shell\open\command]@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"Before you start the installation, you need to delete this:"\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"and restore after installation is done. I can do this task very easy in AutoIt, but in batch scripting no. Edited March 1, 2008 by radix
oskingen Posted March 1, 2008 Posted March 1, 2008 Do you have a tweak to change the default browser before installing. I don't know in registry where I can set the default browser. Maybe we can make a false value and restore it at the end of the installation.The problem is here:[HKEY_CLASSES_ROOT\HTTP\shell\open\command]@="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"Before you start the installation, you need to delete this:"\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome"and restore after installation is done. I can do this task very easy in AutoIt, but in batch scripting no.Works great! I tried it. Thanks
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