Problem with automatic deleting HKCU Key - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Andreas
Posts: 6
Joined: Mon Nov 02, 2009 11:50 am

Problem with automatic deleting HKCU Key

Hello,

I have repackage an application.
The Applications stores some Keys under HKCU and HKU (.default and user related).
If I locked out my User from Windows and logged in again, the Regkeys stored in HKCU are empty. That´s a little bit strange, because I thought the .default Key under HCU is for every logged in User.

Any hints?

Thanks
Andreas
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem with automatic deleting HKCU Key

Hello,

Please note that the .default key under HKU is not the default user. Please read the following article for a better explanation:
http://blogs.msdn.com/oldnewthing/archi ... 86493.aspx

I hope this answered your question.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Andreas
Posts: 6
Joined: Mon Nov 02, 2009 11:50 am

Re: Problem with automatic deleting HKCU Key

Ok, I tried to generate the registry keys in "HKU/S-1-5-18\software\Program1" but still the same problems. After Accountlogin no entrys on "HKCU\software\Program1".
The normal Setup.exe of the Program runs fine, but repackaging runs on the problems above. Don´t know why...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem with automatic deleting HKCU Key

Hi,

Please note that the "S-1-5-18" identifier is for the local system account. This is explained in the article mentioned by Gabriel. Since the entries are created for the local system account, any other account will not see them. Also, please note that the HKEY_USERS hive usually handles system accounts.

I'm not sure what the original setup does. Perhaps it creates the registry entries automatically when a user logs in. Can you please specify what setup you are repackaging?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”