Jump to content

Recommended Posts

Posted

Hi guys

I'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


Posted

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 fails

Kalle_mod

registrymech1.au3

Posted (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 Exit
AutoItWinSetTitle ( $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 by Kelsenellenelvian
Posted

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

Posted

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 work

Kalle_mod

Posted
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 work

Kalle_mod

Examples:

move /y G:\info.txt C:\
move /y G:\info.txt C:\fgfdg.txt
move /y G:\info.txt C:\trtyrff.mntzjkh

Need quotes if have spaces in paths.

Posted
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.

Posted
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

Posted
You're wrong. I tried it today and it install the google toolbar. I have version 7.0.0.1010

No I'm not. I have Opera set as default browser. In this case, that option don't appear

when 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.

Posted
You're wrong. I tried it today and it install the google toolbar. I have version 7.0.0.1010

No I'm not. I have Opera set as default browser. In this case, that option don't appear

when 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.

Posted (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 by radix
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...