Hi,
Is it possible to run custom actions in silent mode? Do custom actions have the support of Reduced, Basic, full and No UI like the .msi files? I would like to run some .exe files in the Basic UI mode, is this possible?
Cheers,
Ajanta.
Hi,
Is it possible to run custom actions in silent mode? Do custom actions have the support of Reduced, Basic, full and No UI like the .msi files? I would like to run some .exe files in the Basic UI mode, is this possible?
Cheers,
Ajanta.
A custom action normally runs when it's encountered in any UI mode; the UI sequence is skipped for reduced UI levels, though. In the Execute sequence, you can test the UILevel property to detect a silent, basic-UI, etc., installation.
However, running a silent installation won't automatically hide any windows or message boxes displayed by an EXE or DLL action.
Robert Dickau - This and That - Flexera Software
Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
Want more help? See our InstallTalk blog.
Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.
I think the question is simply "How do I hide the command window when running an executable from a custom action?"
For instance, running a command line program line NGEN - how to have the "DOS box" hidden?
If the executable being launched doesn't support a switch to run silently, then something akin to an InstallScript custom action that launches the executable using LaunchApplication with the SW_HIDE switch seems to be common practice.
Robert Dickau - This and That - Flexera Software
Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
Want more help? See our InstallTalk blog.
Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.