bloo
Posts: 9
Joined: Tue Aug 20, 2019 10:23 am

Could not add registry key

Hi

Nobody answered on my first topic, I hope that will change soon
viewtopic.php?f=2&t=40414
After the installation it does not all the keys I have specified
To be specific it is HKLM Software part of the hive Microsoft/Windows/CurrentVersion etc.
It does not add anything.
Why is that?
Catalin
Posts: 6596
Joined: Wed Jun 13, 2018 7:49 am

Re: Could not add registry key

Hello,
Nobody answered on my first topic, I hope that will change soon
I have answered your other thread.
After the installation it does not all the keys I have specified
This might happen if you build a 32-bit setup and install it on a 64-bit machine. Please keep in mind that 32-bit packages use redirected locations on 64-bit machines. Please have a look on the "Registry Redirector" article for more information about this.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bloo
Posts: 9
Joined: Tue Aug 20, 2019 10:23 am

Re: Could not add registry key

Thank you!
Can you please tell me is there an option in AI to add REG_QWORD type of value?
Catalin
Posts: 6596
Joined: Wed Jun 13, 2018 7:49 am

Re: Could not add registry key

Hello,
Can you please tell me is there an option in AI to add REG_QWORD type of value?
Unfortunately, it is not possible to add a registry value of the REG_QWORD type. This is mostly because the "Registry" table does not support QWORD values:

https://docs.microsoft.com/en-us/window ... stry-table


However, we already have this on our TODO list (as a custom feature) and hopefully this will be implemented in a future version of Advanced Installer.

As a workaround, you could create a custom action that will write your REG_QWORD value in the registry.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bloo
Posts: 9
Joined: Tue Aug 20, 2019 10:23 am

Re: Could not add registry key

Thank you for all your help.

I have a new problem.
I added a couple of new keys and values to my project, and, during installation, an error pops up for one newly-added key, and for another, old one, which worked fine
It says that I don't have sufficient access, and I have tried with various permissions, but it is still the same
How do I resolve this?
Thank you :)
Catalin
Posts: 6596
Joined: Wed Jun 13, 2018 7:49 am

Re: Could not add registry key

Hello,

Writing to the registries requires administrative privileges.

With that being said, could you please check the "Run as administrator" option from "Install Parameters" page and let me know if that helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”