cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
scottd72
Level 7

How to add files to a feature from an installscript

Using an Installscript project, my goal for my setup is to find certain files already on the user's computer and back them up in a separate folder before I install the new files. The thing is, if the user uninstalls my application, the backed up folder will get removed before I have a chance to put those files back to their original places.

My solution to this is to create a component from my setup.rul script, and set that component to no uninstall. I just don't know how to add files and folders to components generated from the script. I am aware of the function FeatureAddItem(...) but I am not sure how to use it to do what I need to do. Can anybody help me please?
Labels (1)
0 Kudos
(3) Replies
Holger_G
Level 10

You could disable logging during backup already existing files. Then this backup files and folder should not being removed during uninstallation.
0 Kudos
scottd72
Level 7

Thank you so much for that info. Worked great. Disable (LOGGING);
0 Kudos
Holger_G
Level 10

scottd72 wrote:
Thank you so much for that info. Worked great. Disable (LOGGING);


But don´t forget to enable logging afterwards.
0 Kudos