cominstallshieldregasminstallscript

How to run RegAsm /codebase with an InstallScript project?


I tried this question on the InstallShield forum and it hasn't gotten any love. My company has an InstallScript project (non-MSI), and we need to run RegAsm /codebase on one of our DLLs. I found some tutorials online for doing this, but they don't seem to apply to our project type. That is, the options I need simply do not exist in the UI. That includes both suggestions here (https://www.iwasdot.com/installshield-execute-a-batch-script/) as well as anything involving custom actions (as I interpret from the docs that custom actions do not apply to InstallScript projects). How can I accomplish this with InstallScript? I am using InstallShield 2013 and I know extremely little about it.


Solution

  • I haven't used InstallScript projects in almost 20 years but I imaging you'd write an InstallScript function to call LaunchAppAndWait to invoke Regasm.

    If I recall correctly, InstallScript project types have events like After File Copy that you can use to put the code into.