This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to add files to a feature from an installscript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
07:50 AM
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?
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?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
08:07 AM
You could disable logging during backup already existing files. Then this backup files and folder should not being removed during uninstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
08:23 AM
Thank you so much for that info. Worked great. Disable (LOGGING);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
08:56 AM
scottd72 wrote:
Thank you so much for that info. Worked great. Disable (LOGGING);
But don´t forget to enable logging afterwards.