Community Forums
Results 1 to 5 of 5

Thread: Running a Custom Action (exe) in Silent mode?

  1. #1
    Join Date
    Apr 2010
    Posts
    2

    Running a Custom Action (exe) in Silent mode?

    Hello,

    I've created a msi file with an custom action. In this custom action, there will run an exe at the last part of my installation. Is there any way to start this exe installation in silent mode? I am not sure because this installation is an extra programm and during this installation there will be some message boxes ect.

    kind regards

    manuel

  2. #2
    MichaelU's Avatar
    MichaelU is offline InstallShield Software Engineer
    Join Date
    Jan 2004
    Location
    Schaumburg, IL
    Posts
    4,683
    This depends on one of two things. Are there command-line parameters you can pass to this EXE to make it silent? If not, can you write custom code that launches it with SW_HIDE, and will it work when launched that way? (Windows Installer's Custom Action support for EXE files is unable to launch EXEs silently.)
    Michael Urman - Staff Software Engineer - Flexera Software: InstallShield Team

  3. #3
    Join Date
    Jul 2010
    Posts
    28
    Hello,

    I´m trying to run a .exe from a custom action.

    Custom Action => New Exe => installed with product.

    Asuming that: Return Processing= Asyn(wait), Scrip Exe= Immediate and Exe Schedule= Always is set correctly, i think my problem is with the "Executable FileKey".

    I dont know exactly how to do this, i try to added has a Support File, and make a component and set is key to the file, and that way i can see in the Executable FileKey comboBox, but still not working.

    How i can do this? Tnks

  4. #4
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,243
    To launch a file that you're installing, your action will need to be set to run in Deferred mode (changed from Immediate mode), somewhere after InstallFiles.

    (To avoid running on repairs, uninstall, etc., you might also add a condition Not Installed---or better yet a component condition---but first things first...)

  5. #5
    ashraz.developer Guest

    .exe in

    I want to run my .exe or batch file after installation complete in custom action silently which command line should i am use? please help

Posting Permissions

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