Jump to content

Batch script start up from RunOnce registry fails !


Recommended Posts

Glad u got it working now!!:D

Just a suggestion but when installing your 14 apps why don't you just consolate them all together in the "apps" folder, then further streamline your code with a set variable and oneliner like so..

@echo off
:: Set current directory for apps
set cd=%~dp0

:: Silent Installs
echo. Set restore point..
wscript /nologo %cd%apps\RestorePt.vbs
echo. Installation Completed!
cls
echo. Installing registry tweaks..
regedit /s %cd%apps\RegTwksW7.reg
echo. Installation Completed!
cls
echo. Installing office 2010..
%cd%apps\office\setup.exe /config %cd%apps\office\proplus.ww\config.xml
echo. Installation Completed!
cls
echo. Installing adobe reader xl..
%cd%apps\AdbeRdr11003_en_US.exe /sAll /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES
echo. Installation Completed!
cls
echo. Installing cdburner xp..
%cd%apps\cdbxp_setup_4.5.1.4003.exe /verysilent /suppressmsgboxes /norestart /sp-
echo. Installation Completed!
cls
echo. Installing flashplayer..
%cd%apps\FlashPlayer11.plugin.msi /qn
echo. Installation Completed!
cls
echo. Installing toolbar cleaner..
rundll32.exe advpack.dll,LaunchINFSectionEx %cd%\apps\tbc\ToolbarCleaner.inf,,,4
echo. Installation Completed!
cls
echo. Installing winrar..
%cd%apps\winrar.exe /s
echo. Installation Completed!
cls
pause

Edited by DosProbie
Link to comment
Share on other sites

  • 7 years later...

Good morning.

For a few months, I have been testing on a virtual machine to integrate some tools into the ISO of Windows (W10 V20H2) using the former runonce procedure used for years, but I can't make it run, I checked the scripts and they are all ok. Then to not waste time to install the ISO every time to see if it is executed directly the "setupcomplete.cmd" script directly and the log key is created with the launch programs in the path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEX". But when the system restarts the programs are not executed.

Some idea?

Cordially thank you

Edited by DMD61
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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