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
- :
- Re: Silent Install - But backup folders first with Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Anonymous
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
12:23 PM
Silent Install - But backup folders first with Custom Action
As part of my Basic MSI Project, one of the requirements is to backup folders before installing - this has been achieved via a custom action and works when the GUI is shown.
However, another requirement is to have the ability to install silently. This fails at the point the custom action occurrs.
I have read up on deferring custom actions, but I believe these only run after the files have been moved!! Which obviously does not work for me.
Can anyone suggest a way of achieving this?
However, another requirement is to have the ability to install silently. This fails at the point the custom action occurrs.
I have read up on deferring custom actions, but I believe these only run after the files have been moved!! Which obviously does not work for me.
Can anyone suggest a way of achieving this?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
12:43 PM
Deferred mode is indeed when data transfer or removal is taking place, but it's made up of many steps. Perhaps try an appropriately conditioned deferred custom action that runs before, say, RemoveFiles?
Anonymous
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2008
11:34 AM
So for this to work I would also have to change "In-Script Execution" to be deferred?
If so how will this change the way in which the Custom Action is called when using the UI?
If so how will this change the way in which the Custom Action is called when using the UI?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2008
07:01 PM
If you want the action to run for both silent and UI installations, you might move the action to the Execute sequence and change it to deferred execution. In general, deferred mode is strongly recommended for any actions that touch the target system; the UI sequence and immediate mode are for gathering information but not making system changes.