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
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)
Please log in to answer
Posted by:
mayur_mak
12 years ago
Posted by:
sanjaypakale
12 years ago
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
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
Posted by:
sanjaypakale
12 years ago
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
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
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
PJ
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.