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
- :
- custom action placement
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
Aug 12, 2008
01:39 PM
custom action placement
I have a batch file that runs as a custom action. I have it setup to run deferred after InstallFiles.
the last line of my batch file runs iisapp.vbs in order to recycle an application pool that I installed. unless the application pool is correctly recycled durring the installation, the person installing the app will have to go and manually recycle.
The code executes correctly and the batch file tells me that the app recycled, but it does not work right. I still have to manually recycle the application pool using IIS manager or the command line after the installation has completed.
I thought this could have something to do with the placement of the recycle command and a few questions came to mind:
1) When are the deferred custom actions actually executed?
2) What is the last place in the execution order that a deferred custom action can be placed?
3) Is it possible that I need to execute my recycling code at a different point in the sequence?
Thanks,
Josh
the last line of my batch file runs iisapp.vbs in order to recycle an application pool that I installed. unless the application pool is correctly recycled durring the installation, the person installing the app will have to go and manually recycle.
The code executes correctly and the batch file tells me that the app recycled, but it does not work right. I still have to manually recycle the application pool using IIS manager or the command line after the installation has completed.
I thought this could have something to do with the placement of the recycle command and a few questions came to mind:
1) When are the deferred custom actions actually executed?
2) What is the last place in the execution order that a deferred custom action can be placed?
3) Is it possible that I need to execute my recycling code at a different point in the sequence?
Thanks,
Josh
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 14, 2008
06:44 AM
The last position where you can schedule a deferred CA is directly before the InstallFinalize Action.
Is your Batch-file working when executed outside the setup ?
You mentioned that you execute a .vbs file, maybe it can be a solution to start this script as a deferred VB-Custom Action, so you can have control over return codes and write to the MSI installation log.
Barbara
Is your Batch-file working when executed outside the setup ?
You mentioned that you execute a .vbs file, maybe it can be a solution to start this script as a deferred VB-Custom Action, so you can have control over return codes and write to the MSI installation log.
Barbara