Jump to content

A goto command


Recommended Posts

  • Developers

I have started working on a silent install. But the script would be different if this is a new install as compared to overwriting an existing install. Any advice.

mmm... I am sure you didn't search long since Goto is a subject that was "beaten to dead" before...

As to your basic question: have no idea what your true question is so would need guessing and that's not my strongest asset :whistle:

Maybe explain what you need to accomplish and post some snippet of what you have already ....

:lmao:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

mmm... I am sure you didn't search long since Goto is a subject that was "beaten to dead" before...

As to your basic question: have no idea what your true question is so would need guessing and that's not my strongest asset :whistle:

Maybe explain what you need to accomplish and post some snippet of what you have already ....

:lmao:

I agree I should of searched more, for that I apologize. When I have a partial script I will post more.

Link to comment
Share on other sites

I agree I should of searched more, for that I apologize. When I have a partial script I will post more.

Here is some free code to get you started :whistle:

$exitcode = RunWait('setup.exe /s')
If $exitcode Then
    Switch $exitcode
        Case 1
            ; Do this
        Case 2
            ; Do that
        Case 3
            ; Get the point yet :)
    EndSwitch
Else
    MsgBox(0, '', 'Success')
EndIf
Link to comment
Share on other sites

Thank you for all your help, pushing me to do a little research has helped me considerably. I am a newb to this, but have done some basic. I have figured it out this is how it came out.

RunWait("yu2006setup.exe /VERYSILENT /NORESTART")
Run($ProgramFiles &"\Your Uninstaller 2006\uruninstaller.exe")
If WinWaitActive("Your Uninstaller! 2006","Order Now!", 5)  Then
   ControlClick ( "Your Uninstaller! 2006","Order Now!", "Enter Key")
   WinWaitActive("Enter Code")
   Send("XXXXX XXXX{TAB}xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx{TAB}{SPACE}")
   Sleep (5000)
   ControlClick ("Information","","TButton1")
   ControlClick ("Your Uninstaller! 2006","","TRzButton5")
   Endif
ProcessClose ("uruninstaller.exe")
FileDelete ( @ProgramFilesDir & '\Your Uninstaller 2006\autoupdater.exe')
exit

Thanks again.

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