Hi All,

I am planning to do backup and restoration of certain files. I have created two custom actions, one for backup and the other one restore. both the CA's are working fine manually.

But i would like to include those two CAs in my MSI. I am placing the problem where to put my Backup CA and Restore CA.

One more thing is that, i am doing upgrade also using the msi only.

I have kept backup CA in Execute Immediae section before the RemoveExistingProducts and the condition is "If Not Intstalled".

Regarding Restore CA, I have kept it in Execute Deffered section before the InstallFinalise and the condition is "if Not Installed then".

Please suggest me how can my backup works before the upgrade and my restore CA will work before the installaion completes.

Thanks in Advance.
Ramu
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
can someone help me, please.
Answered 02/11/2010 by: ramu_ch
Orange Belt

Please log in to comment
0
Since you are trying to use Backup-Restore functions inside one MSI install, I'm going to assume you're trying to avoid overwriting/changing existing files on a target system with your installer's files.

Can i suggest using the Never Overwrite attribute for the components that contain these files. this will ensure that if that component's keypath file already exists on a system,it will NEVER be overwritten by your new MSI.

PJ
Answered 02/11/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
I found the solution.

Since my CAs are working fine manually, i looked in the sequences/conditions in MSI.

I modified my CA action , to "Execute program from Installation", earlier i have used "Run WiseScript from Installation".

I did the same with Restore also...it worked fine for me.

Thanks,
Ramu
Answered 02/11/2010 by: ramu_ch
Orange Belt

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