/build/static/layout/Breadcrumb_cap_w.png

Need help to set the Custom action sequences after all files copied in the m/n.

Hi all,

I have to run one exe which is added inside the MSI. I can run this exe using Deferred Execution mode, but in Deferred mode I cannot access any DB property. So I decided to move into immediate Execution. Please anyone tell me what Install Exec Sequences I have to set so that all my files are copied and I can run the copied Exe. Basically I want execute the Custom Action after copying of all files into the m/n.
Please provide me the solution for this issue.

Thanks in advance,
Sanjay

0 Comments   [ + ] Show comments

Answers (5)

Posted by: mayur_mak 12 years ago
Senior Purple Belt
0
@sanjay

u can use the CustomActionData property and use it wherever u require.

regards,
Mayur
Posted by: sanjaypakale 12 years ago
Senior Yellow Belt
0
Thanks Mayur.
Actually I am not setting any custom property. I want to read the string table where localized strings are stored. I have different mst files with different languages based on the
applied langauge mst file I have to read the string. If I set this in Immediate Execution everything is working fine & if I set it to Deferred mode I am seeing default language strings. For this I want to run the custom action in Immediate mode after copying the files in the installed location and based on the return value of the exe I have to read the string table.
Please tell me what would be the sequences I have to set to run this custom action.

Thanks,
Sanjay
Posted by: pjgeutjens 12 years ago
Red Belt
0
Put the CA in Immediate after InstallFinalize. This is not strictly following best practices, since you're not supposed to make changes to the system in immediate context, but it will do the trick.
Posted by: sanjaypakale 12 years ago
Senior Yellow Belt
0
Thanks,

No. I can't run CA After InstallFinalize. Because based on the Custom Action return value I have to abort the installation and I have to rollback. I don't think it will Rollback
After installFinalize.
Please tell me is it possible to run one custom action in Deferred mode and other will be Immediate. but sequence should be first Deferred and second should be Immediate.

Thanks,
Sanjay
Posted by: pjgeutjens 12 years ago
Red Belt
0
If you want rollback you're limited to deferred execution. To get access to the property you want, you'll need to add it to the CustomActionData. Read this thread on Appdeploy for a runthrough on how to do it. As long as you then schedule the CA in Deferred after InstallFiles you'll have the necessary exe in place. The only Immediate execution after Deferred is the part after InstallFinalize, but like you said, there's no rollback there (and that's actually why you shouldn't make system changes in Immediate Execution)

PJ
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