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
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)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
ikke
14 years ago
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.
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
Posted by:
ikke
14 years ago
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."
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.
so that the conversation will remain readable.