Look into your %Program Files%\Oracle\Inventory\logs where you will find the reason for error.
I also encountered similar problem where I installed Oracle 18c XE,
Oracle Database 18c we are introduced to a new concept: Image Based Installation.
In Image Based Installation the Oracle Universal Installer of 18c takes the location of our setup.exe file and assigns it as its db_home location. That’s why before we start extracting the content of this file, we first need to decide where we want to create our db_home directory.
Mistake I made was I had the setup.exe in D://drive and for others location left as default(which is C:/ drive)
Solution:
- Copy and extract the entire folder which contain setup.exe in C://
Drive.
- Manually remove all the files in in C:/Program Files/Oracle
(including Oracle folder)
- Run the setup.exe as Administrator
- Leave the other configuration paths as default
(Additional : Satisfy following condition when configuring the password
Oracle recommends the following guidelines when prompted for a password.
- Contains at least one lowercase letter.
- Contains at least one uppercase letter.
- Contains at least one digit.
- Is at least 8 characters in length.
- Uses the database character set, which can include the underscore (_), dollar ($), and pound sign (#) characters.
- Should not be an actual word.
)