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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 01/28/2010 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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.
Answered 01/28/2010 by: milindsm
Blue Belt

Please log in to comment
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?
Answered 01/29/2010 by: VBScab
Red Belt

Please log in to comment
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??
Answered 01/29/2010 by: milindsm
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity