nodiaque Posted February 1, 2005 Share Posted February 1, 2005 Hi, I used to make my file copy program installation in a batch files run from GuiRunOnce. Now, I have a prob with my favorites. I copy/paste de command I used and now, it doesn't get copied over. Here is the code of my RunOnceEx.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "WINRAR 3.42" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar342.exe /s" /fREG ADD %KEY%\005 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\WinRAR\register.reg" /fREG ADD %KEY%\008 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\008 /V 1 /D "%systemdrive%\install\Applications\wmp\MP10Setup.exe /q" /fREG ADD %KEY%\010 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\MSN\MSN_Messenger_6.2.0137.msi /qn" /fREG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\MSN\register.reg /qn" /fREG ADD %KEY%\011 /VE /D "MSN Plus 3.25" /fREG ADD %KEY%\011 /V 1 /D "%systemdrive%\install\Applications\MSNPLUS\MsgPlus-325.exe /silentinstallnosponsor" /fREG ADD %KEY%\011 /V 2 /D "pskill msnmsgr.exe" /fREG ADD %KEY%\045 /VE /D "Nero Burning ROM 6.6.0.6" /fREG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg" /fREG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\Applications\Nero\nero6606.exe /silent /noreboot" /fREG ADD %KEY%\050 /VE /D "Sun Java JRE 1.5.0-01" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\SunJava\jre-1_5_0_01-windows-i586-p.exe /s /v/qn" /fREG ADD %KEY%\055 /VE /D "Spybot Search && Destroy 1.3" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\Spybot\spybotsd13.exe /verysilent" /fREG ADD %KEY%\060 /VE /D "Azureus 2.2.0.2" /fREG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\Azureus\Azureus_2.2.0.2.exe /S" /fREG ADD %KEY%\080 /VE /D "MicroSoft AntiSpyware Beta 1" /fREG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\Msanti\MicrosoftAntiSpyware.msi /qb-! REBOOT=ReallySuppress" /fREG ADD %KEY%\080 /V 2 /D "\"%ProgramFiles%\Microsoft AntiSpyware\gcasDtServ.exe\" /regserver" /fREG ADD %KEY%\085 /VE /D "Microsoft Office 2003 Pro" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\Tools\install.exe XPSP2_CD2 \copy_files.cmd \copy_files.cmd" /fREG ADD %KEY%\090 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\090 /V 1 /D "REGEDIT /S %systemdrive%\install\newtweaks.reg" /fREG ADD %KEY%\091 /VE /D "Importing Favorites" /fREG ADD %KEY$\091 /V 1 /D "%systemdrive%\install\import_favorites.cmd" /fREG ADD %KEY%\092 /VE /D "Importing Azureus Configuration" /fREG ADD %KEY%\092 /V 1 /D "%systemdrive%\install\import_azureus.cmd" /fREG ADD %KEY%\093 /VE /D "Importing Outlook Configuration" /fREG ADD %KEY%\093 /V 1 /D "%systemdrive%\install\import_outlook.cmd" /fREG ADD %KEY%\094 /VE /D "Importing Ventrilo Configuration" /fREG ADD %KEY%\094 /V 1 /D "%systemdrive%\install\import_ventrilo.cmd" /fREG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITSince it wasn't working for many of them, I started using a cmd filesl. Here is the import_favorites.cmd:@echo offDEL /s /q /f "%userprofile%\favorites\*.*"xcopy /y /e %systemdrive%\install\favorites\*.* "%userprofile%\favorites\"Can someone tell me why my favorites doesn't get copied over?Also, here is another problem. As you can see, I'm making an unattended installation of office 2k3. I also copied all the .pst over in import_outlook.cmd. But now, what I would like is to backup the email accounts settings so it install itself when I do the installation. Anyway to do this?Tks Link to comment Share on other sites More sharing options...
EliasXP Posted February 2, 2005 Share Posted February 2, 2005 Nobody knows Link to comment Share on other sites More sharing options...
Rico.JohnnY Posted February 2, 2005 Share Posted February 2, 2005 http://www.backsettings.com/outlook-backup.htmluse the above tool to backup your account. Then make a SFX using WinRAR Link to comment Share on other sites More sharing options...
JoeMSFN Posted February 18, 2005 Share Posted February 18, 2005 Perhaps when you do xcopy /y /e %systemdrive%\install\favorites\*.* "%userprofile%\favorites\" %userprofile% isn't set properly yet? One thing might be to include ina .cmd file that you KNOW gets executed, is echo "*%userprofile%*" > c:\userdat.txt or other suitable file in some location, and see what that var actually equates too. (be sure to use quotes or *s at the beginning and end of the variable, so you know if it's empty or not...Perhaps checking errorlevels of the xcopy command might help... also look into the following additional switches.... /e /s /c /i /h /k /vI use those ALL the time... (hopefully their available at that stage of the install)..also maybe put quotes around %systemdrive%\install\favorites\*.* in your xcopy statement....? durring install maybe the spaces in the .url files are causing the xcopy to choke? if your favorites don't change very often, perhaps include them in your winnt.sif for example.[Branding]BrandIEUsingUnattended = Yes[URL]Home_Page=about:blank[FavoritesEx]Title1 = "Microsoft GDI+ Detection Tool - September 14, 2004 - KB873374.url"URL1 = "http://support.microsoft.com/?kbid=873374"This has the added benefit of specifying the home page as well!! Link to comment Share on other sites More sharing options...
Martin Zugec Posted February 18, 2005 Share Posted February 18, 2005 I think better solution is to use USMT as I do... The problem with your script is the value of variable - u must use %%userprofile%% instead of %userprofile% Link to comment Share on other sites More sharing options...
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