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 ...
-
14th June 2012, 07:09 PM #1
- 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 ---------------
-
-
IDG Tech News
-
14th June 2012, 07:34 PM #2 probrably because "Documents and Settings" is no longer used in windows 7 is now "users"
-
-
14th June 2012, 07:34 PM #3 This below changes should work. Please test it though.

Originally Posted by
EN4CER
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 ---------------
-
-
14th June 2012, 08:06 PM #4
- Rep Power
- 0
It didn't work, but thanks for trying.
-
-
14th June 2012, 08:10 PM #5 Does anything at all happen? Do we have any errors please?
-
-
14th June 2012, 08:38 PM #6 "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.
-
-
15th June 2012, 12:20 AM #7
- Rep Power
- 0
Doesn't find the paths error.
The script is run as a batch file off the server.
-
-
15th June 2012, 01:13 AM #8 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/-------------------------------------------------------------------------------
-
-
17th August 2012, 03:34 PM #9
- 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.
-
-
17th August 2012, 03:56 PM #10 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: 
Similar Threads
-
By pbaddhan in forum Licensing Questions
Replies: 7
Last Post: 26th November 2010, 09:28 AM
-
By fafster in forum Windows
Replies: 6
Last Post: 11th May 2009, 02:24 PM
-
Replies: 3
Last Post: 18th January 2008, 01:46 PM
-
By baronne in forum Windows
Replies: 4
Last Post: 15th March 2007, 08:48 PM
-
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
-
Forum Rules