I am an installation to update our software. Depending on what version of the software the customer is using I need to do different things. The version being used is stored in the registry. I am attempting to use this:
TheVer = Registry.GetValue(HKEY_CURRENT_USER, "\\Software\\ECC\\GLOBE", "version", true);
SessionVar.Set("%ProductVer%",TheVer);
%ProductVer% , as far as I can tell, isn't getting a value. For example, I have tested the installation by hardcoding TheVer to a value and the rest of the installation works fine.
I am hoping this is a matter of me doing something stupid and just not seeing it due to over staring at the issue. I am also assuming that %ProductVer% can be set this way. I use this:
TheVer = Registry.GetValue(HKEY_CURRENT_USER, "\\Software\\ECC\\GLOBE", "version", true);
SessionVar.Set("%ProductVer%",TheVer);
%ProductVer% , as far as I can tell, isn't getting a value. For example, I have tested the installation by hardcoding TheVer to a value and the rest of the installation works fine.
I am hoping this is a matter of me doing something stupid and just not seeing it due to over staring at the issue. I am also assuming that %ProductVer% can be set this way. I use this:
Comment