Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 5

Get path of a directory created in exe called in custom action


I am launching an exe file in custom action which installs another application in XYZ directory. Now the issue I am facing is that I need to set permissions to one of its files which is installed in this XYZ directory. To accomplish this I need to know the value of XYZ. Is there a way to accomplish it ?

I have no idea how to approach this problem so any help or advice is appreciated. Thanks!
Labels (1)
0 Kudos
(1) Reply
Level 9

So you are launching setup2 in your custom action and would want to know where setup2 installed its files.

so this setup2 is an MSI based installer ?

Does setup2 create any sort of user friendly registry entries with basic info of it's version, installation location which you can read (probably)?

Do you know the product code of this setup2? if yes, then query registry under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\<ProductCode of Setup2>" InstallLocation"
0 Kudos