Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 240997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:42:59+00:00 2026-05-11T20:42:59+00:00

I am having no success in modifying a Windows Installer MSI to run a

  • 0

I am having no success in modifying a Windows Installer MSI to run a batch file after the primary output has been installed. I have searched for this and found many suggestions, but nothing that works.

Add a Custom Action
Custom actions can only be executable files. A batch file is not executable.

Create a Windows Scripting Host executable that runs the batch file
Many people have tried to do this, including on SO, and no one has been able to get this to work.

Use WIX or InstallShield
I do not have the time or authority to change company installer technology.

Edit the .msi with Orca and add a custom property, then a custom action, then edit the InstallExecuteSequence, …
I have been trying this for hours and have only created installers that throw a system error when I run them.
  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:42:59+00:00Added an answer on May 11, 2026 at 8:42 pm

    What you said above is incorrect:

    Custom actions can only be executable
    files. A batch file is not executable.

    Custom Actions (even without tools like InstallShield) can be .EXE, VBScript, JScript, or DLL based. If you write a DLL, you can write whatever code you want to call a batch file or make any changes you want to the system — there is no limit.

    Update: an example that worked for me: (entry in CustomAction table)

    Action Test
    Type 34
    Source SystemFolder
    Target cmd.exe /c c:\test.bat
    ExtendedType <blank>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been having some success with JQGrid but I'm now in a situation where
I'm using a basic ajax function with on success having success: function(html){ jQuery(#output).html(html); }
After reading documentation and googling once again and having not success with the dispatching
I've been trying to get this working, and not having 100% success, basically trying
I'm not having much success when attempting building pgmagick on CentOS 5.6. I've installed
I'm not having much success when attempting building pgmagick on OS X Lion with
I'm using XSLT and having great success, just got a couple of problems. Warning:
How can I do something like if sys.argv[0] != '%windir%\\blabla.exe' I'm having no success
Having issues referencing $(this) from within a the nested ajax 'success' function... I know
I'm having success when I use this code to get a string from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.