/build/static/layout/Breadcrumb_cap_w.png

End Dialog through custom action

If I return something other than ERROR_SUCCESS from the custom action, it directly takes me to the Finished Dialog where I can click "Close" and come out of installation.

Can I close this dialog from the custom action itself?? I tried terminating the process, exit(0) but nothing seem to work.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: jmcfadyen 14 years ago
5th Degree Black Belt
0
you can call a doaction to call a type 19 ca

or set a property which flags a conditional type 19

i.e.

session.property ("TERMINATEINSTALL") = "stop cos this failed"

Type 19 CA

InstallExecuteSequence = TerminateInstall, TERMINATEINSTALL , xxxx
Posted by: milindsm 14 years ago
Blue Belt
0
I added CA with type 19 but I don't want to show any error message. I am restarting the installation of my pkg from the custom action based on certain condition.
Posted by: anonymous_9363 14 years ago
Red Belt
0
I am restarting the installation of my pkg from the custom action based on certain condition. Eh?!? Wouldn't it be easier to condition the features/components to do that?
Posted by: milindsm 14 years ago
Blue Belt
0
OK... let me explain you my scenario. I need to install some driver even before the actual installation begins to protect my installed files. To achieve this, I am calling RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 PATH_OF_INF from custom action that runs before WelcomeDialog.

I did ShellExecute with "runas" verb in custom action as it was throwing an error while copying a driver file to system32. Now it works fine by popping up the elevation prompt. To avoid this repeated pop-up, I want to start the whole installation in elevated mode (i.e. whenever user double clicks on .MSI, it should ask for an elevation and should remain in the same mode till the end). And that's the reason for "restarting the installation..." business. I am calling msiexec with "runas" verb and passing "OriginalDatabase" property to it as an argument.

Is there any descent way of doing it??
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ