jaxflmax Posted February 9, 2005 Share Posted February 9, 2005 I'm trying to make a .cmd or .bat or something that I can have runonceEx.cmd call in the 1st position.Ideally this file will allow simple user input Yes/No to abort or skip the runonce process and continue into windows.By the time it runs though it's too late to delete the reg entries that runonceEx.cmd made though right?Any help is apreciated! Link to comment Share on other sites More sharing options...
bmn Posted February 9, 2005 Share Posted February 9, 2005 u mean u want to choose between attended and unattended?.in that case have a look at multi boot section. Link to comment Share on other sites More sharing options...
jaxflmax Posted February 9, 2005 Author Share Posted February 9, 2005 No, i've got my unattended set up just the way I want it - but say I want to use the disc on my laptop which really doesn't need a whole video editing suite and all my other programs installed from runonce. I'm hoping for a simple fix like "Hit Y to proceed with program installs, hit N to skip"Haha and yes, I realize with the amount of effort i've put into posting I could have easily switched over to WPI but that would be admiting defeat! Link to comment Share on other sites More sharing options...
bmn Posted February 9, 2005 Share Posted February 9, 2005 yup.if u want this option only for programs installaton(choosing).WPI is the best method Link to comment Share on other sites More sharing options...
MCT Posted February 9, 2005 Share Posted February 9, 2005 yep, i would use WPI or Xplode for what u want , its more professional & better looking Link to comment Share on other sites More sharing options...
Dahi Posted February 9, 2005 Share Posted February 9, 2005 You could use CHOICE.EXE in your runonceex.cmd.:Retrychoice /c:YN /t:Y,60 Do you want to install applicationsif errorlevel 2 goto SkipAppsif errorlevel 1 goto InstallAppsgoto Retry:InstallAppsREG ADD .....etc:SkipApps Link to comment Share on other sites More sharing options...
gunsmokingman Posted February 9, 2005 Share Posted February 9, 2005 Try This At The Start Of The RunOnceEx.cmdecho offclsmode 55,5color 9fset CD1=%systemdrive%\INSTALL\echo.echo Would You Like To Add The RunOnceEx.cmdecho Type Yes To Add Type No To Quitset /p Ques= Waiting For User Input :-^> goto %Ques%:YesSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "The Install Section" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\015 /VE /D "Alcohol120" /fREG ADD %KEY%\015 /V 1 /D "REGEDIT /S %CD1%Alcohol\TestAlcohol.reg" /fREG ADD %KEY%\015 /V 2 /D "%CD1%Alcohol\setup.msi /qb/promtrestart" /fREG ADD %KEY%\170 /VE /D "Preparing Final Clean up ..." /fREG ADD %KEY%\170 /V 1 /D "%CD1%CleanUa.exe" /f:NOecho User Decided Not To Add The RunOnceEx.cmdping -n 2 127.0.0.1>nulexitOr You Could Have This Between Each Item That get Installedecho.echo Would You Like To Add The Alcohol120echo Type Yes To Add Type No For Nextset /p Aloc= Waiting For User Input :-^> goto %Aloc%:YesREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\015 /VE /D "Alcohol120" /fREG ADD %KEY%\015 /V 1 /D "REGEDIT /S %CD1%Alcohol\TestAlcohol.reg" /fREG ADD %KEY%\015 /V 2 /D "%CD1%Alcohol\setup.msi /qb/promtrestart" /f:Noecho.echo Would You Like To Add FlashPlayer7echo Type Yes To Add Type No For Nextset /p Flsh= Waiting For User Input :-^> goto %Flsh%:YesREG ADD %KEY%\035 /VE /D "FlashPlayer7" /fREG ADD %KEY%\035 /V 1 /D "%CD1%Flash\FlsPlyr7Inst.exe /s /v/qn" /f:NoNext One ETC Link to comment Share on other sites More sharing options...
jaxflmax Posted February 9, 2005 Author Share Posted February 9, 2005 Excellent! Thank you very much everyone! 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