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
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)
Please log in to answer
Posted by:
pjgeutjens
12 years ago
Posted by:
sanjaypakale
12 years ago
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
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
Posted by:
sanjaypakale
12 years ago
Posted by:
pjgeutjens
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.