Executing a script file from a Windows Installer Custom Action

前端 未结 6 1598
时光取名叫无心
时光取名叫无心 2021-01-13 10:45

I need to execute a batch file as part of the un-install process in a Windows installer project (standard OOTB VS 2008 installer project-vdproj). One cannot execute a bat f

6条回答
  •  独厮守ぢ
    2021-01-13 11:08

    The wider you need to distribute your application, the more strongly I would recommend against scripted custom actions. I had written a bunch in the past, but I found that too many computers have problems running VBScript or JavaScript. I ended up rewriting them all in C++ to handle this situation. Here are a couple of posts that give an in-depth explanation on why you should avoid scripted custom actions:

    • VBScript (and Jscript) MSI CustomActions suck
    • VBScript (and Jscript) MSI Custom Actions (don't have to) suck

提交回复
热议问题