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

  • SEARCH
  • Home
  • 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 824217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:04:05+00:00 2026-05-15T03:04:05+00:00

I am trying to package a com dll in an msi. I want the

  • 0

I am trying to package a com dll in an msi. I want the setup to run a batch file afterwards.
The batch file basically points to the WINDOWS\Microsoft.NET\Framework\v2.0.50727 folder and runs the regasm command to register the assembly.

How do I get the setup to do this?

Thanks.

  • 1 1 Answer
  • 0 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-15T03:04:06+00:00Added an answer on May 15, 2026 at 3:04 am

    You can’t run batch files straight from a VS setup project, but I think you can run scripts that can execute them. Something like this might work:

    Set s = CreateObject( "WScript.Shell" )
    cmd = "yourbat.bat"
    s.Run ("cmd /C " & """" & command & """")
    Set s = Nothing
    

    This might not work on all computers though if they don’t have the script host installed already, so it might be better to come up with a non batch file way.

    Edit: Just remembered a possibly better way of doing this.

    I think it would work to, on your pc run RegAsm with the /regfile parameter which creates a regfile containing all the settings needed. Then just add that regfile to your setup project and you won’t have to run RegAsm on the client’s computer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement this package http://code.google.com/p/python-progressbar/ when downloading a file like below:
Here's what I'm trying to run on Android 1.6: package com.healthlogger.test; public class AllTests
I'm trying out the LoaderCursor example in the API Demo: package com.example.android.apis.app; import android.app.Activity;
I am trying to use the myType class declared in the package com.mycompany.myproject in
Ok, so I'm trying to google the win32com python package and the python.Interpreter COM
I'm trying to run the following application which attempts to load a file (
I have an SSIS Package that utilizes a COM Interop (Interop.RFCOMAPILib.dll) around RightFax's COM
from my application i'm trying to open another one, using this code: package com.copag.lanceappli;
Based on this link: http://msdn.microsoft.com/en-us/library/windowsazure/ee336243.aspx I'm trying this code to connect to SQL Azure
I am trying to time the performance of code in package com.company.somemodule (has class

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.