Results 1 to 5 of 5

Thread: Running Custom Actiona in silent mode

  1. #1
    Join Date
    Aug 2009
    Posts
    15

    Running Custom Actiona in silent mode

    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.

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    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.

  3. #3
    Join Date
    Aug 2009
    Posts
    5

    Question I don't think that answers the question...

    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?

  4. #4
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    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.

  5. #5
    Join Date
    Aug 2009
    Posts
    5
    Quote Originally Posted by RobertDickau View Post
    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.
    Thank you, Robert. However, a much more useable interface would be having it as an option in the custom action wizard and on the panel. This isn't the only simple, common task that InstallShield makes difficult.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •