cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nickeluring
Level 3

Installdir to registry?

Greetings,

I've got an InstallScript project, and I try to write some information to the registry - Install directory, User name, and Company.

In the Registry view:
I've tried to add string values and given them data such as [INSTALLDIR].
I was under the impression that this would read the INSTALLDIR property and write the value returned by the INSTALLDIR property to the registry. Instead it writes: "[INSTALLDIR]" to the registry. Not really what I want...

And how do I get the name and company the user enters in the user info dialog?

Thanks,
Nick
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

For InstallScript projects, perhaps try for the destination path.

Note that there are only a few predefined values that will be expanded; to define your own substitution values, perhaps see the TextSubSetValue function.
0 Kudos
Nickeluring
Level 3

Thanks, that worked for the installation path.
I'll have a look at the TextSubSetValue function, and hopefully I'll be able to extract the user info as well.

Thanks.
0 Kudos
Nickeluring
Level 3

Thanks Robert,

The TextSubSetValue function worked beautifully. 🙂

Cheers,
Nick
0 Kudos