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: How to disable Cancel button for just a moment at the end of installation?
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 11, 2009
03:27 AM
How to disable Cancel button for just a moment at the end of installation?
As the title, when installing or uninstalling a product, especially when uninstalling, user can cancel the installation, and the installer should do rollback work.
The question is how to perform the uninstallation. One solution is, backup all user data (so that installer could do rollback work) and at the end of uninstallation delete them quickly. Another solution is delete user data directly at the last moment of uninstallation.
In these two mement, user can still click Cancel and cause the rollback progress. But the userdata cannot be restored any more. Is there a method to disable the cancel button - I mean the cancel button on MSI standard UI, not IS dialog.
The question is how to perform the uninstallation. One solution is, backup all user data (so that installer could do rollback work) and at the end of uninstallation delete them quickly. Another solution is delete user data directly at the last moment of uninstallation.
In these two mement, user can still click Cancel and cause the rollback progress. But the userdata cannot be restored any more. Is there a method to disable the cancel button - I mean the cancel button on MSI standard UI, not IS dialog.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
09:27 AM
Perhaps see this old newsletter tip on the subject (PDF): http://www.acresso.com/webdocuments/PDF/disable.pdf.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
08:41 PM
RobertDickau wrote:
Perhaps see this old newsletter tip on the subject (PDF): http://www.acresso.com/webdocuments/PDF/disable.pdf.
I have read it before.
Sorry, it is of no help. It says using command line "msiexec /i product.msi /qb!". But when product is installed, IS wrote "msiexec /X{PRODUCT_CODE}" in HKLM\Software\Misrosoft\Windows\CurrentVersion\Uninstall\PRODUCT_CODE\UninstallString automatically. Should I change this behavior? And how to?
Is there a way to disable or hide the button through script?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
08:50 PM
I have read it before.
Sorry, it is of no help. It says using command line "msiexec /i product.msi /qb!". But when product is installed, IS wrote "msiexec /X{PRODUCT_CODE}" in HKLM\Software\Misrosoft\Windows\CurrentVersion\Uninstall\PRODUCT_CODE\UninstallString automatically. Should I change this behavior? And how to?
Is there a way to disable or hide the button through script?
Sorry, it is of no help. It says using command line "msiexec /i product.msi /qb!". But when product is installed, IS wrote "msiexec /X{PRODUCT_CODE}" in HKLM\Software\Misrosoft\Windows\CurrentVersion\Uninstall\PRODUCT_CODE\UninstallString automatically. Should I change this behavior? And how to?
Is there a way to disable or hide the button through script?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
10:16 PM
As described in that article, you can also use MsiProcessMessage or Session.Message in a custom action to hide the Cancel button.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
11:34 PM
RobertDickau wrote:
As described in that article, you can also use MsiProcessMessage or Session.Message in a custom action to hide the Cancel button.
It works! Thanks a lot!
I saw "Disabling the Cancel button for a full-UI installation requires a custom action..." so didn't have a try...sorry~~