Robert Wilkinson
Robert Wilkinson

Reputation: 1199

Accessing msi filename from within msi file

Is it possible to obtain the filename of an msi file from inside the msi file (when using either install shield or wix)? I am looking for an easy solution to a problem I am trying to solve and was going to key off of the msi filename not being "x".

I have an existing msi file that I need to run silently and only accepts one command line parameter. I need this change fairly quickly and am just researching my options. Changing the name of the msi file would be a neat way to change the behavior of the install.

Upvotes: 0

Views: 930

Answers (2)

Michael Urman
Michael Urman

Reputation: 15905

Note that if you do key off the filename, generally the name during maintenance or removal may not match the original install name. Instead it will be using a cached file with an arbitrary name.

Upvotes: 1

Rob Mensching
Rob Mensching

Reputation: 36026

That's pretty weird request but OriginalDatabase Property will get you the full path.

Upvotes: 2

Related Questions