When I run an ipf wrapper it show some strange behaviour.
In this wrapper i do some file copies to a backup directory .

item: Create Directory
Pathname=%BACKUPDIR%\AS400
end
item: Create Directory
Pathname=%BACKUPDIR%\Keyboard
end
item: Create Directory
Pathname=%BACKUPDIR%\Private
end
item: Remark
end
item: Copy Local File
Source=%_ALLUSERSPROFILE%\Start Menu\Programs\AS400\*.*
Destination=%BACKUPDIR%\AS400
Flags=0000000011100010
end
item: Copy Local File
Source=%_PROGRAMFILES%\IBM\Client Access\Keyboard\*.*
Destination=%BACKUPDIR%\Keyboard
Flags=0000000011100010
end
item: Copy Local File
Source=%_PROGRAMFILES%\IBM\Client Access\Emulator\Private\*.*
Destination=%BACKUPDIR%\Private
Flags=0000000011100010
end


When I delete some files at the end of the wrapper , they are backed up to this directory, while there is no code instructing the wrapper to do this. What could be causing this strange behaviour ?

item: Delete File
Pathname=%_COMMON_DESKTOP_DIR%\IBM*System*i*Access*for*Windows.*
end
item: Delete File
Pathname=%_COMMON_DESKTOP_DIR%\System i Navigator.lnk
end
0 Comments   [ + ] Show Comments

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.

Answers

0
they are backed up to this directory

Which directory?
Answered 03/22/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Unless I'm very much mistaken, iSeries Access (neé Client Access) is installed via an MSI. In that case, it would be somewhat simpler to use the DuplicateFile table to copy/back-up files.
Answered 03/22/2010 by: VBScab
Red Belt

Please log in to comment
0
I am using the vendor msi but i am doing additional actions via the wrapper.

The backup to the C:\backup directory is done before installing and the delete is done afterwards.
The deletion of the file(s) should not have anything to do with the backup and still copies of the deleted files are kept in this C:\backup directory.
Answered 03/23/2010 by: ikke
Senior Purple Belt

Please log in to comment
0
I am using the vendor msi but i am doing additional actions via the wrapper.Why? Everything you want to do can be accomplished within the MSI. I am now going to stop banging my head against this particular wall. Feel free to continue if it suits you. :)
Answered 03/23/2010 by: VBScab
Red Belt

Please log in to comment
0
Someone else provided the solution
Apparently this Automatic Runtime Variable was the culprit
Excerpt from the wisescript editor help
"BACKUPDIR If this is set to a path, any files that are replaced during [left]installation are backed up. This variable is set by the end[/left]user on the Backup Replaced Files dialog."
Answered 03/24/2010 by: ikke
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity