Página 1 de 1

AutoIt + WPI

Publicado: Mar May 26, 2009 3:07 pm
por Jumo
Hola a todos,

Genere un macro (_ccleaner.au3) para poder instalar la aplicación ccleaner.exe para que no instale por defecto la barra de yahoo:



--- AutoIt Macro Generator V 0.21 beta ---
Opt("WinTitleMatchMode", 4)
WinWait("D:\up","")
$CLVItem = ControlListView("D:\up","","SysListView321","FindItem","ccleaner.exe")
ControlListView("D:\up","","SysListView321","SelectClear")
ControlListView("D:\up","","SysListView321","Select",$CLVItem)
ControlClick("D:\up","","SHELLDLL_DefView1")
WinWait("Abrir archivo - Advertencia de seguridad","¿Desea ejecutar este archivo?")
ControlClick("Abrir archivo - Advertencia de seguridad","¿Desea ejecutar este archivo?","Button1")
WinWait("Installer Language","Please select a language.")
ControlClick("Installer Language","Please select a language.","Button1")
WinWait("Instalación de CCleaner v2.19","&Siguiente >")
ControlClick("Instalación de CCleaner v2.19","&Siguiente >","Button2")
WinWait("Instalación de CCleaner v2.19 ","< &Atrás")
ControlClick("Instalación de CCleaner v2.19 ","< &Atrás","Button2")
WinWait("Instalación de CCleaner v2.19 ","&Siguiente >")
ControlClick("Instalación de CCleaner v2.19 ","&Siguiente >","Button2")
WinWait("Instalación de CCleaner v2.19","&Instalar")
ControlCommand("Instalación de CCleaner v2.19","&Instalar","Button9","UnCheck","")
ControlClick("Instalación de CCleaner v2.19","&Instalar","Button2")
WinWait("Instalación de CCleaner v2.19 ","&Terminar")
ControlClick("Instalación de CCleaner v2.19 ","&Terminar","Button2")

;--- End ---


el nombre del archivo ejecutabe es: ccleaner.exe

el nombre del archivo autoit es: _ccleaner.au3

¿Cómo puede hacer que este macro corra dentro de WPI?

Re: AutoIt + WPI

Publicado: Mar May 26, 2009 10:11 pm
por NachoDG
Para el ccleaner bajate el slim de aca q viene sin la barra
http://www.ccleaner.com/download/builds" onclick="window.open(this.href);return false;

Re: AutoIt + WPI

Publicado: Mar May 26, 2009 10:58 pm
por LeThe
Tambien puedes descargar e instalar y despues ir a C:\Program Files\Ccleaner y copiar los archivos ccleaner.exe y ccleaner.ini
Yo pego estos archivos en C:\Windows y despues creo un acceso directo a C:\Windows\Ccleaner.exe
Finalmente, con un archivo .bat o .cmd copio el acceso directo al menu de inicio para todos los usuarios.

Re: AutoIt + WPI

Publicado: Dom May 31, 2009 3:31 pm
por Jumo
Excelente, muchas gracias por los aportes. Lo haré de las dos maneras sugeridas para seguir aprendiendo.

Saludos, Jumo

Re: AutoIt + WPI

Publicado: Mar Jul 07, 2009 5:41 am
por dekra
El archivo con la extension .au3 te pones encima de el con el raton y le das al boton derecho y selecciones CompilarScript, y te creara uno del mismo nombre pero con extension .exe que es el que ejecutas para que ejecute el archivo segun lo creastes

Re: AutoIt + WPI

Publicado: Vie Abr 02, 2010 9:03 pm
por Leonx
Muy bien. Pero podría alguien tener la suprema bondad de explicar con todo lujo de detalles (y hasta imágenes) cómo hacer un script en Autoit de un programa, por ejemplo, TuneUp 2009, Avast Free 5.0, etc. para así hacerlo desatendido, y usar ese script en WPI.
Claro, que expliquen cómo añadir el script creado WPI.

Re: AutoIt + WPI

Publicado: Sab Abr 03, 2010 11:39 am
por NachoDG
Leonx escribió:Muy bien. Pero podría alguien tener la suprema bondad de explicar con todo lujo de detalles (y hasta imágenes) cómo hacer un script en Autoit de un programa, por ejemplo, TuneUp 2009, Avast Free 5.0, etc. para así hacerlo desatendido, y usar ese script en WPI.
Claro, que expliquen cómo añadir el script creado WPI.
De esos 2 programas que hablas tienen switch desatendido. El del Avast es:

Código: Seleccionar todo

AVAST.exe -silent
Y el del TuneUP 2009 se descomprime un .msi que le pones /silent
Para crear macros podes usar el AutoIT Macro Generator.

Re: AutoIt + WPI

Publicado: Sab Abr 03, 2010 9:29 pm
por Javo
por que se complican usando wpi habiendo otros integradores de programas mucho mas faciles.

Re: AutoIt + WPI

Publicado: Dom Abr 04, 2010 10:23 am
por Menfis
Javo escribió:por que se complican usando wpi habiendo otros integradores de programas mucho mas faciles.
Cuales otros integradores amigo?
Te recomiendo que cuando comentes de un tema coloques la información para que todos podamos investigar tu respuesta.

Re: AutoIt + WPI

Publicado: Dom Abr 04, 2010 3:22 pm
por Javo
uno que yo uso desde que lo descubri es el mars installer es muy flexible con un simple ini configuras todo mira:

Código: Seleccionar todo

[Options]
Root=%CDROM%\install			; main root folder for installations, use it as %ROOT%, %BDRV% is drive letter where marsinst.exe is
FindCD=XP32\DISK101			; finds file on all available CD-ROM drives and if found set %CDROM% variable to that drive's letter
LogFile=%BPATH%marsinst.log		; log file name (if WriteLog=1) but /L command line parameter has priority on this
WriteLog=0				; if set marsinst.log will be created in Windows (if LogFile not set) directory on the system drive
Reboot=0				; reboot after finishing all installations
Delay=0			; delay in seconds before starting installations, 0-no autostart, 1-immediately
DelayExit=1				; delay before automatic exit or reboot after installations
Resizable=1				; main window will be resizable
StayOnTop=0				; main window will be on top
Color=		; main window background color
Width=600				; main window width
;TreeColor1=$FFFFFF			; tree background color (hex value must start with "$" sign)
;TreeColor2=$E8FFE8			; tree background color for categories
;SmallFontColor=$919100                 ; small description text font color
SelectionColor=$55AAFF			; selected item color
SelBorderColor=$0088FF			; selected item border color
SelTextColor=$000000			; main selected text color
SelSmallTextColor=$666666		; description selected text color
URLIconType=3				; there are three URL icon types available: 1,2,3
;LockSystem=1			; the system will be locked while marsinst.exe is working [NOT IMPLEMENTED YET]
CanStop=1				; it will be possible to terminate installation process if set to 1
DefLang=1				; default language number (if more than one language defined below)
Debug=0	; debug mode - will show message with commands instead of running them

[Language1]
Name=Spanish					
Codepage=1253						
Title=Instalar Programas
Info=Seleccione lo que desea instalar:		
BTN_Install=Instalar					
BTN_Stop=Parar						
BTN_Exit=Salir					
BNT_Reboot=Reiniciar				
TXT_About=Acerca de			
TXT_Installing=Instalar aplicaciones seleccionadas:
TXT_Complete=Instalación completa!
TXT_Programs=Programas a instalar:
TXT_Of=of
XT_CheckAll=Seleccionar todo
TXT_UnCheckAll=No seleccionar nada
TXT_ExpandAll=Expandir todo
TXT_CollapseAll=Contraer todo
TXT_Default=Predeterminado
TXT_Version=Versión
TXT_AutoInst=Instalación de programas desatendido
TXT_Copyright=Copyright by
MSG_SureToStop=¿Realmente deseas detener el proceso de instalacion?<br>Las intalaciones en progreso seran eliminadas!

;Builtin Category Icons:		Available system folders shortcuts:
;-----------------------		-----------------------------------
; -1 - Without Icon			%BDRV% - boot drive letter from where marsinst.exe was started (E:)
;  0 - Default				%BPATH% - full path from where marsinst.exe was started (E:\AutoInstall)
;  1 - Antiviruses			%CDROM% - first CD-ROM or removable drive in the system if FindCD not set
;  2 - Archivers			%ROOT% - main root directory (set in options)
;  3 - Audio				%ROOTC% - category internal root directory (set in category)
;  4 - CDBurning			%FOLDER% - each program local folder (set in each program)
;  5 - Diagnostic			%WINDIR% - Windows directory (C:\WINDOWS)
;  6 - Drivers				%SYSTEMROOT% - Windows directory too
;  7 - Games				%SYSTEMDIR% - Windows system directory (C:\WINDOWS\System32)
;  8 - Graphical			%APPDATA% - applications data directory
;  9 - Information			%ALLAPPDATA% - all users applications data directory
; 10 - Internet 			%PROGRAMFILES% - program files directory (C:\Program Files)
; 11 - Mathematic			%PROGRAMFILES64% - x64 program files directory on x64 systems
; 12 - Mobiles				%STARTMENU% - start menu directory
; 13 - Network				%ALLSTARTMENU% - all users start menu directory
; 14 - Office				%QUICKLAUNCH% - quick launch directory
; 15 - Recovery				%DESKTOP% - desktop directory
; 16 - Screensavers			%ALLDESKTOP% - all users desktop directoy
; 17 - Security				%SYSTEMDRIVE% - system drive letter (usually C:)
; 18 - System				%DOCUMENTS% - documents directory
; 19 - Themes				%ALLDOCUMENTS% - all users documents directory
; 20 - Tweaking				%STARTUP% - programs startup directory (Start->Programs->Startup)
; 21 - Video				%ALLSTARTUP% - all users programs startup directory
; 22 - Windows				%TEMP% - Windows temporary directory
;-------------------------------------------------------------------------------------------------------------------
;					Any of these shortcuts except %ROOT%, %ROOTC%, %FOLDER% can be
;					used in command line switches too (but not for ini file yet).
  
  
[Category1]
Name1=INTERNET (Navegadores Gestores Acceleradores P2P)
Icon=10

[Category2]
Name1=SISTEMA (Runtimes Updates Complementos)								
Icon=22	

[Category3]
Name1=CHAT							
Icon=1

[Category4]
Name1=MULTIMEDIA (Audio/Video)
Icon=3

[Category5]
Name1=IMAGEN
Icon=8

[Category6]
Name1=GRABACION CD/DVD
Icon=4	

[Category7]
Name1=COMPRESORES DE ARCHIVOS
Icon=2

[Category8]
Name1=OFICINA
Icon=14	

[Category9]
Name1=UTILIDADES
Icon=20

[Category10]
Name1=MANTENIMIENTO Y SEGURIDAD
Icon=5

[Category11]
Name1=JUEGOS PARA WINDOWS
Icon=7
[Category12]
Name1=PERSONALIZAR - AGREGADOS (Themes, Brico, Efectos, Skins, Cursors)
Icon=19

;/=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\;
;/-----------------------------|CATEGORIA Nº1 - INTERNET|----------------------------\;
;/=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\;

[1]
Name=Mozilla 3.6 + FlashPlug
Desc1=es una manera rápida, segura y completamente personalizable de navegar por la web.
Category=1
Default=0
Run1="%BPATH%Category1\Firefox3.6.exe"

[2]
Name=Opera 10
Desc1=Es Muy Rápido. Incluso Cuenta Con Un Modo Turbo
Category=1
Default=0
Run1="%BPATH%Category1\Opera1051.exe" /qn

[3]
Name=FileZilla Cliente 3.3.2.1
Desc1=Cliente de FTP que incluye todos los comandos y funciones.
Category=1
Default=0
Run1="%BPATH%Category1\FileZilla.exe" /S

[4]
Name=JDownloader 0.9.579 (Requiere Java)
Desc1=Este Gestor Descarga Archivos De Internet Con Total Eficacia
Category=1
Default=0
Run1="%BPATH%Category1\JD0.9.579.exe"

[5]
Name=Flash Get 1.9.6 (Sin Barra Google)
Desc1=Impresionante gestor de descarga que crea múltiples conexiones simultáneas
Category=1
Default=0
Run1="%BPATH%Category1\FlashGet.exe"

[6]
Name=Orbit Downloader 3.0.3
Desc1=Un Gestor De Descarga Que Lo Atrapa Todo.
Category=1
Default=0
Run1="%BPATH%Category1\Orbit303.exe"

[7]
Name=Ares 3.1.5.3033
Desc1=Descarga Musica, Videos y Archivos Sin Errores y Rapidamente.
Category=1
Default=0					
Run1="%BPATH%Category1\Ares3.1.5.3033.exe"

[8]
Name=Mozilla Thunderbird 3.0.3
Desc1=Disfruta de tu correo de forma segura, rapida y fácil
Category=1
Default=0
Run1="%BPATH%Category1\ThunB3.0.3.exe" -ms

[9]
Name=Azureus 3.0.4.2
Desc1=es una impresionante utilidad para buscar todo tipo de archivos Torrent y descargarlos
Category=1
Default=0
Run1="%BPATH%Category1\Azur3.0.4.2.exe" -q

[10]
Name=WinSCP 4.27
Desc1=es un cliente SFTP gráfico para Windows que emplea SSH
Category=1
Default=0
Run1="%BPATH%Category1\WinSCP427.exe" /VERYSILENT /SP-
ademas acepta regedit, reg add, reg delete, cmd y creo que nada mas pero con esto haces todo lo que necesitas.

viene en ingles y russo, pero podes crear el español como en este caso

despues este es otro

http://www.kalytta.com/wihu.php


no lo probe pero tambien lo estuve investigando con el metodo runonex que anda por este foro saque de arrancar wpi en el primer inicio solo que yo lo hice para run
y no use el metodo oem por cierto si se pone el bat en el oem lo que yo no se es si se ejecuta o lo copia al disco unicamente.

a veces te bajas esos desatendidos que andan dando vuelta por toda la web y siempre descubris cositas como las que te estoy comentando.

el PIA no te suena?

slds!!!

Re: AutoIt + WPI

Publicado: Dom Abr 04, 2010 8:30 pm
por Menfis
Muy bien, buena info, se ve interesante el programa "mars installer" http://www.mars-soft.net/installer.htm buena alternativa.

Re: AutoIt + WPI

Publicado: Lun Abr 05, 2010 9:40 am
por Javo
Menfis escribió:Muy bien, buena info, se ve interesante el programa "mars installer" http://www.mars-soft.net/installer.htm buena alternativa.
ademas no habia pensado tambien esta otra forma

; Run marsinst.exe /? to get help about command line switches

Imagen

lo que me da a entender que puedo hacer un svcpack poniendo el exe junto con el ini y el commando marsinst.exe /I:miarchivo.ini

configurar la ruta en el ini del mars para buscar los programas y

Código: Seleccionar todo

Root=%CDROM%\install; main root folder for installations, use it as %ROOT%, %BDRV% is drive letter where marsinst.exe is
FindCD=XP32\DISK101; finds file on all available CD-ROM drives and if found set %CDROM% variable to that drive's letter
creo que tendria que arrancar sin problemas pero seria durante el t13 antes de terminar la instalacion de windows

se podria probar si el wpi tiene algun comando para ejecutarlo en svcpack durante el t13

slds!!!!!