Sign in to follow this  
Followers 0
mangure

unattended primoPDF installation with @SW_HIDE

5 posts in this topic

Hi everybody, I have a little problem about FreePrimoPDF installation. I have generated the *.au3 file to install the software. It runs but I need that the installation runs or in background mode or including an option

for avoiding the user interaction -mouse and keyboard- while the software is being installed with autoit3.exe.

In spite of including @SW_HIDE, the software is installed showing the normal windows. Any Suggestions???

The PrimoPDF.au3 file is like:

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run("C:\DIR_TRABAJO\HUNOSA\PrimoPDF\FreePrimoSetup.exe", "", @SW_HIDE)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseMove(352,364)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","Acepto los términos ") Then WinActivate("Programa de instalación de PrimoPDF","Acepto los términos ")

WinWaitActive("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)

MouseMove(194,304)

MouseDown("left")

MouseMove(194,303)

MouseUp("left")

Sleep(1000)

MouseMove(331,364)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("PrimoPDF Setup","", @SW_HIDE)

If Not WinActive("PrimoPDF Setup","") Then WinActivate("PrimoPDF Setup","")

WinWaitActive("PrimoPDF Setup","", @SW_HIDE)

MouseMove(21,375)

MouseDown("left")

MouseMove(20,375)

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseMove(239,74)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(236,96)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(234,76)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(351,367)

MouseDown("left")

MouseUp("left")

Sleep(1000)

Share this post


Link to post
Share on other sites



Very little one can do for hiding installations when using mouse*() functions. I have a working english version that uses Control*() functions and have tried to translate the titles and text. You may still need to use Au3Info Tool to check the differences in control text... The installer windows will move off screen as from the 1st window.

_FreePrimoPDF.html

Share this post


Link to post
Share on other sites

Hi everybody, I have a little problem about FreePrimoPDF installation. I have generated the *.au3 file to install the software. It runs but I need that the installation runs or in background mode or including an option

for avoiding the user interaction -mouse and keyboard- while the software is being installed with autoit3.exe.

In spite of including @SW_HIDE, the software is installed showing the normal windows. Any Suggestions???

The PrimoPDF.au3 file is like:

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run("C:\DIR_TRABAJO\HUNOSA\PrimoPDF\FreePrimoSetup.exe", "", @SW_HIDE)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseMove(352,364)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","Acepto los términos ") Then WinActivate("Programa de instalación de PrimoPDF","Acepto los términos ")

WinWaitActive("Programa de instalación de PrimoPDF","Acepto los términos ", @SW_HIDE)

MouseMove(194,304)

MouseDown("left")

MouseMove(194,303)

MouseUp("left")

Sleep(1000)

MouseMove(331,364)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseDown("left")

MouseUp("left")

Sleep(1000)

WinWait("PrimoPDF Setup","", @SW_HIDE)

If Not WinActive("PrimoPDF Setup","") Then WinActivate("PrimoPDF Setup","")

WinWaitActive("PrimoPDF Setup","", @SW_HIDE)

MouseMove(21,375)

MouseDown("left")

MouseMove(20,375)

MouseUp("left")

Sleep(1000)

WinWait("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

If Not WinActive("Programa de instalación de PrimoPDF","&Siguiente >") Then WinActivate("Programa de instalación de PrimoPDF","&Siguiente >")

WinWaitActive("Programa de instalación de PrimoPDF","&Siguiente >", @SW_HIDE)

MouseMove(239,74)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(236,96)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(234,76)

MouseDown("left")

MouseUp("left")

Sleep(1000)

MouseMove(351,367)

MouseDown("left")

MouseUp("left")

Sleep(1000)

ok... a few things

1) you can cut your code ALOT by replacing all of your "mousemove(),mousedown(),mouseup()" with 'mouseclick() or better yet, controlclick()

2) it doesn't look like you're setting the window state anywhere.... you're using @sw_hide as your time out parameter on winwait, and winwaitactive functions, which doesn't do anything...

3) when you use winsetstate("whatever",@SW_HIDE), you're not going to be able to use normal mouse moves etc to access the controls of the window as you're doing now, because the window won't be there to move the mouse around on.... look into controlclick() and controlsend()


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0