JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Uninstall?

So what is the typical uninstall dialog flow. Is there an exit dialog that shows? I ask as my uninstalls go to the progress screen do some stuff and then just exits and the logs indicate the exit dialog was called but I never saw it. I am just trying to make sure this is typical or not as several fresh builds that install dummy folders do the same things, just seems different I guess.

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall?

Hello,

During an uninstall which is handled by the Windows Installer, the user interface level is set to simple progress and error handling (Basic UI).

When the Enhanced User Interface option from the the Themes - > Settings tab is set as Always (install, uninstall and maintenance) and performing an uninstall, then the uninstall process is handled through our API and the UILevel has a different value.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

Thanks you have been a big help so far and the responsiveness is helping making the decision to go this route.
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

So I got to revisit this topic under the impression that there is a setting to change the uninstall behavior, but I cannot find it as of yet. Did I misunderstand this? Where would I change this to allow for say the user to click a finish button after the uninstall is done?
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

So after some reading, It appears to do what I am wanting I would need to use a custom action on uninstall to display the Finish/Exit dialog. The UI will almost always be full, but it needs to indicate that it finished.

Am I understanding this correctly?
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

Still waiting on an answer as to if we can add dialogs to the uninstall when using teh Enhanced User Interface?

I need to do a confirmation screen before delete and possibly a finish screen.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall?

Hello,

I apologize for my delay reply, we have a couples of days off, Easter holidays.
Please take a look on the Uninstalling from program and features forum thread which debates this subject.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

Start of post that was refered to:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello,

I'm afraid you cannot achieve this. However, as a workaround (when the "Enhanced UI" feature is always enabled) you can proceed like this:
- Go to "Table Editor" page and select the "Registry" table. Set the "Value" field of the "UninstallString" row like this:
CODE: SELECT ALL
[AI_UNINSTALLER] /i [ProductCode] ASK="uninstall"

- Go to "Dialogs" page and add a new dialog in sequence (i.e. NewSeqDialog) after "Maintenance -> PrepareDlg". Here add a check box control like this:
Text: Uninstall
Property Name: ANSWER
Value: checked
Default Value: checked
- On the [Next>] button add the following published events:
Name: Uninstall one or more features
Argument: ALL
Condition:

- Go to "Table Editor" page, select the "InstallUISequence" table and set the "Condition" field of the "ExitDialog" row like this:
CODE: SELECT ALL
(NOT AiSkipExitDlg OR NOT AI_INSTALL) AND NOT ASK

- Go to "Custom Actions" page, select the "Wizard Dialogs Stage" and from its context menu choose "Show standard action -> User Selection -> MaintenanceWelcomeDlg". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:
CODE: SELECT ALL
NOT ASK

- Select the "Wizard Dialogs Stage" and from its context menu choose "Show standard action -> ExecuteAction". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:
CODE: SELECT ALL
ANSWER OR NOT ASK


- Move the "NewSeqDialog" custom action under "Wizard Dialogs Stage -> User Selection -> ResumeDlg". In the "Execution Condition" field, from "Standard Action Properties" right pane, set the following condition:
CODE: SELECT ALL
ASK

- Build and run your project.

Please keep in mind that in order to implement this workaround you need at least an "Enterprise" project type.

Let us know if this helped.

All the best,
Daniel
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Alright I followed the above but did not understand the text I put in red. Execute action was selected for all by default and disabled. As I read the text in red I should be able to right click on the "Wizard Dialogs Stage" and get to an "Execution Condition" field in the right pane, but could not do this. Did I miss something?

Has the software changed in how that is done as that is a 2 year old? Is there an example aip file that demonstrates what you are suggesting doing here?
JustAProgrammer
Posts: 26
Joined: Mon Apr 07, 2014 10:11 pm

Re: Uninstall?

I posted this in the wrong thread to start off with, so first off sorry about that.

I have a messagebox to show that the install has finished if the program was uninstalled from the windows add/remove programs dialog. But now I need to do a confirmation before uninstall to make sure that is what is wanted. I tried the post Dan referred to but could not figure out the step in red and thus when ran it did not work for me.

Is there an aip example of doing this or updated instructions on how to achieve this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall?

Hello,
But now I need to do a confirmation before uninstall to make sure that is what is wanted.
Please take a look on our EXE setup - uninstall confirm dialog forum thread which debates a similar subject.

Let me know if that helped, otherwise please give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”