/build/static/layout/Breadcrumb_cap_w.png

Help for install shield 9

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"

:ENDPROG
Cls

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   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 15 years ago
Red Belt
0
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.
Posted by: Jamie B 15 years ago
Orange Senior Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ