Forgive me I posted this in another part of the forum and goofed up. Forgot about this section. I need help with a autoit script. Its the last trick I need to be able to make anything install silent. Let me tell ya this One was HARD. Took me a couple of months just to figure it out. I am still really new to autoit. I know the "recording" part of it.
I am working on Norton ghost 2003. I have it install silently. No problem. I took the files needed and made a sfx file. The files needed included the silent switch, because with norton ghost, You can simply edit the setup.ini file in the install folder with the switch needed. Took me forever to figure out how to add that switch.
So I try it... the install it fails. So I change the switch to /passive to see what is going on. Ghost takes about a min to install. While it installs, other addons will start there install which makes nortons fail. While trying the addon by itself, Windows will not wait for the program to finish. So my next step is autoit. I warn you Im a real noobie with this program. I figure a couple of sucessful script install jobs and should give me a good head start. This script was made using the setup.exe and letting autoit make the script for me. Now I kinda understand some of it. Just not sure what needs to be changed to fix the install problem. Here it is. I guessed and use the winwaits option.
#region - setup install script - (Automated with WinWait functions)
Opt('TrayIconDebug', 1)
Opt('WinDetectHiddenText', 1)
Opt('WinTitleMatchMode', 4)
; Installer.
$executable = 'setup.exe'
; Show progess.
$splash = 0
; Default catagory folder in startmenu.
$group = ''
; New catagory to move the default folder into.
$catagory = ''
; Installation folder in Program Files.
$directory = ''
; Run the installer.
$pid = _Install()
If WinWait('', '', 60) Then
ControlClick('', '', '')
WinWait('', '')
ControlClick('', '', '')
WinWait('', '')
ControlClick('', '', '')
WinWait('', '')
ControlClick('', '', '')
WinWait('', '')
ControlClick('', '', '')
Else
_Abort()
EndIf
ProcessWaitClose($pid)
; Remove shortcuts.
If _MainShortcut('?.lnk') Then
; Relative to shortcut directories
; Remove Startmenu shortcuts
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
; Remove other shortcuts
_Desktop('?.lnk')
_QuickLaunch('?.lnk')
EndIf
#endregion
Exit
