Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

VB .NET and Advertised Features

1 reply to this topic


  • Members
  • 1 posts

Posted 27 January 2004 - 04:09

Does any one know how to install a feature on-demand with VB .NET?

How do I then find out where the DLL / EXE file has been installed? (so I can use it)

Thanks in advance,



  • Moderators
  • 1,447 posts

Posted 27 January 2004 - 22:10

Could you add code to invoke the Windows Installer API? (not sure if this is possible from a VB .NET app). It would be something like this:

g_strProductCode = ProductGUID
g_cStrFeature = FeatureToInstall

result = MsiReinstallFeature( g_strProductCode, g_cStrFeature, REINSTALLMODE_FILEMISSING + REINSTALLMODE_USERDATA ) ;

The file will then be available at the application [INSTALLDIR] plus any sub folders you added.
-Stein Åsmul