How exactly did you create the installer? If you used a VS Setup project, the following link is directly relevant:

https://learn.microsoft.com/en-us/mi...nstallersample

I suspect that your issue relates to point 7, but that's an educated guess. ClickOnce allows you to add prerequisites in basically the same way and third-party installer tools will have something similar.