Registry Key Names With Spaces

Got a problem you cannot solve? Try here.
delmore
Posts: 6
Joined: Fri Jan 22, 2016 3:22 pm

Registry Key Names With Spaces

Postby delmore » Mon Feb 17, 2020 7:00 pm

Please forgive me if this has already been asked, but if it has, I am unable to find the relevant post...

Is it possible to use the IA Write Registry command with a Key that contains spaces. For example, if I want to add my Help Telephone number to the Add/Remove Programs information, can I write to "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\My Cool Application\HelpTelephone"? No matter what I try, this does not seem to work. If I remove the spaces, the command works as expected. Any help would be MUCH appreciated!

I am using IAX8 (Build 7.21.2018 Turquoise).

Thank you!

Don

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Registry Key Names With Spaces

Postby FrancescoT » Tue Feb 18, 2020 10:56 am

I'm don't see any issue when storing "Registry Key Names With Spaces".

This is my command:

Code: Select all

Write Registry Key HKLM\SOFTWARE\A B\C D\E F\,

…and this is the result:
reg_key.png
reg_key.png (17.65 KiB) Viewed 4388 times

Btw, you may also use the following fields to add your data to Add/Remove Programs (Press SHIFT+CTRL+F11).
Project_options.png
Project_options.png (18 KiB) Viewed 4388 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

delmore
Posts: 6
Joined: Fri Jan 22, 2016 3:22 pm

Re: Registry Key Names With Spaces

Postby delmore » Tue Feb 18, 2020 1:20 pm

Thank you for the quick reply!

Hmmm. I can spot two possible differences between our examples. 1) The version if IA. I am using IA X8. What version did you try? 2) I am using an IA variable to contain part of the registry key name. Specifically, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$TITLE$\HelpTelephone.

Also, to your other comment--yes, I know that SOME of the ARP strings can be set via Project Settings in IA, but not ALL ARP strings can be set in that way (e.g., HelpTelephone, EstimatedSize, NoModify).

It would be helpful to know if upgrading to the newest version would solve this problem.

Thanks.

Don

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Registry Key Names With Spaces

Postby FrancescoT » Tue Feb 18, 2020 2:57 pm

Dear Don,

honestly I don't think this may depend on the IA version (I used IA X11). I use "Registry Key Names With Spaces" (passed by variables) with most of my projects, and I never had problems due the presence of space character.

Concerning the value of your variable, this should hold "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$TITLE$\HelpTelephone" without the HKLM root key prefix. The Write Registry command has a specific field where to specify the registry root. I'm pointing this because I'm not sure if you pasted the full registry key path by mistake.

Are you able to condensate the issue in a very VERY VERY minimal project?

Last but not least, ...you may upgrade to X11 anyway :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

delmore
Posts: 6
Joined: Fri Jan 22, 2016 3:22 pm

Re: Registry Key Names With Spaces

Postby delmore » Tue Feb 18, 2020 7:25 pm

Francesco,

Thank you again for the VERY prompt and helpful responses. Oddly, my installer has started functioning. Previously, no matter what I did, I could NOT make it add my registry keys. Now (for reasons that I do not understand) I cannot make it FAIL to add my registry keys. I wish I knew which of my changes suddenly caused it to work.

Well, the good news is, I have a working solution, so no further action on your part is required!

Thank you again.

Don

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Registry Key Names With Spaces

Postby FrancescoT » Wed Feb 19, 2020 1:14 pm

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 74 guests