Jump to content

How to hide the windows


Recommended Posts

Hi

I wonder if someone can help me with this one. I have done most of the part already just few things I want to have clear idea about. Also this is the first time I am using such a great tool.

Below is a working script that I am using to uninstall a software from the users computer. I want to apply this uninstallation through SMS silently with no user interaction. Most of the users have only power rignts but the sms uses the system account to install software I hope it can work using the autoit compiled script.

Please let me know how to hide the the windows so it can be seamless. Right now it is working when I run it on my computer but I can see the mouse moving and clicking the buttons. I just want it silent and seamless to the users when it is advertised to the users computers. Please let me know if there are limitations in using SMS.

Many thanks,

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('C:\V8_5\Setup\Setup.exe')

WinWait("NetScreen-Remote Setup","Welcome to the NetSc")

If Not WinActive("NetScreen-Remote Setup","Welcome to the NetSc") Then WinActivate("NetScreen-Remote Setup","Welcome to the NetSc")

WinWaitActive("NetScreen-Remote Setup","Welcome to the NetSc")

MouseMove(346,362)

MouseDown("left")

MouseUp("left")

WinWait("Confirm Uninstall","Do you want to compl")

If Not WinActive("Confirm Uninstall","Do you want to compl") Then WinActivate("Confirm Uninstall","Do you want to compl")

WinWaitActive("Confirm Uninstall","Do you want to compl")

MouseMove(201,78)

MouseDown("left")

MouseUp("left")

WinWait("Uninstall IPSec Security Policy","Would you like to de")

If Not WinActive("Uninstall IPSec Security Policy","Would you like to de") Then WinActivate("Uninstall IPSec Security Policy","Would you like to de")

WinWaitActive("Uninstall IPSec Security Policy","Would you like to de")

MouseMove(190,98)

MouseDown("left")

MouseUp("left")

WinWait("NetScreen-Remote Setup","NetScreen-Remote Set")

If Not WinActive("NetScreen-Remote Setup","NetScreen-Remote Set") Then WinActivate("NetScreen-Remote Setup","NetScreen-Remote Set")

WinWaitActive("NetScreen-Remote Setup","NetScreen-Remote Set")

MouseMove(441,365)

MouseDown("left")

MouseUp("left")

WinWait("NetScreen-Remote Setup","Yes, I want to resta")

If Not WinActive("NetScreen-Remote Setup","Yes, I want to resta") Then WinActivate("NetScreen-Remote Setup","Yes, I want to resta")

WinWaitActive("NetScreen-Remote Setup","Yes, I want to resta")

MouseMove(283,18)

MouseDown("left")

MouseMove(426,21)

MouseUp("left")

MouseMove(344,356)

MouseDown("left")

MouseUp("left")

uninstall508.au3

Link to comment
Share on other sites

If it were me I'd be looking in the registry for an uninstall switch on the installer for that software. Start here HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.

Try it with a /quiet or /S switch if you find it. Juniper must have documentation on how to remove it through command line.

Edited by Legacy99
Link to comment
Share on other sites

Juniper does not have any thing on silent uninstallation but mostly is manualy uninstall.

I have really exshauted all my efforts on a the command line switch.

The unistall string on the registry is

RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\Juniper\NetScreen-Remote\Setup\Setup.exe" -l0x9

I have also tried also creating the answer file using this command setup.exe /s /f1"C:\myanswerfile.iss"

/s swtch is working silently with the answer file.iss that I created but the issue is right when the uninstall is done the computer restarts itself with no warning. Even though I made sure the bootoption=0.

Here is the answer file if you check it yourself.

[installShield Silent]

Version=v6.00.000

File=Response File

[File Transfer]

OverwrittenReadOnly=NoToAll

[{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-DlgOrder]

Dlg0={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdWelcomeMaint-0

Count=4

Dlg1={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SprintfBox-0

Dlg2={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-AskYesNo-0

Dlg3={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdFinishReboot-0

[{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdWelcomeMaint-0]

Result=303

[{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SprintfBox-0]

Result=1

[Application]

Name=NetScreen-Remote

Version=10.3.5.6

Company=Juniper

Lang=0009

[{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-AskYesNo-0]

Result=1

[{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdFinishReboot-0]

Result=1

BootOption=0

Please let me know if you have any other suggestions.

Edited by smartmanwin
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...