EN4CER Posted June 14, 2012 Posted June 14, 2012 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 ---------------
markcuk Posted June 14, 2012 Posted June 14, 2012 probrably because "Documents and Settings" is no longer used in windows 7 is now "users"
spc-rocket Posted June 14, 2012 Posted June 14, 2012 This below changes should work. Please test it though. 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 ---------------
FN-GM Posted June 14, 2012 Posted June 14, 2012 Does anything at all happen? Do we have any errors please?
morganw Posted June 14, 2012 Posted June 14, 2012 "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.
EN4CER Posted June 14, 2012 Author Posted June 14, 2012 Doesn't find the paths error. The script is run as a batch file off the server.
Arthur Posted June 15, 2012 Posted June 15, 2012 This should work... @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/-------------------------------------------------------------------------------
espresso Posted August 17, 2012 Posted August 17, 2012 (edited) 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: [email protected] Edited August 17, 2012 by espresso
Oaktech Posted August 17, 2012 Posted August 17, 2012 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.
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