MSFN Forum: Can i use autoit ... - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can i use autoit ... Rate Topic: -----

#1 User is offline   rickytheanuj 

  • Member
  • PipPip
  • Group: Members
  • Posts: 261
  • Joined: 09-April 07

Posted 13 July 2007 - 12:53 PM

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)


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

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.

:)

#3 User is offline   rickytheanuj 

  • Member
  • PipPip
  • Group: Members
  • Posts: 261
  • Joined: 09-April 07

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

#4 User is offline   bj-kaiser 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 415
  • Joined: 05-December 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 14 July 2007 - 01:27 PM

Read AutoIt's help entry about "WinSetState". I'm to lazy to repeat that all here :P
Besides the help file does explain almost everything good enough.

#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 15 July 2007 - 04:06 AM

View Postrickytheanuj, 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..

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.

:)

#6 User is offline   rickytheanuj 

  • Member
  • PipPip
  • Group: Members
  • Posts: 261
  • Joined: 09-April 07

Posted 15 July 2007 - 06:55 AM

oh! that's great,


thank you MHz

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy