/build/static/layout/Breadcrumb_cap_w.png

Getting Path of MSI script

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.

Onkar

0 Comments   [ + ] Show comments

Answers (3)

Posted by: peska 18 years ago
Senior Yellow Belt
0
Hi there,


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


peska
Posted by: AngelD 18 years ago
Red Belt
0
in vbscript that would be:
sSourceDir = Session.Property("SourceDir")
Posted by: peska 18 years ago
Senior Yellow Belt
0
The same in Jscript:
sSourceDir = Session.Property("SourceDir");

Gotta promote Jscript a bit ;-)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ