kingshawn Posted December 17, 2013 Author Share Posted December 17, 2013 I will try these and post back Link to comment Share on other sites More sharing options...
Dogway Posted December 22, 2013 Share Posted December 22, 2013 While I wait your test I wonder, wouldn't it be possible to just:REG ADD %KEY%\001 /V 1 /D "%CDROM%\RunOnce.cmd" /f Link to comment Share on other sites More sharing options...
Dogway Posted December 25, 2013 Share Posted December 25, 2013 (edited) Just tested and didn't work either. There's no frigging way to run a batch file under a user logon from unattended...edit: guess I found a way, I will try that.edit2: worked like charm finally, thanks for the no-help : P Edited December 25, 2013 by Dogway Link to comment Share on other sites More sharing options...
Harshad Posted November 14, 2014 Share Posted November 14, 2014 (edited) I have to build a Win7 setup for a friend.Its been over a year since my last build. So followed this old post of mine - http://www.msfn.org/board/topic/162876-how-do-i-install-software-from-dvd/?p=1039263 And even kingshawn's #12 - http://www.msfn.org/board/topic/170536-runonceex-failing-on-windows-7-sp1/#entry1063027 For testing I kept my SETUPCOMPLETE.CMD small and also followed the directory structure.<disc_root>\sources\$OEM$\$$\SETUP\SCRIPTS\SETUPCOMPLETE.CMD<disc_root>\AppsFOR %%i IN (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 %%i:\CD.txt SET CDROM=%%i:echo %CDROM%REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Removing Setup Disc Will Cancel Installation." /fREG ADD %KEY%\001 /VE /D "Drivers" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\Apps\Drivers\DP_Install_Tool.cmd /K" /fREG ADD %KEY%\002 /VE /D "WinRAR 5.20 Beta 3" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Apps\Drivers\SFX_WinRAR_AIO_5.2b-3.exe" /f:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::%~dp0"Program.exe" /silent::CLEAN-UPcd %~dp0attrib -R -A -S -H *.*SHUTDOWN /R /T 5cd..RMDIR /S /Q "%WINDIR%\Setup\Scripts"EXITThe problem. Drivers and WinRAR is not getting installed. WinRAR is a switchless installer - [http://www.wincert.net/forum/topic/11559-winrar-aio-x86x64-sfx-addon-maker/] Program.exe is executed so I know that SETUPCOMPLETE.CMD is executing. Don't know why the installation is not happening. Checked the SETUPCOMPLETE.CMD seperately on my host machine with the OS already installed. Put the SETUPCOMPLETE.CMD on the desktop along with the programs to be executed. The entries were added to the registry and executed on restart too. My test environment is VMWare Player.Please help. Edited November 14, 2014 by Harshad 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