+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33
Scripts Thread, popup message saying installing please wait. in Coding and Web Development; Have you tried running my message.exe from within the batch file to see if that works how you want?...
  1. #16

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,414
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: popup message saying installing please wait.

    Have you tried running my message.exe from within the batch file to see if that works how you want?

  2. #17

    bossman's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    3,969
    Thank Post
    1,212
    Thanked 1,076 Times in 767 Posts
    Rep Power
    332

    Re: popup message saying installing please wait.

    tomscaper, just a question? do you have WOL active on your network? if you do then can you not do the installs before the users logon say 7 in the morning, this is what i do and i have no irritating problems with the teachers being held up for 5 mins while software is installing. This gives me street cred with the teachers and they give me no grief.

  3. #18
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    to webman

    i tried your message.exe version it shows the message fine, and the mouse wont move, but it doesnt then move on to install the software it just freezes at that point.

    bossman

    i dont know what WOL is how would i find out if that is on my server.

  4. #19

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,414
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: popup message saying installing please wait.

    Ah, you'd maybe have to use START to run it then (will execute it then carry on with the script), sorry:

    Code:
    @echo off
    start message.exe "Please wait" "Installing SIMS" 0
    WOL (Wake-on-LAN) allows computers to be turned on when a "magic packet" is sent to them. It has to be support at each computer at their network card level (or motherboard).

  5. #20
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    that works great now.

    as for the wake on lan, some of the network cards or motherboards can do this as i start them up on a morning that way, but there are a odd few that do not let me do this.

    i am still curious about getting the other autoit script to work though any ideas what could be wrong with it

  6. #21

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,414
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: popup message saying installing please wait.

    I think I read somewhere that to run batch files from autoit you have to run something like "cmd.exe /c <batch_file.cmd>"

  7. #22
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: popup message saying installing please wait.

    Be aware that there is a limit on the length of time a computer waits for startup scripts to complete. There is a GP setting which can change this.

  8. #23
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    sims takes about 5 minutes to complete. how would i go about altering this do you happen to know where you can change this.

    also anyone insterested i solved the other problem with autoit

    run ('sims.bat')
    ; Pauses execution of the script until the requested window does not exist. You can put a timeout setting on this if you wish
    WinWaitClose('C:\WINDOWS\system32\cmd.exe')
    i needed to use the WinWaitClose command on cmd as that is what the batch file opened,i dont know how fool proof it is but it waited till the script finished then displayed the completed message.

  9. #24
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    Well it all works fine now, well when i run it manually but when i go to run it at start up, due to not being able to run unc paths it wont run the batch file.

    is it possible to convert what i have in my batch file to work inside the autoit script

    @echo off
    if exist "c:\program files\sims\installed1" goto :eof ELSE
    net use q: \\ast-sr-001\packages\
    xcopy q:\sims\connect.ini "c:\program files\sims\" /y
    q:

    q:\sims\Setups\SIMSInfrastructureSetup.exe -a {QuietMode}

    q:\sims\Setups\SIMSapplicationsetup.exe /s {QuietMode} {NoServerApps} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

    q:\sims\Setups\SIMSMAnualSetup.exe /s {QuietMode} {NoServerManuals} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

    q:\sims\Setups\SIMSAMPARKSetup.exe /s {QuietMode} {NoServerApps} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

    md "c:\program files\sims\installed1"

    xcopy q:\connect.ini "c:\program files\sims\sims .net\" /h /y
    net use q: /d /y

  10. #25

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    Re: popup message saying installing please wait.

    Sorry you have lost me there Tom, what won't run at startup ? The actual AutoIT Script ?
    How are you starting it ? In the logon script for the user ? Also have you compiled it to an EXE ?

  11. #26
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    sorry if that made no sense lol.

    i have compiled it to an exe which runs on start up the main problem now is that it doesnt run the batch file because it cannot run it from the server such as \\servername\share\sims.bat

    i am looking at getting it to do it all in the autoit script rather than run an extra batch file.

    this is what i have up to now

    ; AutoIt Version: 3.2.2.0
    ; Language: English
    ; Platform: Win XP
    ; Author: Tom Fish
    ; Script Function: Displays Message then loads sims installers from batch file
    ; Version: 2
    ; Date: Jan 2007

    If FileExists("c:\program files\sims\installed11") Then
    Exit
    Else
    SplashTextOn("Sims Install", @CRLF & @CRLF & @CRLF & "Installing Sims Please wait for" & @CRLF & "this screen to close before continuing.","500","200","-1","-1",0,"","","")
    ;BlockInput(1)
    sleep(3000)
    ;Map the Q:\ drive
    DriveMapAdd("q:", "\\server\packages")
    FileCopy("q:\sims\connect.ini", "c:\program files\sims\",9)
    ;Run sims installers
    RunWait('q:\sims\Setups\SIMSInfrastructureSetup.ex e -a {QuietMode}')
    RunWait('q:\sims\Setups\SIMSapplicationsetup.exe /s {QuietMode} {NoServerApps} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"')
    RunWait('q:\sims\Setups\SIMSMAnualSetup.exe /s {QuietMode} {NoServerManuals} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"')
    RunWait('q:\sims\Setups\SIMSAMPARKSetup.exe /s {QuietMode} {NoServerApps} [SIMSDirectory]="K:\SIMS\" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"')
    ;creates directory call insalled1
    DirCreate("c:\program files\sims\installed1")
    FileCopy("q:\sims\connect.ini", "c:\program files\sims\sims .net\", 9)
    ; Disconnect the Q: drive
    DriveMapDel("q:")
    Splashoff()
    SplashTextOn("Sims Install", @CRLF & @CRLF & @CRLF & @CRLF & "Installation complete","500","200","-1","-1",0,"","","")
    sleep(3000)
    BlockInput(0)
    SplashOff()
    EndIf

  12. #27

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    Re: popup message saying installing please wait.

    Do you have the working directory location in your RunWait commands ?

    RunWait ( "filename" [, "workingdir" [, flag]] )

    I don't see them in your script - try putting those in, I have had a few issues with stuff not running because of that before...

  13. #28
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    22

    Re: popup message saying installing please wait.

    i am not sure what you mean the working directory, what is it for. is it where sims is installed such as c:\program files\sims\sims .net\

  14. #29

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    Re: popup message saying installing please wait.

    Example:

    The line:

    RunWait('q:\sims\Setups\SIMSInfrastructureSetup.ex e -a {QuietMode}')

    Re do as:

    RunWait('q:\sims\Setups\SIMSInfrastructureSetup.ex e -a {QuietMode}', 'q:\sims\setups')
    And the same for the others...

  15. #30
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: popup message saying installing please wait.

    I have an AutoIT script which I am still developing (taking ages to get it just right), and will share it when I can trust it.

    There are a couple of things that might help you though...

    You do not need to map a drive to install SIMS. It will happily install from (and indeed run from) a UNC path. I explicity share the SIMS Setups folder (as SIMSSETUPS), so I execute the installs from \\server\simssetups\SIMSInfrastructure.exe etc.



SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 26th January 2007, 12:22 AM
  2. Display a message whilst installing software
    By richard in forum How do you do....it?
    Replies: 14
    Last Post: 14th December 2006, 02:40 PM
  3. Replies: 7
    Last Post: 27th November 2006, 12:26 PM
  4. MCSE 2003 should I wait???
    By JayR in forum General Chat
    Replies: 19
    Last Post: 21st June 2006, 09:03 AM
  5. Replies: 20
    Last Post: 30th March 2006, 03:25 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •