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,
that_guru
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
Started by
that_guru
, Jan 27 2004 04:09
1 reply to this topic
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.
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.
Regards
-Stein Åsmul
-Stein Åsmul