Page 1 of 1

Starting Location of MSI

Posted: Wed Feb 28, 2018 6:59 pm
by elabacus
If I create a MSI, since I enabled "Build MSI outputs instead of EXE outputs", I not able to query the correct location of the MSI itself during execution.

When I query the variable MSIFILE, and display it in a MessageBOX,
I get a location as c:\Users\xxxx\AppData\Local\Temp\Mia1\OriginalMSIFileName.MSI

If I try to query EXEDIR, and display it in a MessageBOX,
I get a location as c:\ProgramData\mia2BC6C.tmp
The actual MSI I started is in a subfolder to C:\InstallAware
Is there a way to get the location of the MSI that is started ?

Thanks.