Jump to content
Sign in to follow this  
jbennett

Hide installation of a program

Recommended Posts

jbennett

Hi everyone,

I have one other quick question.

Does anyone know whether I can hide an installation of a program. I'm currently scripting the installation of a program (with controlclicks etc) and was wondering if I could hide this.

Normally I would use switches (e.g. /passive and /quiet etc) but in this case it's not possible for me to do this.

p.s. @SW_HIDE doesn't seem to be working.

Thanks

Regards,

Jon Bennett

Edited by jbennett

Share this post


Link to post
Share on other sites
nguyenbason

p.s. @SW_HIDE doesn't seem to be working.

@SW_HIDE with which function?

Did you try this?

ControlHide ( "title", "text", controlID )

UnderWorldVN- Just play the way you like it

Share this post


Link to post
Share on other sites
jbennett

Below is an example of the basic idea of code.

I'm not sure how I could hide this installation whilst still being able to automatically select the buttons.

Thanks

ShellExecute("c:\wzcline31.exe")
WinWaitActive("WinZip Command Line Support Add-On 3.1 Setup", "Thank you for your interest in the WinZip")
$ReturnedValue = ControlClick("WinZip Command Line Support Add-On 3.1 Setup", "", "&Setup")
WinWaitActive("License Agreement and Warranty Disclaimer", "As with other software, the WinZip Command Line Support Add-On 3.1")
$ReturnedValue = ControlClick("License Agreement and Warranty Disclaimer", "", "&Yes")
WinWaitActive("WinZip Command Line Support Add-On 3.1 Setup", "Setup found a compatible version of WinZip")
$ReturnedValue = ControlClick("WinZip Command Line Support Add-On 3.1 Setup", "", "&Yes")
WinWaitActive("WinZip Command Line Support Add-On 3.1 Setup", "The WinZip Command Line Support Add-On has been")
$ReturnedValue = ControlClick("WinZip Command Line Support Add-On 3.1 Setup", "", "&No

Share this post


Link to post
Share on other sites
jerem488

you can move your window =>

$pos = wingetpos(you window)

winmove("your window", "", @desktopwidth+$pos[2]+10)

Me I am doing like this...


Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Share this post


Link to post
Share on other sites
jbennett

Thanks for the reply. I tried your idea but it doesn't seem to be working.

I've pasted a sample piece of the code below. Do you have any ideas why it might not be working?

Thanks

ShellExecute("c:\WinZip65.wzmul")
    
    WinWaitActive("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS")
    $pos1 = wingetpos("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS")
    winMove("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS","",@DesktopWidth+$pos1[2]+10)
    $ReturnedValue = ControlClick("License Agreement and Warranty Disclaimer", "", "&Yes")

Share this post


Link to post
Share on other sites
jerem488

the error is in you winmove() line

try this :

ShellExecute("c:\WinZip65.wzmul")
    
    WinWaitActive("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS")
    $pos1 = wingetpos("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS")
    winMove("License Agreement and Warranty Disclaimer", "As with other software, WinZip is subject to WARRANTY DISCLAIMERS",@DesktopWidth+$pos1[2]+10)
    $ReturnedValue = ControlClick("License Agreement and Warranty Disclaimer", "", "&Yes")

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

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  

×