Sign in to follow this  
Followers 0
bobthenob

making installer

7 posts in this topic

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

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

Share this post


Link to post
Share on other sites



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


Share this post


Link to post
Share on other sites

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

hi thanks for your reply ill look at that

ive just always use mouseclick

Share this post


Link to post
Share on other sites

#4 ·  Posted (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. :rolleyes:

Edit:

Added few more words to complete.

Edited by MHz

Share this post


Link to post
Share on other sites

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

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