Jump to content

unattended primoPDF installation with @SW_HIDE


mangure
 Share

Recommended Posts

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)

Link to comment
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

Link to comment
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()

Link to comment
Share on other sites

I dont want to be a party pooper but why dont you just use the builtin silent options for the setup?

http://forums.primopdf.com/archive/index.php/t-200

-Blademonkey

Not so. I have yet to see a Setup Factory Installer to have a silent method.

http://forums.primopdf.com/archive/index.php/t-505

InstallShield switches do not work for a Setup Factory Installer. :P

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...