/build/static/layout/Breadcrumb_cap_w.png

Setting the destination drive in a registry string value

I'm writting a MSI based installer and need to add the Windows root drive letter to a string that is written to the registry. I create a string value "MyPath" with a string "--:\MyProgPath". Since Windows can be installed on drives other than C:, the drive letter has to reflect the Windows drive. Are there any drive macros in Windows setup that can be used? Any help would be greatly appreciated. [:)]

0 Comments   [ + ] Show comments

Answers (3)

Posted by: WiseUser 20 years ago
Fourth Degree Brown Belt
0
Assuming I've understood the question - you want the "WindowsVolume" property?
Posted by: BlueGuru 20 years ago
Yellow Belt
0
Thanks for the response, can I just add the "WindowsVolume" property in the registry string? If so, how would I do that?
Posted by: aogilmor 20 years ago
9th Degree Black Belt
0
Easy:

Add a registry key/value such as:

[HKLM\Software\My Software\Drive Name]
StringValue=[WindowsVolume]

You can also place such properties in an INI file.

ORIGINAL: BlueGuru

Thanks for the response, can I just add the "WindowsVolume" property in the registry string? If so, how would I do that?



Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ