/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi all,
I wrote a C# dll custom action and added it in custom action. But my custom action running before the files copied into the installation location. I am very new installshield and I don't know much about setting a sequences.
Please anyone tell me how to set the sequences of custom action so that it runs after copied of the files into the destination folder.

Thanks in advance.
Sanjay
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
put it in deferred execution, anywhere after the InstallFiles action.

PJ
Answered 11/21/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
Thanks for your reply. It works for me.
But facing one more issues due to the above solution
I am checking a condition in custom action. If my condition doesn't meet then I will Rollback the installation. But my
msi is not Roll-backing the installed files and other stuffs.

Below is the log message.
Calling custom action ATCustomActions!ATCustomActions.CustomActions.CheckPlatformAvailability
Begin of CheckPlatformAvailability method
1: C:\Windows\Installer\MSI2746.tmp-\ATCustomActions.dll
MSI (s) (80!08) [18:31:14:046]: Product: PCTDInstaller -- 1: C:\Windows\Installer\MSI2746.tmp-\ATCustomActions.dll

1: Return value is: 10
MSI (s) (80!08) [18:31:16:940]: Product: PCTDInstaller -- 1: Return value is: 10

1: Platform compatibility failed.
CustomAction CA returned actual error code 259 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (80:24) [18:31:18:072]: User policy value 'DisableRollback' is 0
MSI (s) (80:24) [18:31:18:072]: Machine policy value 'DisableRollback' is 0
Action 18:31:18: RollbackCleanup. Removing backup files

Thanks,
Sanjay
Answered 11/21/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
0
You're aware that only a limited number of properties exist in the deferred sequence? If your CA needs to check a property other than these special cases, you'll need to pass it using the special CustomActionData property. It's reasonably well documented on MSDN/TechNet.
Answered 11/21/2011 by: VBScab
Red Belt

Please log in to comment
0
Could you please help out me how to use CustomActionData in my scenario??

Thanks,
Sanjay
Answered 11/21/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
0
If the problem is not with the check, but just with the rollback not triggering, try having your custom action give a return code of 3 if the check fails. This should trigger RollBack.

PJ
Answered 11/21/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
Sure. Here you go.
Answered 11/21/2011 by: VBScab
Red Belt

Please log in to comment