raemdopieter Posted March 10, 2010 Posted March 10, 2010 Hi,I am creating a WinPE image that after it has booted should start a hta file.I have created a nice command file to build this image but when I boot from it everything goes well until it wants to start the hta. Then nothing happens.But when I launch the hta manually I get an error. "The ordinal 558 could not be located in the dynamic library SHLWAPI.dll"The AIK version that I use is 2.0 (Windows Vista) but I also get this error using 2.1 (Server 2008) and also in 3.0 (Windows 7) but in 3.0 the ordinal number is different.I hope that someone can tell me what I am doing wrong?Regards,PieterThis is my command file to create the image: @echo off e: echo deleteing the old wim file del E:\NetData\W2K8\BUILD\TEMP\winpe.wim del E:\NetData\W2K8\BUILD\OUTPUT\CUSTOMPE32.ISO del E:\NetData\W2K8\BUILD\ISO\sources\boot.wim copy "E:\NetProg\Windows AIK\Tools\PETools\x86\winpe.wim" E:\NetData\W2K8\BUILD\TEMP\winpe.wim "E:\NetProg\Windows AIK\Tools\x86\imagex.exe" /mountrw E:\NetData\W2K8\BUILD\TEMP\winpe.wim 1 E:\NetData\W2K8\BUILD\MOUNT "E:\NetProg\Windows AIK\Tools\PETools\peimg" /install=WinPE-MDAC-Package E:\NetData\W2K8\BUILD\MOUNT\WINDOWS"E:\NetProg\Windows AIK\Tools\PETools\peimg" /install=WinPE-Scripting-Package E:\NetData\W2K8\BUILD\MOUNT\WINDOWS"E:\NetProg\Windows AIK\Tools\PETools\peimg" /install=WinPE-WMI-Package E:\NetData\W2K8\BUILD\MOUNT\WINDOWS"E:\NetProg\Windows AIK\Tools\PETools\peimg" /install=WinPE-XML-Package E:\NetData\W2K8\BUILD\MOUNT\WINDOWS"E:\NetProg\Windows AIK\Tools\PETools\peimg" /install=WinPE-HTA-Package E:\NetData\W2K8\BUILD\MOUNT\WINDOWS echo Installing Drivers dir /S /b E:\NetData\W2K8\BUILD\DRIVERS\*.inf > E:\NetData\W2K8\BUILD\DriversList.txt for /f "eol=;" %%i in (E:\NetData\W2K8\BUILD\DriversList.txt) DO ( "E:\NetProg\Windows AIK\Tools\PETools\peimg" /inf=%%i E:\NetData\W2K8\BUILD\MOUNT\windows) del /q E:\NetData\W2K8\BUILD\DriversList.txt echo Done Installing Drivers md E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW robocopy G:\INTERVIEW E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW /MIR /R:0 /W:0 echo AUTOUNATTEND.XML attrib -R E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\AUTOUNATTEND.XMLcopy E:\NetData\W2K8\BUILD\CUSTOM_FILES\AUTOUNATTEND.XML E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\AUTOUNATTEND.XML echo AUTOUNATTEND-DHCP.XMLattrib -R E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\AUTOUNATTEND-DHCP.XMLcopy E:\NetData\W2K8\BUILD\CUSTOM_FILES\AUTOUNATTEND-DHCP.XML E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\AUTOUNATTEND-DHCP.XML echo INTERVIEW.HTAattrib -R E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\INTERVIEW.HTAcopy E:\NetData\W2K8\BUILD\CUSTOM_FILES\INTERVIEW.HTA E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\INTERVIEW.HTA echo INTERVIEW.XMLattrib -R E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\INTERVIEW.XMLcopy E:\NetData\W2K8\BUILD\CUSTOM_FILES\INTERVIEW.XML E:\NetData\W2K8\BUILD\MOUNT\INTERVIEW\INTERVIEW.XML copy E:\NetData\W2K8\BUILD\CUSTOM_FILES\INTERVIEW\securecmd.dll E:\NetData\W2K8\BUILD\MOUNT\Windows\System32copy E:\NetData\W2K8\BUILD\CUSTOM_FILES\INTERVIEW\urlmon.dll E:\NetData\W2K8\BUILD\MOUNT\Windows\System32copy E:\NetData\W2K8\BUILD\CUSTOM_FILES\INTERVIEW\IEzones.reg E:\NetData\W2K8\BUILD\MOUNT\Windows\System32 "E:\NetProg\Windows AIK\Tools\PETools\peimg" /list E:\NetData\W2K8\BUILD\MOUNT\WINDOWS "E:\NetProg\Windows AIK\Tools\PETools\peimg" /f /prep E:\NetData\W2K8\BUILD\MOUNT\WINDOWS echo The keyboard will be changed to nl-be "E:\NetProg\Windows AIK\Tools\x86\intlcfg.exe" -inputlocale:nl-be -image:E:\NetData\W2K8\BUILD\MOUNT"E:\NetProg\Windows AIK\Tools\x86\intlcfg.exe" -syslocale:nl-be -image:E:\NetData\W2K8\BUILD\MOUNT"E:\NetProg\Windows AIK\Tools\x86\intlcfg.exe" -userlocale:nl-be -image:E:\NetData\W2K8\BUILD\MOUNT rem echo Finished changing the keyboard to nl-be "E:\NetProg\Windows AIK\Tools\x86\imagex.exe" /unmount E:\NetData\W2K8\BUILD\MOUNT /commit copy E:\NetData\W2K8\BUILD\TEMP\winpe.wim E:\NetData\W2K8\BUILD\ISO\sources\boot.wim "E:\NetProg\Windows AIK\Tools\PETools\oscdimg" -n -bE:\NetData\W2K8\BUILD\ISO\boot\etfsboot.com E:\NetData\W2K8\BUILD\ISO E:\NetData\W2K8\BUILD\OUTPUT\CUSTOMPE32.ISO pause
Tripredacus Posted March 11, 2010 Posted March 11, 2010 Launch the HTA as so:x:\windows\system32\mshta.exe x:\INTERVIEW\INTERVIEW.HTA
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now