cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
stuikerd
Level 4

Installscript set file permanent

I"m copying a file to a location on the drive with XCopyFile function. But on uninstall the file is deleted.
I want this file to stay on the drive.

Now i found that you have to set the file to permanent.Now how do you do that at runtime?

Adding the file in the component section is not an option.

thx in advance
Labels (1)
0 Kudos
(2) Replies
DebbieL
Level 17

You can disable logging by calling the function Disable with the LOGGING constant immediately before performing operations that should not be logged for uninstallation—for example, your XCopyFile call. Then you can re-enable logging by calling Enable with the LOGGING constant after the XCopyFile call.
0 Kudos
stuikerd
Level 4

DebbieL wrote:
You can disable logging by calling the function Disable with the LOGGING constant immediately before performing operations that should not be logged for uninstallation—for example, your XCopyFile call. Then you can re-enable logging by calling Enable with the LOGGING constant after the XCopyFile call.

yes this works for me, thx 😉
0 Kudos