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.
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)
Please log in to answer
Posted by:
jmcfadyen
14 years ago
Posted by:
milindsm
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
milindsm
14 years ago
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??
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.
so that the conversation will remain readable.