MSFN Forum: Favorites and Outlook Prob - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Favorites and Outlook Prob Rate Topic: -----

#1 User is offline   nodiaque 

  • Code Master
  • Pip
  • Group: Members
  • Posts: 98
  • Joined: 21-July 04

Posted 01 February 2005 - 11:42 AM

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


#2 User is offline   EliasXP 

  • Member
  • PipPip
  • Group: Members
  • Posts: 135
  • Joined: 15-January 05

Posted 02 February 2005 - 09:42 AM

Nobody knows

#3 User is offline   Rico.JohnnY 

  • Member
  • PipPip
  • Group: Members
  • Posts: 242
  • Joined: 02-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 February 2005 - 10:05 AM

http://www.backsetti...ook-backup.html

use the above tool to backup your account. Then make a SFX using WinRAR

#4 User is offline   JoeMSFN 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 28-September 04

Posted 18 February 2005 - 03:30 AM

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!!

#5 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 18 February 2005 - 03:42 AM

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%

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy