/build/static/layout/Breadcrumb_cap_w.png

Strange Backup phenomenon with wise ipf wrapper

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

Answers (5)

Posted by: timmsie 14 years ago
Fourth Degree Brown Belt
0
they are backed up to this directory

Which directory?
Posted by: anonymous_9363 14 years ago
Red Belt
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.
Posted by: ikke 14 years ago
Senior Purple Belt
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.
Posted by: anonymous_9363 14 years ago
Red Belt
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. :)
Posted by: ikke 14 years ago
Senior Purple Belt
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."
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