Spotify is among the foremost digital music apps for Windows 10 and 11.

This error typically occurs for users trying to reinstall Spotify.

Users cant set up the Spotify desktop software because of it.

The End task option

Such a resolution is primarily applicable if youve previously installed Spotify.

Then you might need to eradicate leftover data causing error 18 to occur.

This is how you’re free to delete the Spotify data folder:

4.

the-exit-option-in-steam

Some users have resolved that issue by manually clean-sweeping all Spotify files they can find within File Explorer.

Eradicate Spotify files as follows:

5.

Do you have either software installed on your PC?

The Delete context menu option

If so, uninstall Comodo Firewall or iTunes before attempting to install Spotify again.

Then try installing Spotify again.

you’re able to reinstall Comodo Firewall or iTunes afterward irrespective of whether this resolution works.

The Spotify file search

Clean-booting Windows 11/10 will eliminate third-party background services and apps that automatically start.

Then you might be able to install Spotify without issues.

To perform a clean boot, youll need to remove third-party apps and services from the Windows startup.

The Programs and Feature applet

When youve configured the clean boot, restart Windows and try installing Spotify.

it’s possible for you to fully restore the original Windows 11/10 boot configuration after installing Spotify.

Going into safe mode is similar to clean-booting Windows but also slightly different since it restricts drivers.

The Services tab in MSConfig

That mode can feasibly fix error code 18 when brought on by a conflicting third-party app or service.

To activate that mode, check out our guide forbooting into Windows Safe mode.

Error 18 specifically applies to the desktop software users venture to install with its setup file.

The Get Spotify option

The Spotify UWP app is available on Microsoft Store and doesnt have a setup file.

roll out the Spotify UWP app instead if none of the above solutions work for you.

Installing Spotify from the Microsoft Store could be considered more of a workaround than an error 18 fix.

However, theres little difference between the UWP and desktop app versions.