Quick followup to this email. I
was using a config file that listed .net 1.1 as the supported runtime. I moved
the installer to Windows XP (off Vista) and got a BadFormatException. So I
changed the config file to require .net 2.0 and it worked perfectly. However,
I had to change the config file from bring a stream to being an installed
file. I would like to not install the config file since it really only has
pertinence to my installer. Can I install a file temporarily and then have
Windows installer remove it at the end of the installer? From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Reggie
Burnett I’m trying to get an Installer class derived class to start
executing during install of my assembly. I’ve searched and read countless
websites and thought I had things setup properly. I’m including
InstallUtil as a binary stream in my assembly along with a config file that
sets up .NET 1.1 as a supported runtime. My wix code is like this. #FileId is the id of the
file that contains the installer class. #InstallUtilConfig is the id of
the binary stream that contains my config file. When I compile this up
and attempt to install it, I get error 2869 near the end of the install.
Anyone have any ideas what might be wrong here? <Binary Id="InstallUtil" src="InstallUtilLib.dll" /> <Binary Id="InstallUtilConfig" src="CustomAction.config" /> <CustomAction Id="CustomInstall" BinaryKey="InstallUtil" DllEntry="ManagedInstall" Execute="deferred" /> <CustomAction Id="InstallSetProp" Property="CustomInstall" Value="/installtype=notransaction /action="" /LogFile= "[#FileId]" "[#InstallUtilConfig]"" /> <InstallExecuteSequence> <Custom Action="InstallSetProp" After="InstallFiles">NOT
Installed</Custom> <Custom Action="CustomInstall" After="InstallSetProp">NOT
Installed</Custom> </InstallExecuteSequence> I’ve added the installer derived class to my
assembly. It is here: [RunInstaller(true)] public class CustomInstaller : Installer {
public override
void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
System.Windows.Forms.MessageBox.Show("Installing");
}
public override
void Uninstall(System.Collections.IDictionary savedState)
{
base.Uninstall(savedState);
System.Windows.Forms.MessageBox.Show("Uninstalling");
}
} |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users