Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Can't create registry keys?

Hi!
I have a problem with the registry keys. Whatever key i want to create fails. I wanted to create a startup key in the CurrentVersion\Run key, but it wasn't created. Then i created a new project with only one simple registry value to be created in HKLM/software, but it still failed!!
what is it that i'm doing wrong? i'm not able to create any registry keys...
thanks in advance!
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Can't create registry keys?

I think I have the same problem using the latest Advanced Installer (7.3.1).

This is on Windows 7, my application will no longer work since the registry keys are not getting created.

Question: is Advanced Installer not yet working on Windows 7? Or is this a new bug for all windows versions, and only introduced in AA v7.3.1?
Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Re: Can't create registry keys?

santa can you hear me?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can't create registry keys?

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the AIP (project) files and verbose installation logs to support at advancedinstaller dot com so we can investigate them?

There aren't any known bugs related to registry entry creation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Re: Can't create registry keys?

ok. i sent you an email.
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Can't create registry keys?

I have just installed windows 7 and tried my setup on it, and it works fine for me.

But my client who encountered the problem had Windows 7 - 64BIT. I do not have any 64bit machine to test this on.

Have you guys tested registry key creation on Windows 7 - 64BIT?

Thanks

Mat
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Can't create registry keys?

By the way, the setup also did not copy some dlls in the Windows\System32 folder.

I noticed another topic here: "Dll files were not copied in installation - server 2008"

This seems to be the same problem, and apparently also on a 64 bit OS.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can't create registry keys?

Hi,

Please note that 32-bit packages use redirected locations on 64-bit machines. You can read more about this in this article. Also, our Package Types article may help you. For example,

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\MyKey\MyValue
will be redirected to

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyKey\MyValue
and

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\MyValue
will be redirected to

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyValue
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Re: Can't create registry keys?

aaaahh thats where all my keys'n'values have gone...
so how do i prevent that from happening? i.e: how can i create registry values not under WOW64?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can't create registry keys?

Hi,

Like explained in the Package Types article I mentioned, the redirection can be avoided by using a 64-bit package. The package type can be set in the "Install Parameters" page. Please note that 64-bit packages do not work on 32-bit machines. Also, you should use a 64-bit package only if you are installing a 64-bit application.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Re: Can't create registry keys?

sure, but my application is a 32 bit app only, so i expected it to get installed correctly on a x64 machine as well. all the other setups used today can install 32 bit apps on 64 bit machines also, but mine doesnt... do i really have to create a 64 bit setup as well as a 32 bit one even if my application is 32 bit only?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can't create registry keys?

Hi,

Please note that this is the correct way of installing 32-bit applications on 64-bit machines. Did you read the registry redirection article I mentioned? On a 64-bit machine there are two sets of locations:
- one set for 32-bit applications
- another set for 64-bit applications

To make your 32-bit application compatible with 64-bit systems you need to make sure that you are using API which allows redirection. For example, when reading a registry entry you should use the Windows API to get the registry path, not use a hard-coded path.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Devils Child
Posts: 9
Joined: Wed Dec 23, 2009 9:19 pm

Re: Can't create registry keys?

all i want to do is to set up an autostart entry within the Run key. so how do i actually do this without creating two seperate installation executables?

this shouldnt be too hard - all the other setups can do this...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can't create registry keys?

Hi,

You can simply create the registry entry in the Registry page. It may be redirected to the 32-bit location, but it will still work.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Can't create registry keys?

OK, I guess the files had been copied and the registry changes had been made, but not in the locations where I was expecting them.

I understand that I will have to set my enterprise project to be both 32-bit and 64-bit.

But: my project also consists of a merge module, which was also set to 32-bit package type. But there is no option available here to pick "Both 32bit and 64bit". There are only 3 options here: 32-bit, 64bit for intel, 64bit for x64. Does that mean I have to create 2 (or even 3) different merge modules, where the only difference is this package type?

Thanks

Mat

Return to “Common Problems”