Bug: Registry type changed from REG_SZ to REG_MULTI_SZ - 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!

magarwal
Posts: 2
Joined: Tue Apr 06, 2010 8:01 am

Bug: Registry type changed from REG_SZ to REG_MULTI_SZ

I want my installer to add data to the existing values of the registry key "Notification Packages" located at "SYSTEM\ControlSet001\Control\Lsa". Here is the 2 cases:

1. If the type of the registry key "Notification Packages" is "REG_MULTI_SZ" (Multi-String Value) than:
a. The installer appends my value to the existing value, which is what I want.

2. If the type of the registry key "Notification Packages" is "REG_SZ" (String Value) than
a. The installer changes the type of the registry key "Notification Packages" from "REG_SZ" to "REG_MULTI_SZ".
b. Deletes the previous data.
c. Add my data to it.

I am using the version 6.0.1.
As per the loigc, in case 2, it should not change the type of the key and it should just append my data to the previously existing data. Is this a bug in the Advanced Installer software?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Bug: Registry type changed from REG_SZ to REG_MULTI_SZ

Hello,

This is standard behavior. The append option for a registry only makes sense on a REG_MULTI_SZ. Should you wish to append to a REG_SZ, you will have to create your own action, otherwise the conversion will take place.

Please let me know if this helped

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
magarwal
Posts: 2
Joined: Tue Apr 06, 2010 8:01 am

Re: Bug: Registry type changed from REG_SZ to REG_MULTI_SZ

Hi GabrielBarbu
Could you please tell me how to write own action.
And Secondly, how will I get to know the type of the registry?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Bug: Registry type changed from REG_SZ to REG_MULTI_SZ

Hello,

Please read our guide on custom actions.. It will explain what custom actions are.
You will have to create your own custom action in the programming language of your choice.
And Secondly, how will I get to know the type of the registry?
This depends on the programming language you are using. Please consult the language's documentation regarding this.

Do let me know if there is anything else I can assist you with.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”