views:

26

answers:

0

I am using Visual Studio 2008 setup project to create our installer. I want to disable msi auto-repair feature programmatically.

I think call MsiSetProperty(IntPtr hInstall, string szName, string szValue); in my installer's custom action maybe a way to go.

Something like:

MsiSetProperty(hInstall, "DISABLEADVTSHORTCUTS", "1");

but what's the value for the hInstall? anybody can help me?

thanks,