This is simple. You should just set the "Installation Type" option (in "Install Parameters" view of your project) to "Per machine only (fails if user is not administrator" value.
If you have any further questions just let us know.
The reason I wanted to do this is related to the .ocx registration issue.
If you select "Everyone" during install, this invokes UAC and effectively elevates privileges to Admin. and the .ocx files are installed without problem.
So, it's a workaround.
But, as you say, the installation will FAIL if the user is not admin. so does that mean that this workaround isn't going to work if user is not admin.?
Another, possible workaround for the .ocx registration is to set the "Run as administrator" option. This also yields a successful install of the .ocx files, but we'd rather avoid setting to Admin. if we can.
Yes this is right. Unfortunately you cannot install per-machine resources when the current user account under which the installation runs is not an admin one. This is the Windows OS design.