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

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.

Answers

0
@sanjay

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

regards,
Mayur
Answered 12/25/2011 by: mayur_mak
Senior Purple Belt

Please log in to comment
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
Answered 12/26/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
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.
Answered 12/26/2011 by: pjgeutjens
Red Belt

Please log in to comment
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
Answered 12/26/2011 by: sanjaypakale
Senior Yellow Belt

Please log in to comment
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
Answered 12/26/2011 by: pjgeutjens
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity