Page 1 of 1
Modify the Maintenance - Dialog
Posted: Wed Jan 20, 2010 6:15 am
I try to change the default settings of the Maintenance-Dialog in my setup. In the default case it is possible to chose between 3 options: modify, repair and uninstall. In my setup I want the user just to be able to uninstall the software and not to repair/modify.
How can I customize the dialog for this?
I tried some scripts in the MSI-Code, but that did not work.
Thank you in advance
Posted: Wed Jan 20, 2010 11:23 am
You want to edit the dialog itself, deleting the unnecessary radio buttons, along with the related graphics, text, etc.
If you don't have dialog editor in your edition, use the Project Wizard to create a blank project, and instruct the Project Wizard to disallow maintenance mode. That way, you can copy-paste MSIcode from that new project which disallows maintenance and permits uninstall only.
Posted: Wed Jan 20, 2010 11:42 am
I tried it the way you describe first. I removed the buttons I do not need set the radion-button on "checked". But when I tested it on my system, the button was not marked as checked and when I clicked on "Next" the Program starts to reinstall my software. That is a case I do not want to have.
If the radio-button is not marked as checked and someone clicks on Next the program should not be installed.
Posted: Wed Jan 20, 2010 12:45 pm
With my next try I deactivated the maintenance-dialog in my project, but it did not worked. When I wanted to uninstall the software I was asked to install it.
Then I did it the other soluten and made a new project without maintenance-dialog and copied the part of the MSIcode which disalouws the maintenance-dialog into my project. Now it works!!!