Jump to content

an EXE that needs to install silently


Briandr
 Share

Recommended Posts

Hi,

I have an EXE which I cannot decompile. Despite what the vendor says the /S /v/qn switches do not work for a silent install. I would like to use AutoIT to hide the window so the user doesn't click cancel or finish. I tried recording the install and adding the start command to run the EXE, but I am still seeing progress bars as the installs moves along as well as having to click finish. Or at least that is what I recall the first time I have tested this. I have since re-tested several times over and getting a mixed bag of results. Can someone help?

#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409)  ---

#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000409' Then
  MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')')
EndIf

EndFunc

Func _WinWaitActivate($title,$text,$timeout=0)
    WinWait($title,$text,$timeout)
    If Not WinActive($title,$text) Then WinActivate($title,$text)
    WinWaitActive($title,$text,$timeout)
EndFunc

_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---


Run("Report_Viewer_11.3_Cache_2008.exe", @ScriptDir, @SW_HIDE)
_WinWaitActivate("(Untitled) - SciTE-Lite","")
Send("{TAB}{TAB}")
_WinWaitActivate("Program Manager","")
MouseClick("left",474,202,1)
Send("{TAB}")
_WinWaitActivate("Start","")
Send("{TAB}")
_WinWaitActivate("classname=Shell_TrayWnd","")
Send("{TAB}{TAB}")
_WinWaitActivate("Report Viewer - InstallShield Wizard","")
MouseClick("left",348,352,1)
#endregion --- Au3Recorder generated code End ---
 

Thanks.

Link to comment
Share on other sites

First - look at this:

http://dottech.org/3138/how-to-track-what-changes-are-made-on-your-computer-during-a-program-installation/

Second - you simply use AutoIt to make a package to handle your install. Have the files put into a zip file and have them unzip on the PC along with AutoIt handling any registry changes and any other chore that needs to be done during the install. You can do all of this without any GUI and it would look completely transparent to the user.

Link to comment
Share on other sites

  • Moderators

What is the name of the product you are trying to install? If it is in an MSI as you state, I find it difficult to see how you could not do a silent install.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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