Jump to content
Sign in to follow this  
Briandr

an EXE that needs to install silently

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.

Share this post


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

Share this post


Link to post
Share on other sites

Thanks to all who offered suggested. I gave the developer name. The name of the product is ReportViewer 20.5. The MSI(s) are inside the EXE. When it runs I can see the files it extracted in %temp%, but no ISS file.

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  

×
×
  • Create New...