Reboot Confirmation Buttons Not Translated. - 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!

stevejonesuk
Posts: 16
Joined: Mon Aug 10, 2009 11:43 am

Reboot Confirmation Buttons Not Translated.

Hi,
I'm using AI 7.0.1 on an English development machine and installing onto a French (Windows 7) machine. Everything is fine - all installation GUIs in French (and uninstall GUIs too), until the final message "you must reboot your machine, click yes to do it now or no if you want to reboot later" (but in French). This is also fine - the problem is the "Yes/No" buttons - they're exactly that, "Yes" and "No", where I need "Oui" and "Non". When installing, the reboot confirmation buttons were correct - it's only at the end of uninstallation.
I don't see this GUI (the reboot confirmation one) anywhere in your "User Interface" settings.
I'm using (I believe) the default settings in your "Translations" page.
I'm doing "Create only a multilingual package".
Looking in the dictionary, the only relevant-looking entries are the ButtonText_Yes / ButtonText_No ones and they give values of "Oui" and "Non" as you'd hope (of course they do - these are the strings used for every other set of Yes/No buttons).

Is there any way to solve this? I've searched all over without finding a solution, I can't believe I'm the only person who's come across this.
All the best,
- Steve.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Reboot Confirmation Buttons Not Translated.

Hi Steve,

Unfortunately the uninstall reboot prompt is automatically shown by Windows Installer and it cannot be customized. This is a limitation in Windows Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevejonesuk
Posts: 16
Joined: Mon Aug 10, 2009 11:43 am

Re: Reboot Confirmation Buttons Not Translated.

I've worked around this problem by setting both ARPNOREMOVE and ARPNOREPAIR to 1 (we don't support repair). This forces the user to remove in modify mode, which uses correctly-translated buttons. Yes, apparently getting the buttons translated is really that important. Anyway, now the ARP option for our program only says "Modify", either on the button at the top, or on right-click. I'd like to change this text to something more helpful like "Modify/Remove". I have a different product which appears to do just this somehow, so it appears to be possible. Can you please tell me how to do this?
Thanks,
- Steve.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Reboot Confirmation Buttons Not Translated.

Hello,
I've worked around this problem by setting both ARPNOREMOVE and ARPNOREPAIR to 1 (we don't support repair).
Instead of manually setting these properties, you can use the options found on the Product Details page. ("Disable Modify" and "Disable Repair")
This forces the user to remove in modify mode, which uses correctly-translated buttons.
This is because the installer is no longer forced to install in silent mode. Therefore it will use the translated strings within the .msi rather than using strings defined by the Add/Remove Programs utility.
Anyway, now the ARP option for our program only says "Modify", either on the button at the top, or on right-click. I'd like to change this text to something more helpful like "Modify/Remove". I have a different product which appears to do just this somehow, so it appears to be possible. Can you please tell me how to do this?
It appears you will have to create your own registry entries to achieve this.
On the Product Details page, make sure the "Do not show in list" option is checked. We are creating our own entry, and leaving this option unchecked would create a duplicate entry.
On the Registry page, create the following structure:

Code: Select all

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\(SomeNameHere)
Replace (SomenameHere) with a desired name (this name does not affect anything and is ignored).
You will need to create a few registry values under this key. The attached sample project demonstrates this.

Regards,
Gabriel
Attachments
sample.zip
(2.52 KiB) Downloaded 325 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
stevejonesuk
Posts: 16
Joined: Mon Aug 10, 2009 11:43 am

Re: Reboot Confirmation Buttons Not Translated.

Thanks for the prompt response. But I think you may've misunderstood the question, or simply answered one other than the one I posed.
Each of the registry values you suggest need to be specific values to make the install / uninstall work correctly; I don't see any latitude to type my "remove" text in, except in the "comments" value, and searching for that on MSDN doesn't say anything about changing the text on the Add/Remove Programs button. Also, I don't see how it could be made to be multi-lingual (the root problem is that our uninstall shows English on a French OS).
Can please you explain to me how your solution is meant to help?

Thanks,
- Steve.
stevejonesuk
Posts: 16
Joined: Mon Aug 10, 2009 11:43 am

Re: Reboot Confirmation Buttons Not Translated.

...by the way, that wasn't sarcasm. I actually would like to understand what you were trying to achieve.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Reboot Confirmation Buttons Not Translated.

Hello,

The attachment is meant to reply to the following question:
Anyway, now the ARP option for our program only says "Modify", either on the button at the top, or on right-click. I'd like to change this text to something more helpful like "Modify/Remove". I have a different product which appears to do just this somehow, so it appears to be possible. Can you please tell me how to do this?
The answer I provided does not imply that the button in question can be customized/localized. It can not, since this button is a predefined button created by the Add/Remove Programs utility itself. The best one can do is instruct the ARP utility to use one of those predefined buttons. My solution does just that, it instructs the ARP to use a "Change/Remove" button instead of a button with only the "Modify" text on it.
(the root problem is that our uninstall shows English on a French OS).
Please post a screenshot with this problem so we can further investigate the cause.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
stevejonesuk
Posts: 16
Joined: Mon Aug 10, 2009 11:43 am

Re: Reboot Confirmation Buttons Not Translated.

I haven't clipped a screenshot because it seems that you've understood the problem perfectly. I added the registry entries to my project and it didn't affect the wording on the button ("change" on Vista). The registry entries which I see in your sample project are under HKLM\Software\Windows\CurrentVersion\Uninstall\ZCustomARP and have the following values:
Comments "Your comment goes here"
DisplayName "[ProductName]"
InstallLocation "[APPDIR]"
Language "[ProductLanguage]"
Publisher "[Manufacturer]"
UninstallString "msiexe.exe /i [ProductCode]"
Version "[ProductVersion]"
I don't see how any of those would bring about the required change. I assume I'm looking in the wrong place, can you point me to the correct spot?
Thanks,
- Steve.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Reboot Confirmation Buttons Not Translated.

Hello,

Did you make sure the "Do not show in list" option on the Product Details page is checked?
Also, did you test the sample I posted? After installing it, its entry in the Add/Remove Programs utility should have the "Change/Remove" button. I tested it both on Windows XP and Vista.

Other than that, I am not sure what you are doing wrong. Please send the .aip project file that is not working to support at advancedinstaller dot com so we can investigate the issue.
I don't see how any of those would bring about the required change. I assume I'm looking in the wrong place, can you point me to the correct spot?
It's not the registry entries themselves that are changing the text but the fact that they are not placed under a [ProductCode] key like the other entries under HKLM\Software\Windows\CurrentVersion\Uninstall\ZCustomARP. Lack of other values under the product's "Uninstall" key, like Windows Installer = 0x00000001 (REG_DWORD) also contribute to ARP's decision of displaying a single button ("Change/Remove") instead of two separate buttons.

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

Return to “Common Problems”