Clay Nichols
Clay Nichols

Reputation: 12139

What causes the Vista/Win7 warning: "This program may not have installed correctly" ?

What causes this warning and what can I do to keep it from popping up when my app installs?

Possible causes:

Any other ideas?

Upvotes: 5

Views: 859

Answers (3)

Larry Osterman
Larry Osterman

Reputation: 16142

One of the reasons this pops up is that after running the installer, the system checks to see if something changed in the installed programs list. If the contents of the installed programs list hasn't changed, it assumes that your application failed to install correctly.

Upvotes: 3

dirtybird
dirtybird

Reputation: 422

To fix this, see this blog post by Aaron Stebner:

  • Your app is probably being detected by the PCA (Program Compatibility Assistant) as a non-Vista (pre-Vista) installation application.
  • You will need to add an embedded manifest and set a requested execution level

There is a previous stack question on this topic as well with some alternative work-arounds (noob, I can only post one link at the moment). You should be able to find some information on Vista-aware installation applications and be able to resolve this issue, but the info above has worked for me in the past.

Upvotes: 4

user207462
user207462

Reputation: 91

I think this is related to operations which may be denied via UAC. (Not sure what exactly - file copies to restricted areas?)

To keep this from occurring, run the installer as an administrator.

Upvotes: 0

Related Questions