i have a problem with my code, i was programming something that will install all .net frameworks the directx 9.0c patch if nessessery and some other things
The code echo off
echo \====================================/
echo / A repackage of all essential files \
echo \ that are required to be installed /
echo / so installing them manually isn't \
echo \ a big problem. /
echo /====================================\
echo \ Continue at your own risk!!! /
echo /====================================\
echo.
echo Type yes to continue or no to cancel:
set /p Reponse=""
cls
if %Reponse% == yes (
echo what's is your CPU architecture? 32-Bit or 64-Bit?
echo to help, look at your ram, if it's below the 4GB Then its 32-bit
set /p arch=""
if %arch% == 32-bit (
cls
echo starting Installation
)
echo starting installation process
)
if %Reponse% == no (
echo Shutting Down
echo Thank you for your participation
)
pause
The broken part:
if %Reponse% == yes (
echo what's is your CPU architecture? 32-Bit or 64-Bit?
echo to help, look at your ram, if it's below the 4GB Then its 32-bit
set /p arch=""
if %arch% == 32-bit (
cls
echo starting Installation
)
echo starting installation process
)
it's working when this part of the code isn't present:
echo what's is your CPU architecture? 32-Bit or 64-Bit?
echo to help, look at your ram, if it's below the 4GB Then its 32-bit
set /p arch=""
if %arch% == 32-bit (
cls
echo starting Installation
)
Any improvements will be appreciated
Thanks for reading
And sorry for my bad english