We have an app with an existing user base. Due to some company changes, we want to change the program data folder. The app creates files that are not part of the installation package (therefore they remain after uninstall).
To assist the user, I want to copy these files. I am using IA Studio 12. I opened the project, went to the MSIcode tab, and after "Apply Install" I added two "Copy/Move Local Files" tasks, copying from $ALLAPPDATA$\FCG\RBRVS Calculator to $ALLAPPDATA$\DoctorsMgmt\RBRVS Calculator. One task specifies the source files = "FeeSchedule*.tps", the other is "Pr*.tps".
No files are copied. The project has "Requested Elevation Level" = "Elevate Administrators Only (highest available)"
I have never used the "Copy/Move Local Files" task before - have I missed something? The installer installs files to $ALLAPPDATA$\DoctorsMgmt\RBRVS Calculator - I assume the copy task runs with the same permissions - is that correct?
Best,
Scott
copy files failure
Re: copy files failure
Scott, I'm probably guilty of having a total brain-fart but does your version 12 have the native engine settings available? I can't remember which version of IA the native engine was first implemented. If so, you could wrap your copy/move into a native engine "if" block and you'll know it should/must execute irrespective of when the apply install runs.
Otherwise, can you move your copy/move statement before the apply install? I can't recall if copy/move is only done when apply install is executed. If so, doing it after apply install might not actually do anything? That sort of explains what might be happening but I can't confirm anything at the moment.
Try moving your copy/move right before apply install. For the sake of a quick copy-and-paste test it might be the answer you need. If not, reject the thoughts of he who is having an out-of-body brain-flatulence experience.
Otherwise, can you move your copy/move statement before the apply install? I can't recall if copy/move is only done when apply install is executed. If so, doing it after apply install might not actually do anything? That sort of explains what might be happening but I can't confirm anything at the moment.
Try moving your copy/move right before apply install. For the sake of a quick copy-and-paste test it might be the answer you need. If not, reject the thoughts of he who is having an out-of-body brain-flatulence experience.

Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
InstallAware MVP
Re: copy files failure
bookie,
Thank you. The native installer is available since IA 10. However, I cannot use it for these files because in that mode, the files placed by the copy/move files task are removed on uninstall.
However, moving the copy to before the Apply Install did copy the files successfully, so thank you. I was certain I needed to do that afterwards.
Best,
Scott
Thank you. The native installer is available since IA 10. However, I cannot use it for these files because in that mode, the files placed by the copy/move files task are removed on uninstall.
However, moving the copy to before the Apply Install did copy the files successfully, so thank you. I was certain I needed to do that afterwards.
Best,
Scott
Re: copy files failure
Glad to have partly helped you! 

Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
InstallAware MVP
Who is online
Users browsing this forum: No registered users and 113 guests