Can i use autoit script installer as hotfix using nlite. I will convert my installation pack into cab using "nlite addon maker".
Will it work?
And also i want to perform my autoit script run minimized. (Or do not want to show performing task)
Page 1 of 1
Can i use autoit ...
#2
Posted 14 July 2007 - 10:23 AM
AFAIK, yes. That is launching an AutoIt script from a extracted cab file will work fine.
Some installers allow you to minimize the 1st window and the following windows will also be minimized. You also maybe able to move the 1st window off screen and automate from there. WinSetTrans() can also be used to make the windows transparent if you like. Using WinWait() and Control*() functions allow for very relible installs and windows do not need to be active so you can even use a full screen picture set Always on top will installations happen so it is all hidden.
Some installers allow you to minimize the 1st window and the following windows will also be minimized. You also maybe able to move the 1st window off screen and automate from there. WinSetTrans() can also be used to make the windows transparent if you like. Using WinWait() and Control*() functions allow for very relible installs and windows do not need to be active so you can even use a full screen picture set Always on top will installations happen so it is all hidden.
#3
Posted 14 July 2007 - 12:05 PM
thank you for ur reply MHz
i will be so thankful if you send post of autoit code for minimized setup or transparent. I m not so familiar with autoit script it's too vast for me to understand that advance code.
It will be easy for me if you send an example of that code.
Please..
i will be so thankful if you send post of autoit code for minimized setup or transparent. I m not so familiar with autoit script it's too vast for me to understand that advance code.
It will be easy for me if you send an example of that code.
Please..
#4
Posted 14 July 2007 - 01:27 PM
Read AutoIt's help entry about "WinSetState". I'm to lazy to repeat that all here 
Besides the help file does explain almost everything good enough.
Besides the help file does explain almost everything good enough.
#5
Posted 15 July 2007 - 04:06 AM
rickytheanuj, on Jul 15 2007, 04:05 AM, said:
thank you for ur reply MHz
i will be so thankful if you send post of autoit code for minimized setup or transparent. I m not so familiar with autoit script it's too vast for me to understand that advance code.
It will be easy for me if you send an example of that code.
Please..
i will be so thankful if you send post of autoit code for minimized setup or transparent. I m not so familiar with autoit script it's too vast for me to understand that advance code.
It will be easy for me if you send an example of that code.
Please..
Example with 3 options ready for use. Uncomment only 1 option at a time to see the example.
Opt('TrayIconDebug', 1)
; Check if "Installer Language" window appears.
AdlibEnable('function')
; Run the installer.
$ProcessID = Run('"' & @ScriptDir & '\CCleaner 1.41.exe"')
If WinWait('CCleaner v1.41 Setup', 'Welcome to the CCleaner', 60) Then
; Option 1. Move window off the screen
;WinMove('CCleaner v1.41 Setup', 'Welcome to the CCleaner', Default, @DesktopWidth)
; Option 2. Set window transparent.
;WinSetTrans('CCleaner v1.41 Setup', 'Welcome to the CCleaner', 25)
; Option 3. Set window minimized.
;WinSetState('CCleaner v1.41 Setup', 'Welcome to the CCleaner', @SW_MINIMIZE)
; Click the Next button
ControlClick('CCleaner v1.41 Setup', 'Welcome to the CCleaner', 'Button2'); Next
; Disable "Installer Language" window checking
AdlibDisable()
WinWait('CCleaner v1.41 Setup', 'Licence Agreement')
ControlClick('CCleaner v1.41 Setup', 'Licence Agreement', 'Button2'); I Agree
WinWait('CCleaner v1.41 Setup', 'Choose Install Location')
ControlClick('CCleaner v1.41 Setup', 'Choose Install Location', 'Button2'); Next
WinWait('CCleaner v1.41 Setup', 'Install Options')
ControlClick('CCleaner v1.41 Setup', 'Install Options', 'Button2'); Install
WinWait('CCleaner v1.41 Setup', 'Completing the CCleaner')
ControlClick('CCleaner v1.41 Setup', 'Completing the CCleaner', 'Button2'); Finish
EndIf
ProcessWaitClose($ProcessID)
Exit
Func OnAutoItStart()
; A 2nd script instance will exit.
If WinExists(@ScriptName & '_Interpreter') Then Exit
AutoItWinSetTitle(@ScriptName & '_Interpreter')
EndFunc
Func function()
; Check for a window that may appear.
If WinExists('Installer Language', 'Please select a language') Then
ControlClick('Installer Language', 'Please select a language', 'Button1'); OK
EndIf
EndFunc
Based on the lite version of CCleaner.
Share this topic:
Page 1 of 1



Help

Back to top









