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.
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:
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
RegAsmwith the/regfileparameter which creates a regfile containing all the settings needed. Then just add that regfile to your setup project and you won’t have to runRegAsmon the client’s computer.