/build/static/layout/Breadcrumb_cap_w.png

How to execute the custom action after copying of files.

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   [ + ] Show comments

Answers (6)

Posted by: pjgeutjens 12 years ago
Red Belt
0
put it in deferred execution, anywhere after the InstallFiles action.

PJ
Posted by: sanjaypakale 12 years ago
Senior Yellow Belt
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
Posted by: anonymous_9363 12 years ago
Red Belt
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.
Posted by: sanjaypakale 12 years ago
Senior Yellow Belt
0
Could you please help out me how to use CustomActionData in my scenario??

Thanks,
Sanjay
Posted by: pjgeutjens 12 years ago
Red Belt
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
Posted by: anonymous_9363 12 years ago
Red Belt
0
Sure. Here you go.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ