cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
selwynreynolds
Level 7

<TARGETDIR> written to registy

I have an InstallScript MSI project. In the Registry View I have several entries where I want to write the TARGETDIR to the registry. In the Registry View I have: \DirName (where DirName is some folder name - user will specify TARGETDIR when selecting location for installation).

What gets written to the registry when the installation is run is:
DirName

How do I get the actual value of written instead of ""?

Thanks.
Labels (1)
0 Kudos

(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

For MSI-based projects, including Basic MSI and InstallScript MSI, you should use the MSI property notation. In this case, that should be [TARGETDIR]DirName or perhaps [INSTALLDIR]DirName.
0 Kudos
selwynreynolds
Level 7

Thank you very much! [INSTALLDIR]DirName worked perfectly.
0 Kudos