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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Assuming I've understood the question - you want the "WindowsVolume" property?
Answered 12/08/2004 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
Thanks for the response, can I just add the "WindowsVolume" property in the registry string? If so, how would I do that?
Answered 12/14/2004 by: BlueGuru
Yellow Belt

Please log in to comment
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?



Answered 12/14/2004 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity