mraeryceos Posted May 29, 2006 Share Posted May 29, 2006 Has anyone already done this? - Made a custom setup.exe to replace the WinXP setup.exe? Perhaps done in C++ and something as simple as calling a batch file, that could, for instance, partition the drive, and THEN start the WinXP setup file. (thanks alextoft)Since the booting environment isn't exactly DOS, what batch file partitioning commands are available? I only know FDISK.[related]AFAIK, you can have problems accessing files in the "my documents" folders (when accessing from another system), because of NTFS built in permissions. So I use FAT32 to not have this happen.[/related] Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 29, 2006 Share Posted May 29, 2006 AFAIK, you can have problems accessing files in the "my documents" folders (when accessing from another system), because of NTFS built in permissions. So I use FAT32 to not have this happen.Yes but main thing is don't set that tweak that will copy the ACLs with the file's when you copy them somewhere. Did you know when copying to a CD/DVD since it's not NTFS it don't copy permissions.Did you know also that if you run into something like that all you need to do is use xcacls and it will fix the problem right up. Of course you have to use it in a way it will parse sub Folders.Been there done that and I'm sticking to NTFS. Link to comment Share on other sites More sharing options...
amit_talkin Posted May 29, 2006 Share Posted May 29, 2006 do u mean by this?http://www.msfn.org/board/index.php?showtopic=61989 Link to comment Share on other sites More sharing options...
mraeryceos Posted May 29, 2006 Author Share Posted May 29, 2006 (edited) MaxXPsoft (edit: I mean, amit_talkin): Not quite. Your link refers to GUI mode welcome screen hacks. GUI mode is only used when you start the cd on a running windows system.I think that's what GUI mode is... I remember reading something about "GUI mode setup" a long time ago, but don't know if this is what it refers to.I want to rename the WinXP setup.exe to something else, say winxp.exe, and put a setup.exe in its place that will call a batch file.In the batch file, I hope to do the partitioning and then call winxp.exe. Edited May 31, 2006 by mraeryceos Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 29, 2006 Share Posted May 29, 2006 I posted no link maybe amit_talkinI talked of ACLsBashrat does this with his BTS packs replacing the setup.exe. Maybe you need to look at what he's doing. There are programs will take a batch and turn it into an exe. Do a Google Link to comment Share on other sites More sharing options...
The Glimmerman Posted May 29, 2006 Share Posted May 29, 2006 I use this for my setup.Maybe this will get you where you want too go.The new setup.exe [NSIS installer]Name "Unattended XP - DVD © 2005 - Setup"!define SOURCE "E:\WXPFPP_EN - UNATTENDED DVD FILES\Setup Replacement"OutFile "${SOURCE}\SETUP.EXE"Icon "${SOURCE}\Setup.ico"VIAddVersionKey "FileDescription" "Windows NT Setup Executable"VIAddVersionKey "CompanyName" "Microsoft Corporation"VIProductVersion "5.1.2600.2180"VIAddVersionKey "ProductName" "Microsoft® Windows® Operating System"VIAddVersionKey "Internal Name" "SETUP.EXE"VIAddVersionKey "Original File name" "SETUP.EXE"VIAddVersionKey "Product Version" "5.1.2600.2180"VIAddVersionKey "LegalCopyright" "© Microsoft Corporation. All rights reserved."VIAddVersionKey "FileVersion" "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"SilentInstall silentFunction .onInit SetSilent silentFunctionEndSection "Installer"SetOverwrite onSetOutPath "$%SYSTEMDRIVE%\TEMP" File "${SOURCE}\SOURCE FILES\StartX.exe" Sleep 3000 ExecWait '"$%SYSTEMDRIVE%\TEMP\StartX.exe"'SectionEndSetup.exe will extract the file StartX.exe to %SYSTEMDRIVE%\TEMP and runs the File.StartX.exe is a compiled CMD file. This file will start an other executable which will decrypt and extracts temporary files that I need for the unattended setup later. The important thing to remember is that the process setup.exe (the fake one) doesn't terminate. This will end the setup of XP.Hope this will get you started.GlimBTW: XP can autopartition your disk trough winnt.sif. 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