Jump to content

wanna default program folder on D:\


Recommended Posts

Posted

yo,

iam using C:\ only for Windows XP and F:\ is my hidden Partition..there r the BootFiles for XP and D:\ for my Programs...

I wanna Install the Programs default on D:\Program Files...

but how can i add this info to the winnt.sif ??

i searched the board but find nuttin :D

iam using a SATA HDD

PS.: hope this is english enough :D iam not a english guy :)

edit: and i want the PageFile on D:\ 1536 - 3072 MB

here r my batchfiles :rolleyes:

mainbatch.cmd

CLS

@echo off

ECHO.

ECHO Applying Registry Tweaks...

REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.

ECHO Removing Wallpapers...

DEL "C:\*.bmp"

ECHO.

ECHO Removing useless shortcuts...

DEL "C:\Dokumente und Einstellungen\All Users\Startmenü\Windows Update.lnk"

DEL "C:\Dokumente und Einstellungen\All Users\Startmenü\Programmzugriff und -standards.lnk"

DEL "C:\Dokumente und Einstellungen\All Users\StartMenü\Windows-Katalog.lnk"

ECHO.

ECHO Removing Screensavers...

DEL "C:\system32\dllcache\scrnsave.scr"

DEL "C:\system32\dllcache\ss3dfo.scr"

DEL "C:\system32\dllcache\ssbezier.scr"

DEL "C:\system32\dllcache\ssflwbox.scr"

DEL "C:\system32\dllcache\ssmarque.scr"

DEL "C:\system32\dllcache\ssmypics.scr"

DEL "C:\system32\dllcache\ssmyst.scr"

DEL "C:\system32\dllcache\sspipes.scr"

DEL "C:\system32\dllcache\ssstars.scr"

DEL "C:\system32\dllcache\sstext3d.scr"

DEL "C:\system32\scrnsave.scr"

DEL "C:\system32\ss3dfo.scr"

DEL "C:\system32\ssbezier.scr"

DEL "C:\system32\ssflwbox.scr"

DEL "C:\system32\ssmarque.scr"

DEL "C:\system32\ssmypics.scr"

DEL "C:\system32\ssmyst.scr"

DEL "C:\system32\sspipes.scr"

DEL "C:\system32\ssstars.scr"

DEL "C:\system32\sstext3d.scr"

ECHO.

ECHO Installing Windows Script 5.6

start /wait %systemdrive%\install\js56nde.exe /Q:A /R:N

ECHO.

ECHO Installing Microsoft VM

start /wait %systemdrive%\install\msjavwu.exe /Q:A /R:N

ECHO.

ECHO Installing Windows Script 5.6

start /wait %systemdrive%\install\vbs56nde.exe /Q:A /R:N

ECHO.

ECHO Installing DirectX 9.0b

start /wait \%systemdrive%\install\DirectX9\dxsetup.exe /opk

ECHO.

ECHO Copying patched UXTheme.dll...

REN C:\System32\dllcache\uxtheme.dll uxtheme.old

COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "C:\System32\dllcache\"

REN C:\System32\uxtheme.dll uxtheme.old

COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "C:\System32\"

hotfixes.cmd

CLS

@echo off

ECHO.

ECHO Installing Windows Update Hotfixes

ECHO.

ECHO Windows XP Professional Unchecked Buffer in Windows Help Facility Could Enable Code Execution...

start /wait %systemdrive%\Hotfixes\Q323255.exe /Q /M /Z

ECHO.

ECHO Installing Q327979...

start /wait %systemdrive%\Hotfixes\Q327979.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Flaw in Windows WM_TIMER Message Handling Could Enable Privilege Elevation...

start /wait %systemdrive%\Hotfixes\Q328310.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in File Decompression Functions Could Lead to Code Execution...

start /wait %systemdrive%\Hotfixes\Q329048.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Certificate Validation Flaw Could Enable Identity Spoofing...

start /wait %systemdrive%\Hotfixes\Q329115.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Flaw in SMB Signing Could Enable Group Policy to be Modified...

start /wait %systemdrive%\Hotfixes\Q329170.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in Windows Shell Could Enable System Compromise...

start /wait %systemdrive%\Hotfixes\Q329390.exe /Q /M /Z

ECHO.

ECHO Installing Q329441...

start /wait %systemdrive%\Hotfixes\Q329441.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in PPTP Implementation Could Enable Denial of Service Attacks...

start /wait %systemdrive%\Hotfixes\Q329834.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Flaw in RPC Endpoint Mapper Could Allow Denial of Service Attacks...

start /wait %systemdrive%\Hotfixes\Q331953.exe /Q /M /Z

ECHO.

ECHO Installing Q810565...

start /wait %systemdrive%\Hotfixes\Q810565.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in Windows Redirector Could Allow Privilege Elevation...

start /wait %systemdrive%\Hotfixes\Q810577.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in Locator Service Could Lead to Code Execution...

start /wait %systemdrive%\Hotfixes\Q810833.exe /Q /M /Z

ECHO.

ECHO Installing Q811630...

start /wait %systemdrive%\Hotfixes\Q811630.exe /Q /M /Z

ECHO.

ECHO Installing Q814033...

start /wait %systemdrive%\Hotfixes\Q814033.exe /Q /M /Z

ECHO.

ECHO Installing Q814995...

start /wait %systemdrive%\Hotfixes\Q814995.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Unchecked Buffer in Windows Component Could Cause Web Server Compromise...

start /wait %systemdrive%\Hotfixes\Q815021.exe /Q /M /Z

ECHO.

ECHO Installing Q815485...

start /wait %systemdrive%\Hotfixes\Q815485.exe /Q /M /Z

ECHO.

ECHO Installing Q817287...

start /wait %systemdrive%\Hotfixes\Q817287.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Buffer Overrun in Windows Kernel Message Handling Could Lead to Elevated Privileges...

start /wait %systemdrive%\Hotfixes\Q811493.exe /Q /M /Z

ECHO.

ECHO Installing Q815411...

start /wait %systemdrive%\Hotfixes\Q815411.exe /Q /M /Z

ECHO.

ECHO Windows XP Professional Buffer Overrun in Windows Could Lead to Data Corruption...

start /wait %systemdrive%\Hotfixes\Q817606.exe /Q /M /Z

ECHO.

ECHO Installing WinXP...

start /wait %systemdrive%\Hotfixes\WinXP.exe /Q /M /Z

ECHO.

ECHO Installing WinXP1...

start /wait %systemdrive%\Hotfixes\WinXP1.exe /Q /M /Z

ECHO.

ECHO Installing WinXP2...

start /wait %systemdrive%\Hotfixes\WinXP2.exe /Q /M /Z

ECHO.

ECHO Installing WinXP3...

start /wait %systemdrive%\Hotfixes\WinXP3.exe /Q /M /Z

ECHO.

ECHO Installing WinXP4...

start /wait %systemdrive%\Hotfixes\WinXP4.exe /Q /M /Z

ECHO.

ECHO Installing hu1002...

start /wait %systemdrive%\Hotfixes\hu1002.exe /Q:A /R:N

ECHO.

ECHO Internet Explorer 6 Cumulative Patch for Outlook Express...

start /wait %systemdrive%\Hotfixes\q330994.exe /Q:A /R:N

ECHO.

ECHO Internet Explorer 6 Cumulative Patch for Internet Explorer...

start /wait %systemdrive%\Hotfixes\q818529.exe /Q:A /R:N

ECHO.

ECHO Installing Q817787...

start /wait %systemdrive%\Hotfixes\Q817787.exe /Q:A /R:N

ECHO.

ECHO Installing Q819639...

start /wait %systemdrive%\Hotfixes\Q819639.exe /Q:A /R:N

ECHO.

ECHO Windows XP Professional Buffer Overrun In RPC Interface Could Allow Code Execution...

start /wait %systemdrive%\Hotfixes\KB823980.exe /Q /M /Z

ECHO.

ECHO Installing Security Update for Microsoft Data Access Components...

start /wait %systemdrive%\Hotfixes\Q823718.exe /Q /C:"dahotfix /Q /N"

ECHO.

ECHO Installing KB825116...

start /wait %systemdrive%\Hotfixes\KB825116.exe /Q /M /Z

Applications.cmd

CLS

@echo off

ECHO.

ECHO Installing Adobe Reader 6

ECHO Please wait...

start /wait %systemdrive%\Applications\AdobeReader6\AR6.msi /QB

ECHO.

ECHO Installing Nero Burning ROM v6.0.0.19

ECHO Please wait...

start /wait %systemdrive%\Applications\Nero6\Nero60019.exe /silent /noreboot

ECHO.

ECHO Registering Nero Burning ROM...

REGEDIT /S %systemdrive%\Applications\Nero6\register.reg

ECHO.

ECHO Installing WinRAR 3.20

ECHO Please wait...

start /wait %systemdrive%\Applications\WinRAR\wrar320d.exe /silent

ECHO.

ECHO Installing DivX 5.1

ECHO Please wait...

start /wait %systemdrive%\Applications\DivX\DivXPro51Bundle.exe /s

ECHO Installing Cyberlink PowerDVD 5.0

ECHO Please wait...

start /wait %systemdrive%\Applications\PowerDVD5\Setup.exe -s %systemdrive%\install\Applications\PowerDVD5\setup.iss

ECHO.

ECHO Installing Windows Media Player 9

start /wait %systemdrive%\Applications\MediaPlayer9\mpsetup.exe /Q:A /R:N

ECHO.

ECHO Installing Windows Media Player Update

start /wait %systemdrive%\Applications\MediaPlayer9\KB817787.exe /Q:A /R:N

ECHO.

ECHO Installing Microsoft .NET Framework 1.1

start /wait %systemdrive%\Applications\NetFramework\netfx.msi /QB

ECHO.

ECHO Installing Microsoft .NET Framework Language Pack

start /wait %systemdrive%\Applications\NetFramework\langpack.exe /Q:A /R:N

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q C:\install

RD /S /Q C:\Drivers

RD /S /Q C:\Applications


Posted

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:\\Program Files"

there ya go...

Posted

but before winxp do the reghacks, is the IE,WMP,... all in C:\ installed o_O

Posted

u mean those files?

HIVECLS.INF

HIVEDEF.INF

HIVESFT.INF

HIVESYS.INF

HIVEUSD.INF

here i must add [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

"ProgramFilesDir"="D:\\Program Files" ??

and other questions... :)

the D: Drive isnt formatted just the C:\

i must format it with PQ Magic or will be this automatic formatted ?

and i have 6 HDD´s... when i disconnect all the other HDD´s and connect it after the WinXP install i think the Drive Letters will be changed or? so maybe the D:\ Drive will be changed :rolleyes:

Posted
u mean those files?

HIVECLS.INF

HIVEDEF.INF

HIVESFT.INF

HIVESYS.INF

HIVEUSD.INF

here i must add [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

"ProgramFilesDir"="D:\\Program Files"  ??

and other questions... :)

the D: Drive isnt formatted just the C:\

i must format it with PQ Magic or will be this automatic formatted ?

and i have 6 HDD´s... when i disconnect all the other HDD´s and connect it after the WinXP install i think the Drive Letters will be changed or? so maybe the D:\ Drive will be changed :rolleyes:

to add it to the hive files it needs to be in a different format e.g. HKCR,"SOFTWARE\Microsoft\Windows\CurrentVersion",""," something like that.

If the drive is not formated then it will not work.

Posted

dave not sure if its as straight forward as i first thought for redirecting folders in hives.. im sure it has something to do with when u create a new user and the %USERPROFILE% variable

Posted
dave not sure if its as straight forward as i first thought for redirecting folders in hives.. im sure it has something to do with when u create a new user and the %USERPROFILE% variable

i think they go under the admin default account thats why you still need reg tweaks for user settings unless you just use the admin account that windows makes.

Posted

HKCR,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir",D:\Program Files

is this correct??

HKCR = HKEY_Current_User or??

i think i must add it to HKLM or ? o_O

and i heared its not good to make a NTFS partitions with PQ Magic for WinXP Installation ??!!

Posted

i added the Line:

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir",D:\Program Files

and treid to install wit vmware...

but it says the Line 7 is not correct :)

  • 3 weeks later...
Posted

@b***h

Ok, I'm searching for a solution for changing the programm path, too!

Pls. tell me, which HIVE*.INF from the five you have modified?

I think you must insert in the hive*.inf with following reg entry:

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\"ProgramFilesDir",0x00000002,"D:\Program Files"

I think you must these only add to the hivesft.inf, but i don't know it's exactly.

Maybe you can try it with VM Ware and post the result here!

Perhaps you have found another right Solution, so pls. post it here too!

Regards Lucky-Striker

Posted

The way you can do what you want is by modifying your unattend.txt/winnt.sif. Modify the following lines as necessary.

[unattended]

ProgramFilesDir=d:\Programs

CommonProgramFilesDir=d:\Programs\Common

Without specifying those lines, XP will default to \Program Files and \Program Files\Common Files respectively, where \ represents the root of the partition onto which you are installing Windows.

Note that the [unattended] section contains items that are applicable during text-mode setup, so you will need to have access to the desired target partition at that time. This may or may not be true in your case.

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