windows installer - How to get vbscript location -
if using in custom action of msi, wscript.scriptname or wscript won't work.
the below give execution location (i.e., msiexec.exe) not vbscript or msi file location.
set wshshell = createobject("wscript.shell") strcurdir = wshshell.currentdirectory we can use below 1 script location work in immediate execution not in deferred.
cdsd = session.property("sourcedir") please let me know if other alternative use in msi custom actions, specially deferred.
hope helps! maybe? can't tell if vbscript or not intended usage.
srcdirlen=len(wscript.scriptfullname)-len(wscript.scriptname)-1 sourcedir=left(wscript.scriptfullname, srcdirlen) i think answer might you're looking however.
sourcedir = session.property("setupexedir") 'credit link below how find setup location in vbscript custom action installshield?
after edits... got nothing else man... sorry, msi little out of element. =) tried.
Comments
Post a Comment