I have been trying to populate the User Information screen after I write that information to a specific registry spot.. but with no luck.
I use the code below to write in the Shutdown section ..
And the code below to populate the user form.. tried to add this code to the Actions of the User Information screen in the Before Installing section.. but ended up adding to StartupCode:Registry.SetValue(HKEY_CURRENT_USER, "Software\\Metal Building Software", "User", SessionVar.Expand("%UserName%"), REG_SZ); Registry.SetValue(HKEY_CURRENT_USER, "Software\\Metal Building Software", "Company", SessionVar.Expand("%UserCompany%"), REG_SZ);
Am I go about this all wrong? If anyone has a better mouse trap.. please let me knowCode:-- -- load edit fields with information from registry if present -- -- User name if Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\Metal Building Software") then tmp = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\Metal Building Software", "User", false); SessionVar.Set("%UserName%", tmp); -- -- Company name -- tmp = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\Metal Building Software", "Company", false); SessionVar.Set("%UserCompany%", tmp); end;

Reply With Quote

