So far: it works.
I also tried adding some new "Custom Action Parameter" from "Edit .Net Custom Action", and then "new" and then under "New Installer Class Parameter" I added:
Name: Hello
Value: World
The "Action Data" created was:
Code: Select all
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /Hello=World "[#TestDLL.dll]" "[TempFolder]dotNetCustAct.dll_Config.xml"
Now here's what doesn't work:
Again I went to "Edit .Net Custom Action", pressed the "new" button, and in dialog "New Installer Class Parameter" I added the following:
Name: MyTest
Value: [APPDIR]
The "Action Data" created was:
Code: Select all
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /MyTest="[APPDIR]" "[#TestDLL.dll]" "[TempFolder]dotNetCustAct.dll_Config.xml"
"The dialog ErrorDlg has the error style bit set, but is not an error dialog".
And then the installation fails with "The TestDLL Setup Wizard ended prematurely" and then you have to press the "Finish" button.
What am I doing wrong here?
All my TestDLL currently does is:
Code: Select all
namespace TestDLL
{
[System.ComponentModel.RunInstaller(true)]
public class Class1 : System.Configuration.Install.Installer
{
public override void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
System.Windows.Forms.MessageBox.Show("Hello world!");
}
}
}
Code: Select all
Action start 9:29:58: AI_DATA_SETTER.
MSI (s) (34:20) [09:29:58:890]: PROPERTY CHANGE: Adding CustomActionData property. Its value is '/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /MyTest="C:\Program Files\Volicon\_TestingCustomAction\" "C:\Program Files\Volicon\_TestingCustomAction\TestDLL.dll" "C:\DOCUME~1\Dashut\LOCALS~1\Temp\dotNetCustAct.dll_Config.xml"'.
Action ended 9:29:58: AI_DATA_SETTER. Return value 1.
MSI (s) (34:20) [09:29:58:937]: Doing action: dotNetCustAct.dll
Action 9:29:58: dotNetCustAct.dll.
Action start 9:29:58: dotNetCustAct.dll.
MSI (s) (34:48) [09:29:59:000]: Invoking remote custom action. DLL: C:\windows\Installer\MSI1D9D.tmp, Entrypoint: LaunchDotNetCustomAction
MSI (c) (94:5C) [09:29:59:046]: Font created. Charset: Req=0, Ret=0, Font: Req=, Ret=Arial
Code: Select all
and after I close the error dialog:
Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog.
MSI (c) (94:5C) [09:31:14:343]: Product: _TestingCustomAction -- Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog.
Error 1001.
...
FOLLOW US
Get the latest news in Application Packaging