0

I need to set Key attribute value at run time.

<RegistryKey Root="HKLM" Key="Software\ApplicationName">

I will get application name from the user. I want to append application name with default key.

For example: if the application name is test then key should be "Software\Test"

Thanks

4

1 回答 1

0

This can be achieved in 2 simple steps:

  1. Declare your <RegistryKey> element like this:

    <RegistryKey Root="HKLM" Key="Software\[APPLICATIONNAME]"> ... </RegistryKey>

  2. Save the user input to the APPLICATIONNAME property

于 2012-12-24T15:11:12.450 回答