Hi Community of CodeProject,
i really need ur help. Actually im building just an small Wix Setup for a dependecy Check for xna, framework, windows installer.
I Used microsofts onclick and included them into the bootstrapper and combined it with my wix setup. That works really nice. But now i need to start our real setup. And here is my big problem.
I have this real tiny wxs File with the following content
="1.0"="UTF-8"
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="07c9c461-7c15-4d1b-a2e3-9101b76e2d0a" Name="test" Language="1033" Version="1.0.0.0" Manufacturer="test" UpgradeCode="b6c83ebe-ea91-4387-855b-ff434968812d">
<Package InstallerVersion="200" Compressed="yes" />
<Binary Id="StartSetup" SourceFile="..\StarttestSetup\bin\Debug\StarttestSetup.CA.dll"/>
<CustomAction Id="LaunchCGS" BinaryKey="StartSetup" DllEntry="RunSetup" Execute="immediate" Return="check"/>
<InstallExecuteSequence>
<Custom Action="LaunchCGS" Before="InstallFinalize"/>
</InstallExecuteSequence>
</Product>
</Wix>
And this is the Custom Action in C#
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Deployment.WindowsInstaller;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
namespace StarttestSetup
{
public class CustomActions
{
[CustomAction]
public static ActionResult RunSetup(Session session)
{
session.Log("Begin RunSetup");
MessageBox.Show("test");
return ActionResult.Success;
}
}
}
And here is my Problem. I don't know it really but i can only say the MessageBox doesn't appear on the Screen and no Process is running. So I think the Custom Event is never Triggered. BUT WHY THE HELL ???
Pls help me I'm new to Wix so its mostly my failure of any missing declarations so that the Custom Action can becalled.
As side Info im using the Wix toolset 3.5 combined with VS2010 Professional latest updates.
Compiling the WIX Project works perfect without errors. The Bootstrapper works correctly as he should do. The MSI starts then but nothing happens anymore. SO PLS HELP !!!
Nice Regards Synergi