Topic: WinNTSetup  (Read 78764 times)

Re: WinNTSetup
« Reply #160 on: June 19, 2018, 04:15:45 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Hmm, I can not reproduce your problem with lowercase letters, but I will uppercase them in next version.

About format option, yeah I thinking about that as a command line option.
Maybe:

-format:syspart and -format:tempdrive

Re: WinNTSetup
« Reply #161 on: June 19, 2018, 04:46:19 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
If you use the cmd I uploaded to prepare disk and change the values to lowercase and run it you will see the error after format.

For format you need one style for MBR(1part is fine, second not needed but can be used for recovery) and another for GPT(needs fat32 boot part, and ntfs, winRE not needed but 3rd partition can be used fo recovery)

So my CMD first asks MBR or GPT? then asks which USB? Then does everything else automatically including importing the drive letters to WinNT for boot and system.

If you had a format option that was that easy you would make a lot of people happy

For me the difficut part is using diskpart without cmd, I know autoit3 can do it but I dont know how yet(testing), so what I do is very ugly with CMD...

You could even allow adding PE ISO's or WinRE.wim as recovery partition later on if you get into formatting..

Its already awesome so no matter what you do... Thanks
« Last Edit: June 19, 2018, 05:01:07 PM by bob.omb »

Re: WinNTSetup
« Reply #162 on: June 22, 2018, 10:40:43 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
http://jfx.cwcodes.net/WinNTSetup/Beta/WinNTSetup3.rar

- fixed lowercase Ini file options
- added -format:syspart and -format:tempdrive commandline options

-format:syspart will keep the filesystem
-format:tempdrive will always use NTFS

For more complete partitioning use the Tools\diskpart scripts (command line diskpart:{script name})

Re: WinNTSetup
« Reply #163 on: June 22, 2018, 11:00:54 AM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Sweet! Thanks..  :thumbsup: I will put something together this weekend that utilizes this.. and share if it turns out good..
« Last Edit: June 22, 2018, 09:36:19 PM by bob.omb »

Re: WinNTSetup
« Reply #164 on: August 16, 2018, 08:10:54 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
JFX has released a new version of WinNTSetup, version 3.9.1

It can be downloaded here: http://jfx.cwcodes.net/WinNTSetup/Release/WinNTSetup3.rar
« Last Edit: August 16, 2018, 08:12:10 PM by ChangeMe;) »

Re: WinNTSetup
« Reply #165 on: August 18, 2018, 12:45:16 PM »

nttwqz

  • Apprentice
  • *
  • Date Registered: Nov 2017
  • Posts: 9
The download link was killed by Avast and also reported to Win32:Evo-gen[Susp] when opened. This issue was not available in previous versions.

Re: WinNTSetup
« Reply #166 on: August 19, 2018, 02:25:10 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Disable Your Avast Software........

Clearly we use software here that is not very common to your everyday PC user...
So some of the programs we use may not have been White Listed... (Due to being a very uncommonly used file)

Re: WinNTSetup
« Reply #167 on: August 24, 2018, 03:50:18 PM »

nttwqz

  • Apprentice
  • *
  • Date Registered: Nov 2017
  • Posts: 9
After reporting and updating the Avast, the problem was resolved in a few days.

Re: WinNTSetup
« Reply #168 on: August 24, 2018, 08:37:55 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Thanks, that is helpful for everyone  :thumbsup:

Re: WinNTSetup
« Reply #169 on: August 29, 2018, 12:26:52 PM »

freesoft00

  • Jr. Chef
  • **
  • Date Registered: Mar 2016
  • Posts: 37
Can the red box be adjusted longer, and the current layout has a lot of information that cannot be fully displayed.

Re: WinNTSetup
« Reply #170 on: August 29, 2018, 12:34:46 PM »

freesoft00

  • Jr. Chef
  • **
  • Date Registered: Mar 2016
  • Posts: 37
The dialog box is adjusted to the following

Re: WinNTSetup
« Reply #171 on: August 29, 2018, 03:46:27 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Well that actually looks ugly :huh:

I really don't want to change the layout, but maybe this new beta gives you some more space.
 
http://jfx.cwcodes.net/WinNTSetup/Beta/WinNTSetup3.rar

BTW: If you add the Build version "1803" your self to the wim description, you may want to delete the file "Tools\Win10Builds.ini".


Re: WinNTSetup
« Reply #172 on: August 30, 2018, 11:12:08 AM »

freesoft00

  • Jr. Chef
  • **
  • Date Registered: Mar 2016
  • Posts: 37
can be displayed correctly. If there is no other problem fix, I think I can change from beta version to stable version.

Re: WinNTSetup
« Reply #173 on: October 03, 2018, 07:50:12 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Final version released.
The x86 version still uses older wimgapi.dll, do not update it yourself.

Re: WinNTSetup
« Reply #174 on: January 29, 2019, 02:45:37 PM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
Here is my take on Bobs amazing PrepareDiskNT.cmd

Code: [Select]
@ECHO OFF
CLS
ECHO -----------------------------------------------------------
ECHO Checking to see if the PC is booted in BIOS or UEFI mode.
wpeutil UpdateBootInfo
for /f "tokens=2* delims= " %%A in ('reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType') DO SET Firmware=%%B
ECHO            Note: delims is a TAB followed by a space.
IF x%Firmware%==x ECHO ERROR: Can't figure out which firmware we're on.
IF x%Firmware%==x ECHO        Common fix: In the command above:
IF x%Firmware%==x ECHO             for /f "tokens=2* delims= "
IF x%Firmware%==x ECHO        ...replace the spaces with a TAB character followed by a space.
IF x%Firmware%==x GOTO END
IF %Firmware%==0x1 ECHO The PC is booted in BIOS mode.
IF %Firmware%==0x2 ECHO The PC is booted in UEFI mode.
ECHO -----------------------------------------------------------
CD %~dp0
IF EXIST GPT.ini DEL GPT.ini
IF EXIST MBR.ini DEL MBR.ini
IF EXIST tempgpt.ini DEL tempgpt.ini
IF EXIST tempmbr.ini DEL tempmbr.ini
TITLE Prepare Disk for WinNTSetup3
:PRIVILEGECHECK
NET SESSION >nul 2>&1
IF %errorlevel% == 0 (
GOTO SELECTTYPE
) else (
GOTO GETPRIVILEGE
)
:NOPRIVILEGE
ECHO        Prepare Hard Disk for WinNTSetup3 GPT (UEFI) or MBR (BIOS)
ECHO -----------------------------------------------------------
ECHO           Warning, Elevated Privilege is Required
ECHO.
ECHO                 RE-OPEN AS AN ADMINISTRATOR
ECHO                  THE PROGRAM WILL NOW EXIT
ECHO.
ECHO -----------------------------------------------------------
ECHO.
PAUSE
EXIT
:GETPRIVILEGE
SET "params=%*"
SETLOCAL EnableDelayedExpansion
CD /d "%~dp0" && ( IF EXIST "%temp%\getadmin.vbs" DEL "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>NUL 2>NUL || (  ECHO Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k CD ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && EXIT /B )
GOTO NOPRIVILEGE
:SELECTTYPE
ECHO -----------------------------------------------------------
ECHO.
ECHO       Prepare Hard Disk for WinNTSetup3 GPT (UEFI) or MBR (BIOS)
ECHO.
ECHO       Please note: Only Windows x64 Will work with GPT
ECHO.
ECHO -----------------------------------------------------------
ECHO.
CHOICE /C MG /M "Are you setting up for MBR or GPT "
IF %ERRORLEVEL% == 1 GOTO INITMBR
IF %ERRORLEVEL% == 2 GOTO INITGPT
ECHO.
ECHO Invalid selection! Please choose a valid selection.
ECHO.
PAUSE
GOTO SELECTTYPE
EXIT
:INITMBR
CLS
ECHO Prepare Hard Disk for WinNTSetup3 MBR (BIOS)
ECHO -----------------------------------------------------------
ECHO.
ECHO list disk >> list.txt
diskpart /s list.txt
DEL list.txt>nul
ECHO.
SET /p disk="Which disk number would you like to prepare? (e.g. 0): "
IF [%DISK%] == [] GOTO INITMBR
ECHO.
ECHO --WARNING-- This will FORMAT the selected disk and ERASE ALL DATA
ECHO.
ECHO You selected disk ---^> %disk%
ECHO.
CHOICE /C YN /M "Is this correct "
IF %ERRORLEVEL% == 1 GOTO INITMBR2
CLS
ECHO Preperation Aborted, No changes have been made...
ECHO.
PAUSE
EXIT
:INITMBR2
SET BOOTDRV="S"
SET DATADRV="W"
ECHO sel dis %disk% >> initmbr.txt
ECHO clean >> initmbr.txt
ECHO convert mbr >> initmbr.txt
rem == 1. System partition ======================
ECHO create partition primary size=350 >> initmbr.txt
ECHO format quick fs=ntfs label="System" >> initmbr.txt
ECHO assign letter=%BOOTDRV% >> initmbr.txt
ECHO active >> initmbr.txt
rem == 2. Windows partition =====================
rem ==    a. Create the Windows partition =======
ECHO create partition primary >> initmbr.txt
rem ==    b. Create space for the recovery image
ECHO shrink minimum=500 >> initmbr.txt
rem          ** Note, adjust the size to match
rem             the size of the recovery image.
rem ==    c. Prepare the Windows partition ======
ECHO format quick fs=ntfs label="Windows" >> initmbr.txt
ECHO assign letter %DATADRV% >> initmbr.txt
rem == 3. Recovery image partition ==============
ECHO create partition primary >> initmbr.txt
ECHO format quick fs=ntfs label="Recovery image" >> initmbr.txt
ECHO assign letter="R" >> initmbr.txt
ECHO set id=27 >> initmbr.txt
ECHO exit >> initmbr.txt
:RUNMBR
CLS
diskpart /s initmbr.txt
DEL initmbr.txt >nul
ECHO.
ECHO This drive is now prepared for WinNTSetup3 - MBR (BIOS)
ECHO.
ECHO The following drive letters have been assigned, and
ECHO will be automatically loaded into WinNTSetup3
ECHO.
ECHO Boot Drive----------: %BOOTDRV%
ECHO Installation Drive--: %DATADRV%
ECHO.
PAUSE
ECHO.
ECHO Please wait while WinNTSetup3 loads...
CD %~dp0
CD ..
IF EXIST WinNTSetup_x86.exe (
    START WinNTSetup_x86.exe /cfg:prep\template.ini
) ELSE (
    START WinNTSetup_x64.exe /cfg:prep\template.ini
)
GOTO WINRE
:INITGPT
CLS
ECHO Prepare Hard Disk for WinNTSetup3 GPT (UEFI)
ECHO -----------------------------------------------------------
ECHO.
ECHO list disk >> list.txt
diskpart /s list.txt
DEL list.txt>nul
ECHO.
SET /p disk="Which disk number would you like to prepare? (e.g. 0): "
IF [%disk%] == [] GOTO INITGPT
ECHO.
ECHO --WARNING-- This will FORMAT the selected disk and ERASE ALL DATA
ECHO.
ECHO You selected disk ---^> %disk%
ECHO.
CHOICE /C YN /M "Is this correct "
IF %ERRORLEVEL% == 1 GOTO INITGPT2
CLS
ECHO Preperation Aborted, No changes have been made...
ECHO.
PAUSE
EXIT
:INITGPT2
SET BOOTDRV="S"
SET DATADRV="W"
ECHO select disk %disk% >> initgpt.txt
ECHO clean >> initgpt.txt
ECHO convert gpt >> initgpt.txt
rem == 1. System partition =========================
ECHO cre par efi size=100 >> initgpt.txt
rem    ** NOTE: For Advanced Format 4Kn drives,
rem               change this value to size = 260 **
ECHO for quick fs=fat32 label="System" >> initgpt.txt
ECHO assign letter %BOOTDRV% >> initgpt.txt
rem == 2. Microsoft Reserved (MSR) partition =======
ECHO cre par msr size=16 >> initgpt.txt
rem == 3. Windows partition ========================
rem ==    a. Create the Windows partition ==========
ECHO cre par pri >> initgpt.txt
rem ==    b. Create space for the recovery tools ===
ECHO shrink minimum=500 >> initgpt.txt
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools
rem                (winre.wim)                    **
rem ==    c. Prepare the Windows partition =========
ECHO for quick fs=ntfs label="Windows" >> initgpt.txt
ECHO assign letter %DATADRV% >> initgpt.txt
rem === 4. Recovery partition ======================
ECHO cre par pri >> initgpt.txt
ECHO for quick fs=ntfs label="Recovery" >> initgpt.txt
ECHO assign letter="R" >> initgpt.txt
ECHO set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" >> initgpt.txt
ECHO gpt attributes=0x8000000000000001 >> initgpt.txt
ECHO exit >> initgpt.txt
:RUNGPT
CLS
diskpart /s initgpt.txt
DEL initgpt.txt >nul
ECHO.
ECHO This drive is now prepared for WinNTSetup3 - GPT (UEFI)
ECHO.
ECHO The following drive letters have been assigned, and
ECHO will be automatically loaded into WinNTSetup3
ECHO.
ECHO Boot Drive----------: %BOOTDRV%
ECHO Installation Drive--: %DATADRV%
ECHO.
PAUSE
ECHO.
ECHO Please wait while WinNTSetup3 loads...
CD %~dp0
CD ..
IF EXIST WinNTSetup_x86.exe (
    START WinNTSetup_x86.exe /cfg:prep\template.ini
) ELSE (
    START WinNTSetup_x64.exe /cfg:prep\template.ini
)
CLS
:WINRE
ECHO Configure Windows Recovery Enviroment
ECHO -----------------------------------------------------------
ECHO.
CHOICE /C YN /M "Setup Windows Recovery Enviroment"
IF %ERRORLEVEL% == 1 GOTO INITWINRE
CLS
ECHO Configuration Aborted, No changes have been made...
ECHO.
PAUSE
EXIT
:INITWINRE
ECHO Finding the Windows Drive
ECHO -----------------------------------------------------------
@IF EXIST C:\Windows SET windowsdrive=C:\
@IF EXIST D:\Windows SET windowsdrive=D:\
@IF EXIST E:\Windows SET windowsdrive=E:\
@IF EXIST W:\Windows SET windowsdrive=W:\
ECHO The Windows drive is %windowsdrive%
ECHO.
md R:\Recovery\WindowsRE
ECHO.
ECHO -----------------------------------------------------------
ECHO Finding Winre.wim
@IF EXIST %windowsdrive%Recovery\WindowsRE\winre.wim SET recoveryfolder=%windowsdrive%Recovery\WindowsRE\
@IF EXIST %windowsdrive%Windows\System32\Recovery\winre.wim SET recoveryfolder=%windowsdrive%Windows\System32\Recovery\
ECHO -----------------------------------------------------------
ECHO copying Winre.wim
ECHO.
xcopy /h %recoveryfolder%Winre.wim R:\Recovery\WindowsRE\
ECHO -----------------------------------------------------------
ECHO  Register the location of the recovery tools
%windowsdrive%Windows\System32\Reagentc /Setreimage /Path R:\Recovery\WindowsRE /Target %windowsdrive%Windows
ECHO.
ECHO Verify the configuration status of the images.
%windowsdrive%Windows\System32\Reagentc /Info /Target %windowsdrive%Windows
ECHO   (Note: Windows RE status may appear as Disabled, this is OK.)
ECHO -----------------------------------------------------------
CHOICE /C YN /M "Would You like To Exit"
:END

Re: WinNTSetup
« Reply #175 on: January 29, 2019, 03:39:51 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
JFX is the amazing one here...  :embarrassed:

The prep cmd does a great job of getting things ready but WinNTSetup is where the real magic happens.  :thumbsup:

Re: WinNTSetup
« Reply #176 on: January 29, 2019, 04:39:29 PM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
JFX is the amazing one here...  :embarrassed:

The prep cmd does a great job of getting things ready but WinNTSetup is where the real magic happens.  :thumbsup:

You are 1000% correct. Thank you JFX. Without you where would we be!

Re: WinNTSetup
« Reply #177 on: September 01, 2019, 02:03:01 PM »

nttwqz

  • Apprentice
  • *
  • Date Registered: Nov 2017
  • Posts: 9
Updated Simplified Chinese language file

Re: WinNTSetup
« Reply #178 on: September 03, 2019, 03:52:09 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Added to Beta 4  :thumbsup:

 

Powered by EzPortal