How to find the setup location in an VBScript custom action for InstallShield?

耗尽温柔 提交于 2019-12-06 11:51:25

After a lot of messing around, I got it (actually found it in the InstallShield manual, and not Google, go figure :))!

This line of VBScript does the trick

disk1Path = Session.Property("SETUPEXEDIR")

The line above points to where ever the setup exe file was, so from there it's trivial to run any exe included with your install media.

Other useful ones I found, which I'll past here for reference are

'points to app data\downloaded install directory
MsgBox Session.Property("SourceDir")
'where the software wants to install to on the users system
MsgBox Session.Property("INSTALLDIR")

Not sure why it's so hard to find a good reference on MSI Standard properties (even just a list). The closest I found was this, but not all of them work (and not specifically for InstallShield at all). If anyone finds a good link with documentation about MIS Standard properties and their description please add a link here, so no one has to waste as much time on this as I did :).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!