PDA

View Full Version : Copy question



bnorton916
10-25-2005, 12:52 PM
This seems like a basic question so please excuse my ignorance.

I need to do copy a file something to a backup.

This works fine as long as there is no backup file already there! :mad:

I looked for an option in the copy action to overwrite the target file but found none.

I guess I could check to see if the file exists and if it does remove it, but that seems like alot of work. Tell me I am missing something or where to look.

Thanks
Bill

TsungH
10-25-2005, 02:53 PM
You may want to describe how you are backing up the file.
I looked for an option in the copy action to overwrite the target file but found none.

bnorton916
10-25-2005, 03:11 PM
I am using the copy file action, I also tried the move file action.

I am looking to see if I can change parameters in the component that this action is in.

All I want is to copy a file like so:

copy c:\foo.txt c:\foo.txt.orig

But if c:\foo.txt.orig already exists installshield throws an error.

TsungH
10-26-2005, 03:47 PM
Are you referring to MSI standard actions, DuplicateFiles action and MoveFiles action? If not, what do you mean by "the copy file action" and "the move file action?"
I am using the copy file action, I also tried the move file action.RemoveFile table may be what you are looking for.

bnorton916
10-27-2005, 10:16 AM
I am using InstallShield Universal Premier 11.

Am I in the wrong forum?

If not, then I am in the Behavior and Logic->Sequences->Explorer->Install
section.

If so, where should I be asking this question?

TsungH
10-27-2005, 04:08 PM
Looks like you have found it. Interested parties please follow up here (http://community.installshield.com/showthread.php?t=153450).