Action Data format in Custom Actions - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

switchvox2
Posts: 13
Joined: Sat Mar 26, 2011 12:58 am

Action Data format in Custom Actions

I am trying to migrate a project from VS2008 Setup to AI.
This project has a custom action on a 3rd party DLL (MyInstallLib.DLL custom action DLL). The purpose of this DLL is installing a 3rd party library (MyLib.DLL).
in VS2008 Setup there is CustomActionData:
/SmartTag="[TARGETDIR]\MyLib.dll"

This is for passing MyLib.dll path to Install, Uninstall, and Rollback in MyInstallLib.DLL

How is it supposed to be added to Action Data in AI (format)? Is it:
/SmartTag="[APPDIR]"\MyLib.dll"

Do I need to keep the leading "/" for SmartTag property ? or is it something that pertains only to VS2008 Setup?
Do I need to define SmartTag property somewhere else in AI in order for this to work...
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Action Data format in Custom Actions

Hi,

The APPDIR property is indeed Advanced Installer's equivalent of the TARGETDIR property.

The command line arguments that need to be passed to your .DLL are best known by the designer of the .DLL. Advanced Installer simply calls the function inside the .DLL with the specified arguments and schedules it as a custom action.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
switchvox2
Posts: 13
Joined: Sat Mar 26, 2011 12:58 am

Re: Action Data format in Custom Actions

Well, that's not what I expected to hear... May be I should clarify:
I have VS2008 Setup project that works ok except a few minor quirks. I imported this project to AI v8.1.1.

THe VS2008 Setup has a custom action, which is on 3rd party DLL (AddInExpress.Install.2005.dll) that
looks like this:
/SmartTag="[TARGETDIR]\MyDllName.dll"

AI imports this and Custom Action Data looks like this:
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /SmartTag="[APPDIR]\\MyDllName.dll" "[#_EB6AE82FA9814B039F21543CBD970934]" "[TempFolder]dotNetCustAct.dll_Config.xml"
There is no function name though in the Function field...

When I build this install package (MSI) it does not work but gives you the famous Error 1723, basically telling that there is problem with the custom action DLL.
I tried other combos of parameter in Custom Action Data for no avail. I also tried to put the AddInExpress.Install.2005.dll as a third party DLL and Install, Rollback, and Uninstall function names in the FUnction field of Install, Rollback and Uninstall custom actions correspondingly, but that did not work either.

Now please do not send me to your user guide - I cant find anything there either... Everytime I have to deal with custom actions I stumble on unexplainable problems... at least in VS2008 I knew what params should look like... Anyway I can get serious help?
It is embarrassing to try to convince my management to spend $1000 on Enterprise license and not being able to get some modules to work and fall back on VS2008 in those cases...
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Action Data format in Custom Actions

Hi,

Maybe the custom action doesn't get imported the way it should. However, you can try to delete it and then manually add it yourself with the help of a ".NET Installer Class Action".

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”