guest

Registry setting incorrect after install

Sorry if this is a dumb question, as I am very new to installers.

The msi file I created works great other than one Binary(type) Registry key under HKCU. After having no success I exported the key on the source and target machine(after install) for comparison. On the source machine the key looks like this: "xxxxxx"=hex:31,31,32,......" on the target is like this:"xxxxxx"=hex:0x,31,31,32,.....".

All the other keys transfer ok. I can manually export the key on the source and import it on the target and its works ok. Any ideas why the installer will not transfer the key correctly.

I have spent all day on this, any help would be appreciated.
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hello,

In order to be able to duplicate and sort out your problem, I need to know the exact steps you are following. Could you please tell me what is the result that you get and what would be the result you expect to get?

Regards,

Mihai
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Guest

This is a fairly simple install. I install 5 files using the application folder, create a shortcut on the start\programs menu and add a HKLM and HKCU Key using existing registry keys. I create the msi file and install it on the target machine. Everything installs and works other than the application setting that uses this one key.

I can setup an msi to just install the program files, then manually export and import the same registry keys and the key setting is correct.

As I said before, when I compare the exported value of the two keys(when it is installed using the msi), the hex value for this one key is different. Since the key is a very long hex value, I have been unsuccessful manually creating the key in the installer.

The result I would expect to get would be a key installed on the target machine that matches the key used during the creation of the msi.

If it helps, I am installing an open source program called UltraVNC with the 112MSRC4Plugin_reg.dsm plugin. The key that will not install correctly is: HKEY_CURRENT_USER\Software\ORL\WinVNC3\"DSMPlugin"=hex:.

Here is the value used in the msi:(from Reg export)
"DSMPlugin"=hex:31,31,32,4d,53,52,43,34,50,6c,75,67,69,6e,5f,72,65,67,
2e,64,73,6d,00,00,88,fe,12,00,b0,fe,12,00,b7,2c,91,7c,60,52,9b,00,68,01,
9b,00,00,00,00,00,00,00,00,00,60,52,9b,00,18,00,00,00,68,52,9b,00,90,fe,
12,00,78,01,9b,00,18,00,00,00,5c,a0,00,00,00,00,9b,00,84,fc,12,00,0d,52,
75,6e,6e,69,6e,67,00,ee,90,7c,f0,06,91,7c,ff,ff,ff,ff,eb,06,91,7c,5b,86,44,
00,00,00,9b,00,00,00,00,00,10,00,00,00,c8,53,9b,00,00,00,00,00,00,00,00
,00,00,00,00,00,00,ec,d6,77,00,00,00,00,b0,ff,12,00,cc,9b,44,00,08,a0,45
,00,ff,ff,ff,ff,c0,ff,12,00,52,85,44,00,0b,00,00,00,3f,85,44,00,0b,00,00,00
,60,dd,58,01,d0,2a,45,00,68,52,9b,00,b8,89,46,00,fc,55,40,00,01,00,00
,00,20,ff,12,00,b0,ff,12,00,07,46,45,00,01,00,00,00,7a,80,43,00,60,dd,58
,01,00,00,00,00,c0,ff,12,00,00,f0,fd,7f,ff,ff,ff,ff,00,00,00,00

Here is the value after installing using the msi:(from Reg export)
"DSMPlugin"=hex:03,13,13,24,d5,35,24,33,45,06,c7,56,76,96,e5,f7,26,56,
72,e6,47,36,d0,08,8f,e1,20,b0,fe,12,0b,72,c9,17,c6,05,29,b0,68,19,b0,00,
00,00,00,60,52,9b,01,80,00,68,52,9b,09,0f,e1,20,78,19,b0,18,00,05,ca,00,
00,09,b0,84,fc,12,0d,52,75,6e,6e,69,6e,67,0e,e9,07,cf,06,91,7c,ff,ff,ff,ff,
eb,69,17,c5,b8,64,40,00,9b,00,00,01,00,00,c8,53,9b,00,00,00,00,00,00,00
,ec,d6,77,00,00,b0,ff,12,0c,c9,b4,40,8a,04,50,ff,ff,ff,ff,c0,ff,12,05,28,54,40
,b0,00,3f,85,44,0b,00,06,0d,d5,81,d0,2a,45,06,85,29,b0,b8,89,46,0f,c5,54
,00,10,00,20,ff,12,0b,0f,f1,20,74,64,50,10,00,7a,80,43,06,0d,d5,81,00,00
,c0,ff,12,00,f0,fd,7f,ff,ff,ff,ff,00,00


I hope this is the information you wanted.
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

There seems to be a problem with importing large registry values.
You can solve that by creating a new registry Value with same name and editing the Data field manually.
You can edit the data by removing any ',' '\' and "new line" character from the reg file that contains the existing registry value ( I used Replace function in my text editor). Then copy that single line text (without , \) and paste it in AdvancedInstaller (Edit Registry Entry window -> Edit Registry Value tab -> Data field).

Let me know if you have any other questions.
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Guest

That worked. Thanks for the help.

Return to “Common Problems”