I want to create one registry key for all users in HKLM, but even if I specified that in the HKLM in "Registry" page, it is not getting created even though I install the installer on a machine having admin rights.
How can I achieve this using custom action if this is not possible?
Please take a look on the "Win 8 Registry Key Written to Wrong Location" thread which debates a similar problem and see if it helps. If not, please send us your project and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them.
Thank you so much for your reply. I have gone through the link you suggested. But, please note that we are supporting 64-bit only.
We have attached the log for your reference.
Even I tried it to do by vbscript and adding a "DoAction" of "Finish" Dialog, but even by doing so, it is not working.
Function CreateHKLMKeyFomHKCU(source)
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
The log file shows that the installation fails at the beginning because an incorrect path is set for the application folder in the "Install Parameters" page of your project. The path is "Asite\Adoddle Navigator QA", but it should be something like "C:\Asite\Adoddle Navigator QA" in order to work.
Please change that and send me a new verbose log of the installation along with the names of some registry entries that are not installed.
Thanks a lot for your reply, I corrected the APPDIR path, and rerun the installer and attached the log.
Also, I added Registry values in HKLM as we need to install plug-in for all users, but it is not getting installed in HKLM.
In addition, if I tried it using vbs but it no success, if I do it using C# custom action, will it make difference?
Please note that our application itself is getting installed for all users using Advanced Installer, but office plug-ins are not getting installed for all users.
The verbose log shows a lot of registry entries that were installed on the machine (many of them related to Office Add-Ins). You can see this starting with the 7792 line from the log.
Can you send me to support at advancedinstaller dot com a sample package that reproduces the problem, so I can test it on my side and investigate the problem?
I tried C# custom action and making registry entries using it and I tested it 2-3 times it does creates entries at proper location in HKLM. But, this entries are not getting cleaned when we uninstall, so I created one different Custom Action in the same C# dll, and created a new custom Action with the different function and selected uninstall, but I am getting error that "There is a problem with the windows installer, the required dll is not found, please contact your administrator.
Though I am using the same dll. Also, please note that when I created first custom action it named like "HKLMCustomAction.CA.dll" and when I created second one it named like HKLMCustomAction.CA.dll_1
So, I am stuck with this error message, I can not uninstall so can not install new. Is there any way around?
This may happen if you try to execute the uninstall custom action after its related DLL file was already removed from the machine. To make sure that the DLL is present on the machine, you need to place the custom action above the "Remove Resources" action group. Can you try this and see if this work? If not, please send me your project and a verbose log of the uninstall, so I can investigate them.