bobthenob Posted July 2, 2007 Share Posted July 2, 2007 Hi I havnt used auoit for a few years. im trying to make some unattended installers for my unatteded winxp dvd, last time it all whent fine, but now some windows just arnt playing ball i made an installer for nero7 no problem and office 2007 but power dvd, winrar, and Flashfxp, are all giving me headaches the first coulple of windows are fine but then a window either dosnt exsist or my mouse click dosnt work. ive tryed a loop this has worked but not allways ie this dosnt work do If winExists("WinRAR Setup"," Associate WinRAR with")Then WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378) else Sleep( 500 ) EndIf until winExists("WinRAR Setup"," Associate WinRAR with") WinActivate("WinRAR Setup"," Associate WinRAR with") MouseClick("Left"214, 378) i tryed a message box it thinks the window dosnt exsist DO If WinExists("WinRAR Setup"," Associate WinRAR with") Then MsgBox(0, "", "Window exists") else Sleep(500) EndIf Until WinExists("WinRAR Setup"," Associate WinRAR with") MsgBox(0, "", "Window exists2") Exit heres the autoit window tool info expandcollapse popup>>>> Window <<<< Title: WinRAR Setup Class: #32770 Position: 356, 226 Size: 503, 403 Style: 0x94C808C4 ExStyle: 0x00010101 >>>> Control <<<< Class: Instance: ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: >>>> Mouse <<<< Position: 374, 24 Cursor ID: 2 Color: 0x305BB7 >>>> StatusBar <<<< >>>> Visible Text <<<< OK Associate WinRAR with &RAR &ZIP CAB ARJ LZH ACE 7-Zip TAR GZip UUE BZ2 JAR ISO Z Select &all Interface Add WinRAR to &Desktop Add WinRAR to &Start Menu Create WinRAR &program group &Integrate WinRAR into shell Shell integration Cascaded con&text menus Ico&ns in context menus Help These options control integration of WinRAR into Windows. The first group of options allows to choose archive types to handle by WinRAR. The second group selects places to add links to the WinRAR executable. And the last group controls integration into the Windows shell. Shell integration provides handy facilities like "Extract" item in archive context menus, so usually there is no reason to disable it. Press "Help" button to read more detailed description of these options. &Context menu items... >>>> Hidden Text <<<< ive been trawling the forum for a few days trying to find where im going wrong. thanks in advance Link to comment Share on other sites More sharing options...
lordofthestrings Posted July 2, 2007 Share Posted July 2, 2007 there's a couple of projects running on this site about this topic.. My suggestion, for silent application installs use mousestrokes as a last resort. you will want to try Windows Script Host shortcut keys.. (ALT+Underscored Letter in GUI) these work better than variable mousemovements (set screen resolution different and the script clicks 20 Centimeters next to the button). Record the script with AU3recorder, I haven't encountered too much problems with this method. I hope you get these apps to work.. They are not special, if you manage to get a silent office 2007 install, you can't have problems with small apps like the ones you mention. have a nice day, LOTS Link to comment Share on other sites More sharing options...
bobthenob Posted July 2, 2007 Author Share Posted July 2, 2007 there's a couple of projects running on this site about this topic..My suggestion, for silent application installs use mousestrokes as a last resort.you will want to try Windows Script Host shortcut keys..(ALT+Underscored Letter in GUI)these work better than variable mousemovements (set screen resolution different and the script clicks 20 Centimeters next to the button).Record the script with AU3recorder, I haven't encountered too much problems with this method.I hope you get these apps to work.. They are not special, if you manage to get a silent office 2007 install, you can't have problems with small apps like the ones you mention.have a nice day,LOTShi thanks for your reply ill look at that ive just always use mouseclick Link to comment Share on other sites More sharing options...
MHz Posted July 2, 2007 Share Posted July 2, 2007 (edited) When you have WinRAR setup. Go through the Configuration and setup to your liking. Close and open WinRAR so setting are committed. Then go to the menu and export settings. You will find a registry file that contains the settings in the install folder. Repack WinRAR with same settings as original archive installer with the reg file in the root. Use /S to install and upon 1st Run, WinRAR will automatically import the settings from the reg file. That is a better WinRAR installer. Edit: Added few more words to complete. Edited July 2, 2007 by MHz Link to comment Share on other sites More sharing options...
Proph Posted July 2, 2007 Share Posted July 2, 2007 Also check http://msfn.org for tips on silent installations.You can also check out my RVM Integrator at http://Integrator.SiginetSoftware.comYou can get many UpdatePacks and Addons with software that has allready been made to easily integrate into your XP disks. http://ryanvm.net/msfn Link to comment Share on other sites More sharing options...
bobthenob Posted July 2, 2007 Author Share Posted July 2, 2007 Also check http://msfn.org for tips on silent installations.You can also check out my RVM Integrator at http://Integrator.SiginetSoftware.comYou can get many UpdatePacks and Addons with software that has allready been made to easily integrate into your XP disks. http://ryanvm.net/msfnhi thanks for all your repllys Link to comment Share on other sites More sharing options...
dufran3 Posted July 2, 2007 Share Posted July 2, 2007 agree with those above. I have automated several applications and have never used mouseclicks. Least reliable way. The best way is using command line switches with the installers. Vist App Deploy this website contains lots of help using command line switches with .msi, installshield, and other installers. using RunWait with @Comspec with command line switches is the best way to do it I have found. Here is an example of a Office XP Pro installer that I automated, just so you can see what I'm talking about. The Debug lines are for my use in a log file. Pretty much just running the install using command line switch. Anything using .msi's are easy to automate, installshield sometimes is more difficult. You just have to find switches that work.Func _InstallOfficeXPPro($dummy) ;Debug If $KMCDebug == 2 or 3 Then DebugMessage('Office XP Pro: ','Entering Function') ;Delcare Variables $szOfficeXPProFileCheck = 'C:\Program Files\Microsoft Office\Office10\MSACCESS.exe' ;Debug If $KMCDebug == 2 or 3 Then DebugMessage('__Office XP Pro: ','Running install string ...') ;Run Installer RunWait(@ComSpec & ' /c msiexec.exe /i "\\fileserver\microsoft\administrative\Office PRO\PRO.msi" /passive') ;Log Install _LogCheck("2","Office Xp Pro",$szOfficeXPProFileCheck) ;Debug If $KMCDebug == 2 or 3 Then DebugMessage('Office XP Pro: ','Exiting Function') EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now