Jump to content

Recommended Posts


Posted

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
Posted (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 by Dogway
  • 10 months later...
Posted (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>\Apps

FOR %%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"EXIT

The 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 by Harshad

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...