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


in installshield project have vbscript custom action conditionally needs execute file packaged install.

normally current directory of vbs using code such as

scurpath = createobject("scripting.filesystemobject").getabsolutepathname(".") 

which, if returned location of setup.exe initiated install, should work.

however when running install, current path (on xp) c:\windows\system32 instead of location of setup.exe file expecting.

assuming output of installshield build looks following

disk1 ->setup.exe ->issetupprerequisites -->req1 -->req2 -->... ->otherreqs -->conditionallyrunme.exe 

how run "\otherreqs\conditionallyrunme.exe" vbscript custom action?

thanks!!

(note: realize there ways conditionally run exe files withing installshield, in case requirements not supported installshield - unless there way use vbscript custom action return value condition run file?)

after lot of messing around, got (actually found in installshield manual, , not google, go figure :))!

this line of vbscript trick

disk1path = session.property("setupexedir") 

the line above points ever setup exe file was, there it's trivial run exe included install media.

other useful ones found, i'll past here reference are

'points app data\downloaded install directory msgbox session.property("sourcedir") 'where software wants install on users system msgbox session.property("installdir") 

not sure why it's hard find reference on msi standard properties (even list). closest found was this, not of them work (and not installshield @ all). if finds link documentation mis standard properties , description please add link here, no 1 has waste time on did :).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -