|
Prev: Why do BCL classes have internal implementation classes?
Next: WPF question --- getting keyboard events
From: W Buckner on 2 Jul 2008 13:42 Is it normal that vb installer gets installed with the setup project? Is it normal that the InstallState file is copied to the directory? The InstallState file is removed when the uninstall is run... I posted again here, because my last post was removed or I can't find it?
From: Phil Wilson on 2 Jul 2008 16:59
I can still see your last post in this group, dated 7/1/2008. InstallState files are part of the implementation that makes Installer classes work. If you used a vb script, C++ Dll, or an executable as a custom action they are not used. Your installer class assembly is installed on the system because that's the way installer classes work. It has to be there so that InstallUtilLib infrastructure (a Dll included in your MSI file) can look at your assembly, find installer classes by reflection, load the .NET framework into the msiexec process, instantiate your installer class abd call methods. If you used a C++ Dll or a vbscript (or maybe an executable) then you could mark the custom action code as Exclude in the setup project, then it doesn't get installed - Windowws Installer has built-in support for streaming binaries out of the MSI file to call them as custom actions, but not for managed code cuistom actions. If you detect some bias here it's because the MSI team doesn't support installer class custom actions, so .NET executables or C++ Dll cals are preferable. http://robmensching.com/blog/archive/2007/04/19/Managed-Code-CustomActions-no-support-on-the-way-and-heres.aspx -- Phil Wilson Definitive Guide to Windows Installer http://www.apress.com/book/view/1590592972 "W Buckner" <wxb1(a)netzero.net> wrote in message news:k6Pak.749$zv7.177(a)flpi143.ffdc.sbc.com... > Is it normal that vb installer gets installed with the setup project? > Is it normal that the InstallState file is copied to the directory? > > The InstallState file is removed when the uninstall is run... > > I posted again here, because my last post was removed or I can't find it? |