vinifera Posted November 13, 2015 Share Posted November 13, 2015 I've noticed that .reg file does NOT accept environment variablesas %APPDATA% or %SYSTEMDRIVE% or %PROGRAMFILES%but it has ti be written fixed locationas C:\Program Fileswhich is freaking stupid considering that deployement of NT 6 can be automatic just as NT 5 wasso how do i bypass this ?what if user chooses to install OS on F or G drive, then fixed path would be worthless... Link to comment Share on other sites More sharing options...
jaclaz Posted November 14, 2015 Share Posted November 14, 2015 Are you really sure that .reg files do not support them? All this time believing that the REG_EXPAND_SZ type was about using those kind of (environment) variables.... ...did it change with 7? https://msdn.microsoft.com/en-us/library/windows/desktop/ms724884(v=vs.85).aspx Look for any existing key with an environment variable in it's value and export it to a .reg file, you will find that it will come out in .reg as "hex(2)" and the value will be in a set of hex values. and of course there are suitable converters:https://www.raymond.cc/blog/convert-windows-registry-hex-to-text/ jaclaz Link to comment Share on other sites More sharing options...
vinifera Posted November 15, 2015 Author Share Posted November 15, 2015 *od damnit I hate microslop ! oh and thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now