How to stop the installation after copying files. During an update the installer needs to copy the new files to the installation folder and then stop the installer without processing anything or removing the files copied. How to do this please?
Yes, this could be implemented by lanching a custom action that will fail, thus the whole installation will fail (the FatalError dialog will be displayed).I have a question, is there a way to close the installer when the Next button is clicked in a custom dialog instead of going to the next dialog?
This works great. But it shows a message that the script is an error before showing the FatalError dialog. How to prevent the error message?Sorin wrote:Hello K,
You are welcome!
Yes, this could be implemented by lanching a custom action that will fail, thus the whole installation will fail (the FatalError dialog will be displayed).I have a question, is there a way to close the installer when the Next button is clicked in a custom dialog instead of going to the next dialog?
This is the complete method:
- go to "Custom Actions" page and create a new "Execute inline script code" custom action. Configure this custom action with an invalid code thus it will fail (for example an empty line)
- go to "Dialogs" page and select the Next button. Create a new Execute custom action published event for the above custom action
- select FatalError dialog from "Special Dialogs"" section. This dialog is displayed when a custom action fails. You could edit the dialog in order to not specify that there was an error with the installation.
Best regards,
Sorin
Sorin wrote:Do you use Enhanced User Interface (from "Themes" page, settings). If you do,could you please try to use a "Run PowerShell Inline Script" custom action instead of the "Execute Inline Script Code" one?
FOLLOW US
Get the latest news in Application Packaging