Backup and Restore using MSI
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
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
Answers (3)
Please log in to answer
Posted by:
pjgeutjens
14 years ago
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
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
Posted by:
ramu_ch
14 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.