InstallHinfSection and Vista. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

chrisharper
Posts: 2
Joined: Tue May 06, 2008 10:02 pm

InstallHinfSection and Vista.

I have a custom action that installs a mini filter driver by calling InstallHinfSection. This works fine on XP but on Vista, InstallHinfSection displays a "Copy Error" because the user doesn't have privileges to write to the Drivers directory. The setup type is: "Per-machine only (fails if user is not administrator). With this setting, I expect the installer to prompt the user with an elevated administrator dialog and thus giving InstallHinfSection the privileges it requires. Although, the installer does not prompt for an elevated administrator and InstallHinfSection eventually fails.

This setup is not yet signed; could this be causing Vista not to prompt for elevated administrator? Vista does prompt that an unidentified program from an unidentified publisher is trying to access the machine. Could this be the problem.

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: InstallHinfSection and Vista.

Hi,

Please note that on Vista a custom action must be set as Deferred with no impersonation if it performs system changes or writes into per-machine locations. If this doesn't solve the problem please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”