JohnS Posted June 24, 2005 Share Posted June 24, 2005 I have now started playing with Autoit and making installation scripts that have visible windows during RunOnceEx.Would the content of this thread be of any help in hiding the sucession of windows during the install of a program?There is a topic about this problem, but with no success:http://www.msfn.org/board/index.php?showtopic=44145Thanks Link to comment Share on other sites More sharing options...
testazzo Posted February 8, 2008 Share Posted February 8, 2008 What's the way to INCLUDE nircmdc.exe into WinPE?My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\ComponentsPlease HOW can I add my custom executable & run them in X64 WinPE Boot image?How can i create & add Components for wim files?Tnx Link to comment Share on other sites More sharing options...
testazzo Posted February 11, 2008 Share Posted February 11, 2008 (edited) What's the way to INCLUDE nircmdc.exe into WinPE?My problem is that cmdow.exe pr nircmd.exe CAN'T BE EXECUTED from STARTNET.CMD in a X64 WinPE Boot image !!!!Seems that's a Group Security Policy LOCK for files differents from HKLM\COMPONENTS\CanonicalData\ComponentsPlease HOW can I add my custom executable & run them in X64 WinPE Boot image?How can i create & add Components for wim files?TnxSOLVED!The WinPE Enviroment is a PURE 64BIT so CMDOW, NIRCMD etc DOESN't WORK!To solve DEFINITELY the problem use AUTOIT:Forget STARTNET.CMD, instead create a file "Winpeshl.ini" ____________________________________________________________[LaunchApp]AppPath = ShellExecuteWait.exe "Setup.cmd" "" "" "open" "SW_HIDE"____________________________________________________________Create a file Setup.cmd____________________________________________________________@echo offfor %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\sources\setup.exe set CDROM=%%a:call %CDROM%\sources\$OEM$\Unattended1.cmdstart /wait /realtime %CDROM%\sources\setup.execall %CDROM%\sources\$OEM$\Unattended2.cmd____________________________________________________________Unattended1.cmd & Unattended2.cmd scripts taht can be used to load/unload drivers before start Setup!Compile the script (AutoIt) as 64 BIT____________________________________________________________;ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] )SelectCase $CmdLine[5] = "SW_HIDE" ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_HIDE)Case $CmdLine[5] = "SW_MINIMIZE" ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MINIMIZE)Case $CmdLine[5] = "SW_MAXIMIZE" ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_MAXIMIZE)Case $CmdLine[5] = "SW_SHOWNORMAL" ShellExecuteWait($CmdLine[1],$CmdLine[2], $CmdLine[3], $CmdLine[4], @SW_SHOWNORMAL)EndSelect____________________________________________________________put files in mounted WinPE startup image All done ..... Edited February 11, 2008 by testazzo Link to comment Share on other sites More sharing options...
COKEDUDEUSF Posted July 18, 2008 Share Posted July 18, 2008 Will this work in the cmdlines.txt? I'm having difficulty making this work. 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