Jump to content

Favorites and Outlook Prob


Recommended Posts

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "WINRAR 3.42" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\WinRAR\wrar342.exe /s" /f
REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\WinRAR\register.reg" /f

REG ADD %KEY%\008 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\install\Applications\wmp\MP10Setup.exe /q" /f

REG ADD %KEY%\010 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\MSN\MSN_Messenger_6.2.0137.msi /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\MSN\register.reg /qn" /f

REG ADD %KEY%\011 /VE /D "MSN Plus 3.25" /f
REG ADD %KEY%\011 /V 1 /D "%systemdrive%\install\Applications\MSNPLUS\MsgPlus-325.exe /silentinstallnosponsor" /f
REG ADD %KEY%\011 /V 2 /D "pskill msnmsgr.exe" /f

REG ADD %KEY%\045 /VE /D "Nero Burning ROM 6.6.0.6" /f
REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\Applications\Nero\nero6606.exe /silent /noreboot" /f

REG ADD %KEY%\050 /VE /D "Sun Java JRE 1.5.0-01" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\SunJava\jre-1_5_0_01-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\055 /VE /D "Spybot Search && Destroy 1.3" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\Spybot\spybotsd13.exe /verysilent" /f

REG ADD %KEY%\060 /VE /D "Azureus 2.2.0.2" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\Azureus\Azureus_2.2.0.2.exe /S" /f

REG ADD %KEY%\080 /VE /D "MicroSoft AntiSpyware Beta 1" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\Msanti\MicrosoftAntiSpyware.msi /qb-! REBOOT=ReallySuppress" /f
REG ADD %KEY%\080 /V 2 /D "\"%ProgramFiles%\Microsoft AntiSpyware\gcasDtServ.exe\" /regserver" /f

REG ADD %KEY%\085 /VE /D "Microsoft Office 2003 Pro" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\Tools\install.exe XPSP2_CD2 \copy_files.cmd \copy_files.cmd" /f

REG ADD %KEY%\090 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\090 /V 1 /D "REGEDIT /S %systemdrive%\install\newtweaks.reg" /f

REG ADD %KEY%\091 /VE /D "Importing Favorites" /f
REG ADD %KEY$\091 /V 1 /D "%systemdrive%\install\import_favorites.cmd" /f

REG ADD %KEY%\092 /VE /D "Importing Azureus Configuration" /f
REG ADD %KEY%\092 /V 1 /D "%systemdrive%\install\import_azureus.cmd" /f

REG ADD %KEY%\093 /VE /D "Importing Outlook Configuration" /f
REG ADD %KEY%\093 /V 1 /D "%systemdrive%\install\import_outlook.cmd" /f

REG ADD %KEY%\094 /VE /D "Importing Ventrilo Configuration" /f
REG ADD %KEY%\094 /V 1 /D "%systemdrive%\install\import_ventrilo.cmd" /f

REG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT

Since it wasn't working for many of them, I started using a cmd filesl. Here is the import_favorites.cmd:

@echo off

DEL /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


  • 3 weeks later...

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 /v

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...