Have developed a script using Wise Installer for Windows 6.1

I am taking several open source tools (Eclipse, Jboss, Ant, etc), and installing them,

Each of the above packages is shipped as a single zip. I expand the zips, perform some customisation, and then rezip and creeate a self extracting zip.

Have written a single MSI script that took each of these and installed in a set sequence, setting the various enviornment variables.

Now wish to change this as at present I install the self extracting zips to the client machines before invoking the self extraction. What I want is a simple MSI script that calls each of the binaries on the network. Am attempting to use ExecuteFromPath action, but the path may change, and so what I want is the current path of the MSI binary, as the other files will always be in the same directory as that.

How do I find out what the path is to the currently running MSI script.

0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Hi there,

Use the SourceDir Property.
It contains the full-path to the directory the msi resides in when executing an MSI installation.

Answered 07/12/2006 by: peska
Senior Yellow Belt

Please log in to comment
in vbscript that would be:
sSourceDir = Session.Property("SourceDir")
Answered 07/12/2006 by: AngelD
Red Belt

Please log in to comment
The same in Jscript:
sSourceDir = Session.Property("SourceDir");

Gotta promote Jscript a bit ;-)
Answered 07/13/2006 by: peska
Senior Yellow Belt

Please log in to comment