Hi, guys,

In my project, we need to update a software. In the intall shield file, it removes the existing files before coping from new version. I want to have a backup copy of the data file in the old version before removing the old files. I added a custom action

working directory= WindowFolder
Filename & command line = cmd.exe /c "C:\Program Files\SiiDRILL\Yield Point\installation.bat"
return processing = Synchronous (check exit code)
In-Script Execution = Immediate execution
Execution Scheduling = Always execute
Install Exec Sequence = after installValidate

In the installation.bat :

IF NOT EXIST "C:\Program Files\SiiDRILL\Yield Point\YPData5.mdb" GOTO ENDPROG
mkdir "C:\Program Files\SiiDRILL\Yield Point\BACKUP"
copy "C:\Program Files\SiiDRILL\Yield Point\YPData5.mdb" "C:\Program Files\SiiDRILL\Yield Point\BACKUP\YPData5.mdb"


It failed to copy the database before removing the old files.

Could you please give me some advise.

Thank you very much.

I’m looking forward to hearing from you.
0 Comments   [ - ] Hide 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.
Answer this question or Comment on this question for clarity


As ever, take a verbose log of the installation. That will show you where in the sequence the RemoveExistingProducts action occurs, as well as the other 'Remove[whatever]' actions.
Answered 12/15/2008 by: VBScab
Red Belt

Please log in to comment
You can use the MoveFile table to do this instead of shelling to a batch file.

You may need to re-sequence the MoveFiles action earlier depending on where your Remove actions are.
Answered 12/15/2008 by: Jamie B
Orange Senior Belt

Please log in to comment