06-22-2010 02:52 PM - edited 06-22-2010 02:53 PM
I got it working now :)
My problem was I didn't use a trailing \ after the folder containing the recovery disk files.
Needs to be Drive:\Folder\
Only other problem was for the license
%license%>C:\windowspe-x86\mount\Windows\Shell\V2i \licensekey.txt
Needs to be
%license%>%builddir%\mount\Windows\Shell\V2i \licensekey.txt
When the batch file paused to tell you to close all explorer windows, I minimised the command screen and copied a "portable" folder into the ISO directory. Then I closed the explorer window and let it continue and that folder full of portable apps ended up in the ISO.
I used your suggestion of "pstart portable" for a start menu and had it already configured to start the portable apps.
I can now manually browse to the portable folder and start the menu and launch all my apps from there.
Thanks
Dave
06-22-2010 04:55 PM
Good catch on the license line! I did not change it from when it was hard coded to one location. And that pause to close explorer is an undocumented feature to add whatever portable files you want to. You can change system32\winpeshl.ini to start whatever you want. If you put the files in the mount folder, they will end up inside of boot.wim. This means that if you change it, it will revert to how it was saved originally. I also changed the filesystem of the ISO file. It is now ISO9660 and UDF 1.5. This means you can use the Windows 7 USB/DVD Download Tool to make a bootable flashdrive. See this post for more information.
REM Batch file to build Ghost 15 SRD on WinPE 3.0 by redk9258 - June 22, 2010 REM Must run as administrator. Echo off CLS SET /p license= Enter your 16 digit license without dashes or spaces: CLS ECHO Enter the path to the Symantec SRD CD or folder SET /p srdsource= (for example... F:\ or D:\CUSTOM_SRD\): CLS SET /p waikdrive= Enter the drive letter where Windows AIK is installed (for example: C:\) CLS SET /p isoname= Enter a name for the ISO file (for example: Custom SRD): CLS ECHO Enter the path to the folder you want to build your ISO in SET /p builddir= (for example: C:\windowspe-x86): IF EXIST "%builddir%" ECHO "%builddir% already exists! Please delete it!" IF EXIST "%builddir%" PAUSE CD /D "%waikdrive%Program Files\Windows AIK\Tools\PETools" CALL pesetenv.cmd CALL copype.cmd x86 "%builddir%" COPY winpe.wim ISO\sources\boot.wim DISM /Mount-Wim /WimFile:ISO\sources\boot.wim /index:1 /MountDir:mount DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-hta_en-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-mdac_e n-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.ca b" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-script ing_en-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-wmi_en -us.cab" MD cdmount DISM /Mount-Wim /WimFile:%srdsource%sources\boot.wim /index:1 /MountDir:cdmount /readonly COPY cdmount\*.xml mount\*.xml COPY cdmount\Windows\System32\drivers\SmeUtil.sys mount\Windows\System32\drivers\SmeUtil.sys COPY cdmount\Windows\Fonts\COUR.TTF mount\Windows\Fonts\COUR.TTF COPY cdmount\Windows\Fonts\COURBD.TTF mount\Windows\Fonts\COURBD.TTF COPY cdmount\Windows\Fonts\COURBI.TTF mount\Windows\Fonts\COURBI.TTF COPY cdmount\Windows\Fonts\COURI.TTF mount\Windows\Fonts\COURI.TTF MD mount\windows\Shell ROBOCOPY /S cdmount\windows\Shell mount\windows\Shell COPY cdmount\windows\System32\Winpeshl.ini mount\windows\System32\Winpeshl.ini ECHO "%license%>%builddir%\mount\Windows\Shell\V2i\lice nsekey.txt" CLS ECHO ************************************************** * ECHO * Please close all open Explorer Windows so as to * ECHO * not interfere with unmounting the WIM files !! * ECHO ************************************************** * PAUSE DISM /Unmount-Wim /MountDir:cdmount /discard DISM /Unmount-Wim /MountDir:mount /commit MD ISOTEMP ROBOCOPY /S %srdsource% ISOTEMP ROBOCOPY /S ISO ISOTEMP RD ISO /S /Q REN ISOTEMP ISO OSCDIMG -l"%isoname%" -u1 -b"etfsboot.com" ISO "%isoname%.iso" EXPLORER /n,/e,%builddir% PAUSE
07-13-2010 08:12 PM
I had an error on the line that wrote the license key file to the v2i folder.
Here is a corrected batch file..
REM Batch file to build Ghost 15 SRD on WinPE 3.0 by redk9258 - July 13, 2010 REM Must run as administrator. Echo off CLS SET /p license= Enter your 16 digit license without dashes or spaces: CLS ECHO Enter the path to the Symantec SRD CD or folder SET /p srdsource= (for example... F:\ or D:\CUSTOM_SRD\): CLS SET /p waikdrive= Enter the drive letter where Windows AIK is installed (for example: C:\) CLS SET /p isoname= Enter a name for the ISO file (for example: Custom SRD): CLS ECHO Enter the path to the folder you want to build your ISO in SET /p builddir= (for example: C:\windowspe-x86): IF EXIST "%builddir%" ECHO "%builddir% already exists! Please delete it!" IF EXIST "%builddir%" PAUSE CD /D "%waikdrive%Program Files\Windows AIK\Tools\PETools" CALL pesetenv.cmd CALL copype.cmd x86 "%builddir%" COPY winpe.wim ISO\sources\boot.wim DISM /Mount-Wim /WimFile:ISO\sources\boot.wim /index:1 /MountDir:mount DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-hta_en-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-mdac_e n-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.ca b" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-script ing_en-us.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab" DISM /image:mount /Add-Package /PackagePath:"%waikdrive%Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-wmi_en -us.cab" MD cdmount DISM /Mount-Wim /WimFile:%srdsource%sources\boot.wim /index:1 /MountDir:cdmount /readonly COPY cdmount\*.xml mount\*.xml COPY cdmount\Windows\System32\drivers\SmeUtil.sys mount\Windows\System32\drivers\SmeUtil.sys COPY cdmount\Windows\Fonts\COUR.TTF mount\Windows\Fonts\COUR.TTF COPY cdmount\Windows\Fonts\COURBD.TTF mount\Windows\Fonts\COURBD.TTF COPY cdmount\Windows\Fonts\COURBI.TTF mount\Windows\Fonts\COURBI.TTF COPY cdmount\Windows\Fonts\COURI.TTF mount\Windows\Fonts\COURI.TTF MD mount\windows\Shell ROBOCOPY /S cdmount\windows\Shell mount\windows\Shell COPY cdmount\windows\System32\Winpeshl.ini mount\windows\System32\Winpeshl.ini ECHO %license%>"%builddir%\mount\Windows\Shell\V2i\Lice nseKey.txt" CLS ECHO ************************************************** * ECHO * Please close all open Explorer Windows so as to * ECHO * not interfere with unmounting the WIM files !! * ECHO ************************************************** * PAUSE DISM /Unmount-Wim /MountDir:cdmount /discard DISM /Unmount-Wim /MountDir:mount /commit MD ISOTEMP ROBOCOPY /S %srdsource% ISOTEMP ROBOCOPY /S ISO ISOTEMP RD ISO /S /Q REN ISOTEMP ISO OSCDIMG -l"%isoname%" -u1 -b"etfsboot.com" ISO "%isoname%.iso" EXPLORER /n,/e,%builddir% PAUSE
