Jump to content

New tweaks 2 add to unattended setup?


Recommended Posts

Please reply to these:

01. I have made these files:

RunWPI.cmd which has this

cmdow @ /HID
@Echo Off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\cd.111 SET CDROM=%%i:

SET PP=%cdrom%\WPI

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

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

REG ADD %KEY%\005 /VE /D "WPI" /f
REG ADD %KEY%\005 /V 1 /D "%PP%\WPI.hta" /f

REG ADD %KEY%\110 /VE /D "Cleaning Up" /f
REG ADD %KEY%\110 /V 1 /D "%PP%\cleanup.cmd" /f

EXIT

and

cleanup.cmd which has this

cmdow @ /HID
shutdown.exe -r -f -t 120 -c "Windows XP will now restart in 2 minutes..."
net user aspnet /delete

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"

DEL "%UserProfile%\Desktop\*.lnk"
DEL "%AllUsersProfile%\Desktop\*.lnk"
DEL "%AllUsersProfile%\Desktop\*.htm"

RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\Install\

EXIT

Now i wanna ask u,

How to add shortcut of "X:\123.exe" to desktop and start menu?

Secondly, Tell me how to integrate "SPTD" before starting of WPI so tat i don't have to restart pc before installation of softwares with WPI.

Thirdly, tell me how to add a program to run in startup and also how to remove that.

thanks in advance

Link to comment
Share on other sites


for the fisrt, you can or even downloading NirCmd, place under your &OEM&\$$\system32 on your windows xp unattended install, to place it under system folder so you can execute it from the command, and use its function "Shortcut" (see NirCmd.cfm for the complete instruction of how to use this funcition, it uses different variables than the MS command, like ~folder.destkop, ~folder.system).

OR you can make the shortcuts in your already installed system, copy them to $OEM$\$Docs\All Users\Desktop, AND to $OEM$\$Docs\All Users\Start Menu, so the install will copy them to the desktop and start menu fo all users on the next install unattended, or you can choose witch specyfic user will have those shortcuts.

for the segcond question, i really don´t know... sorry.

You can use msconfig for that, and use regshot to see witch entries or files has been modified while you were using msconfig.exe to configure your startup programs. then make a backup o theses entires/files (i don´t really remeber WHAT exactly is modified, but i think it is by reg entries) and import it at setup part or copy the configured files (is they exist, i said, i don´t remember) to the right places via $OEM$s folder.

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