hy.
I wold set a property programmatically in c++,and I have create this .dll test custom action:
UINT __stdcall setProperty(MSIHANDLE paraname)
//0: ALLUSERS
{
MsiSetProperty(paraname,"CustomAct","giugio");
return ERROR_SUCCESS;
}
I use visual studio 2003.
if i set the type of this dll custom action to 1(with orca) catch this errror:
The installer has encountered an unexpected error installing this
package.This may indicate a problem whit this package.the error code is 2721.
why?
how i resolve?
the property CustomAct is the name of the successive custom action , where i get the value with msigetpropety(msiinstance,"CustomActionData");
THanks;
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.
Custom action immediate
Started by
giugio
, Oct 25 2007 12:17
1 reply to this topic
Posted 29 October 2007 - 17:29
2721 = Custom action not found in Binary table stream.
And: as fas as I know, Visual Studio only creates deferred custom actions. You cannot set properties in such actions. This is a limitation of Visual Studio.
Visual Studio has a field in the custom action properties that lets you pass properties to a deferred custom action, i.e. VS does this stuff for you in the background.
And: as fas as I know, Visual Studio only creates deferred custom actions. You cannot set properties in such actions. This is a limitation of Visual Studio.
Visual Studio has a field in the custom action properties that lets you pass properties to a deferred custom action, i.e. VS does this stuff for you in the background.
Stefan Krüger
InstallSite.org twitter facebook