+ Post New Thread
Results 1 to 10 of 10
Scripts Thread, Windows XP to Windows 7 Help Needed With this Script >> Plz in Coding and Web Development; Hello All, We have been using the following script below for installing Espresso on Windows XP machines for a number ...
  1. #1

    Join Date
    Dec 2011
    Location
    Hampshire
    Posts
    83
    Thank Post
    31
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Windows XP to Windows 7 Help Needed With this Script >> Plz

    Hello All,

    We have been using the following script below for installing Espresso on Windows XP machines for a number of years. We have started introducing Windows 7 machine and the script no longer works\runs.

    Can a helpful sole convert this script to run under Windows 7 please?

    You help is very much appreciated

    EN4

    SEE BELOW>>

    echo off

    echo
    echo -------------
    echo
    echo -------------
    echo Espresso batch file for the configuration of Windows XP PCs

    echo this configuration assumes that the IP address is 10.25.172.100

    echo Please do not close this window until finished...


    del "c:\documents and settings\all users\desktop\espresso.url"

    del "c:\documents and settings\all users\desktop\espresso.lnk"

    del "c:\documents and settings\all users\start menu\programs\espresso.url"

    del "c:\documents and settings\all users\start menu\programs\espresso.lnk"

    del "c:\documents and settings\all users\start menu\programs\espresso.lnk"

    del "c:\documents and settings\all users\start menu\espresso.lnk"

    del "c:\PsmStartMenu\programs\espresso.lnk"

    del "c:\documents and settings\all users\favorites\espresso.lnk"

    del "c:\documents and settings\all users\desktop\espresso.lnk"


    del "c:\documents and settings\all users\start menu\espresso.url"

    del "c:\PsmStartMenu\programs\espresso.url"

    del "c:\documents and settings\all users\favorites\espresso.url"

    del "c:\documents and settings\all users\desktop\espresso.url"


    rem copy \\10.25.172.100\install\setup\icons\*.ico "c:\program files"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\documents and settings\all users\start menu\programs"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\documents and settings\all users\start menu"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\PsmStartMenu\programs"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\documents and settings\all users\favorites"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\documents and settings\all users\desktop"


    echo
    echo Please Wait...... Installing Flash Player 10
    echo ---------------
    echo
    start /w \\10.25.172.100\install\setup\install_flash_player _10_active_x.msi /q
    echo
    echo flashplayer installed,
    echo PLEASE wait for next application to install....
    echo When all applications are installed the DOS Window will close automatically.......
    echo ---------------

  2. #2
    markcuk's Avatar
    Join Date
    Sep 2005
    Posts
    586
    Thank Post
    29
    Thanked 60 Times in 55 Posts
    Rep Power
    38
    probrably because "Documents and Settings" is no longer used in windows 7 is now "users"

  3. #3

    Join Date
    Oct 2005
    Location
    East Midlands
    Posts
    738
    Thank Post
    17
    Thanked 105 Times in 65 Posts
    Rep Power
    37
    This below changes should work. Please test it though.

    Quote Originally Posted by EN4CER View Post
    Hello All,

    SEE BELOW>>

    echo off

    echo
    echo -------------
    echo
    echo -------------
    echo Espresso batch file for the configuration of Windows XP PCs

    echo this configuration assumes that the IP address is 10.25.172.100

    echo Please do not close this window until finished...


    del "C:\Users\Public\Desktop\espresso.url"

    del "C:\Users\Public\Desktop\espresso.lnk"

    del "%allusersprofile%\Microsoft\windows\start menu\programs\espresso.url"

    del "%allusersprofile%\Microsoft\windows\start menu\programs\espresso.lnk"

    del "%allusersprofile%\Microsoft\windows\start menu\programs\espresso.lnk"

    del "%allusersprofile%\Microsoft\windows\start menu\programs\espresso.lnk"

    del "c:\PsmStartMenu\programs\espresso.lnk"

    del "C:\Users\Public\Favorites\espresso.lnk"

    del "C:\Users\Public\Desktop\espresso.lnk"


    del "%allusersprofile%\Microsoft\windows\start menu\programsespresso.url"

    del "c:\PsmStartMenu\programs\espresso.url"

    del "C:\Users\Public\Favorites\espresso.url"

    del "C:\Users\Public\Desktop\espresso.url"


    rem copy \\10.25.172.100\install\setup\icons\*.ico "c:\program files"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "%allusersprofile%\Microsoft\windows\start menu\programs"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "%allusersprofile%\Microsoft\windows\start menu"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "c:\PsmStartMenu\programs"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "C:\Users\Public\Favorites\"

    copy \\10.25.172.100\install\setup\shortcuts\*.lnk "C:\Users\Public\Desktop\"


    echo
    echo Please Wait...... Installing Flash Player 10
    echo ---------------
    echo
    start /w \\10.25.172.100\install\setup\install_flash_player _10_active_x.msi /q
    echo
    echo flashplayer installed,
    echo PLEASE wait for next application to install....
    echo When all applications are installed the DOS Window will close automatically.......
    echo ---------------

  4. #4

    Join Date
    Dec 2011
    Location
    Hampshire
    Posts
    83
    Thank Post
    31
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    It didn't work, but thanks for trying.

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,942
    Thank Post
    886
    Thanked 1,694 Times in 1,472 Posts
    Blog Entries
    12
    Rep Power
    447
    Does anything at all happen? Do we have any errors please?

  6. #6
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    "Documents and Settings" should be a junction so the path should be valid. How is this being run? Logon script? Startup script?
    No longer works is very different to no longer runs.

  7. #7

    Join Date
    Dec 2011
    Location
    Hampshire
    Posts
    83
    Thank Post
    31
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Doesn't find the paths error.

    The script is run as a batch file off the server.

  8. #8


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,878
    Thank Post
    226
    Thanked 2,669 Times in 1,968 Posts
    Rep Power
    786
    This should work...

    Code:
    @echo off
    SET IP=10.25.172.100
    
    echo/-------------------------------------------------------------------------------
    echo  Espresso batch file for the configuration of Windows 7 PCs
    echo  This configuration assumes that the IP address is %IP%
    echo/-------------------------------------------------------------------------------
    
    IF EXIST "%SystemRoot%\System32\WhoAmI.exe" (
     WhoAmI /priv | find "SeImpersonatePrivilege" >NUL || color 4f && echo. && echo  This script must be run from an elevated Command Prompt. && echo. && pause && exit /b
    )
    
    echo  Please do not close this window until finished...
    
    if exist "%PUBLIC%\Desktop\espresso.lnk" del "%PUBLIC%\Desktop\espresso.lnk"
    if exist "%PUBLIC%\Desktop\espresso.url" del "%PUBLIC%\Desktop\espresso.url"
    if exist "%PUBLIC%\Favorites\espresso.lnk" del "%PUBLIC%\Favorites\espresso.lnk"
    if exist "%PUBLIC%\Favorites\espresso.url" del "%PUBLIC%\Favorites\espresso.url"
    if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\espresso.lnk" del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\espresso.lnk"
    if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\espresso.url" del "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\espresso.url"
    if exist "%SystemDrive%\PsmStartMenu\Programs\espresso.lnk" del "%SystemDrive%\PsmStartMenu\Programs\espresso.lnk"
    if exist "%SystemDrive%\PsmStartMenu\Programs\espresso.url" del "%SystemDrive%\PsmStartMenu\Programs\espresso.url"
    
    :: xcopy \\%IP%\install\setup\icons\*.ico "%ProgramFiles%\Icons" /C /Y
    :: xcopy \\%IP%\install\setup\shortcuts\*.lnk "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu" /C /Y
    xcopy \\%IP%\install\setup\shortcuts\*.lnk "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs" /C /Y
    xcopy \\%IP%\install\setup\shortcuts\*.lnk "%SystemDrive%\PsmStartMenu\Programs" /C /Y
    xcopy \\%IP%\install\setup\shortcuts\*.lnk "%PUBLIC%\Favorites" /C /Y
    xcopy \\%IP%\install\setup\shortcuts\*.lnk "%PUBLIC%\Desktop" /C /Y
    
    echo.
    echo/-------------------------------------------------------------------------------
    echo  Installing Flash Player. Please Wait...
    echo/-------------------------------------------------------------------------------
    msiexec /i \\%IP%\install\setup\install_flash_player_10_active_x.msi /qb!
    echo  Flash Player installed
    echo.
    echo  PLEASE wait for next application to install.
    echo  When all applications are installed this window will close automatically.
    echo/-------------------------------------------------------------------------------

  9. #9

    Join Date
    Oct 2009
    Posts
    5
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hello all,

    Please note that the batch file used in your original installation is a tool created by individual 3rd party support company's as a way of helping them to make sure that shortcuts are set up and that all units have the minimum software required to run Espresso. These batch files are not required in order to get Espresso installed on a client PC.

    In most cases the software required to run Espresso comes as standard on all clients these days namely, Up to date flash, Windows media player and IE or fire fox (32bit only). All you really need to do is get the shortcut to the URL sent out to all the client desk tops.

    Espresso exists on several different types of hardware and each one has a slightly different URL. However, the two main builds are EMD (Espresso own build unit built by Stone or ICT) and Cachepilot (built by Equiinet coming in may different variants) URLs for these are as follows.

    EMD: http://xx.xx.xx.xx/espresso/modules/index.html (host name default espresso)
    Cachepilot: http://xx.xx.xx.xx/~espresso/modules/index.html (hostname default cachepilot)

    Please note that where xx you will need to insert IP or host name of the unit. Also some schools may have changed the host name and so persistent issues should be directed to Espresso.

    Support information
    Tel: 0800 6527 527
    Email: schoolsupport@espresso.co.uk
    Last edited by espresso; 17th August 2012 at 03:37 PM.

  10. #10

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    2,806
    Thank Post
    774
    Thanked 547 Times in 427 Posts
    Rep Power
    260
    I would have thought it would be easier to roll these shortcuts out via GPO (or GPP if you're brave) and maybe item level targeting.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 08:34 AM
  2. Windows 7 Pro to Windows XP Pro downgrade help!
    By pbaddhan in forum Licensing Questions
    Replies: 7
    Last Post: 26th November 2010, 09:28 AM
  3. Windows services. A little help needed.
    By fafster in forum Windows
    Replies: 6
    Last Post: 11th May 2009, 02:24 PM
  4. Replies: 4
    Last Post: 15th March 2007, 08:48 PM
  5. Windows Xp vs Windows Vista
    By tosca925 in forum Windows Vista
    Replies: 12
    Last Post: 3rd May 2006, 07:27 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
  •