Sign in to follow this  
Followers 0
Lostmind

A goto command

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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.

Share this post


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

Share this post


Link to post
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.

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