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
Registry Key Names With Spaces
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Registry Key Names With Spaces
I'm don't see any issue when storing "Registry Key Names With Spaces".
This is my command:
…and this is the result:
Btw, you may also use the following fields to add your data to Add/Remove Programs (Press SHIFT+CTRL+F11).
This is my command:
Code: Select all
Write Registry Key HKLM\SOFTWARE\A B\C D\E F\,
…and this is the result:
Btw, you may also use the following fields to add your data to Add/Remove Programs (Press SHIFT+CTRL+F11).
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
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
Re: Registry Key Names With Spaces
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
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
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Registry Key Names With Spaces
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
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
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
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
Re: Registry Key Names With Spaces
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
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
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Registry Key Names With Spaces
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
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
Who is online
Users browsing this forum: No registered users and 49 guests