Its a two-fold problem with the lack of a find-and replace and and importing issue.
I have a simple registry entry. A reg_SZ type. When my end app is installed and running normally the entry looks like this:
Keyname: Objective0
Keydata: c:\windows\regedit.exe
Creating a simple AI project with nothing but this registry entry- it works fine.
Now-I want to use the AI option to use variables. Which should at install time replace them with values from the installing computer as appropriate. As some systems will will have Windows in c:\Windows or c;\winnt or maybe even on another drive. I want this install to be as flexible as possible.
So in AI in the registry section I replace c:\windows with [WindowsFolder] so it now looks like this:
"[WindowsFolder]\regedit.exe"
Compiling and installing the project works as expected and the resulting value in the actual registry is correct as c:\windows\regedit.exe.
1.) When I import my settings from a reg file obviously the variables are not there-I have to manually edit each registry entry to replace the hard coded path with the AI variable. This is a very laborious process (I have about 50 registry entries. I can't find any way to do a find and replace.
2.) If I modify the reg file (or registry) ahead of time with the hard coded paths already replaced with the variables (using notepad's find and replace option): the reg file entry looks liek this:
"Objective0"="[WindowsFolder]\\regedit.exe"
When I import the reg file (or add a key from the registry directly)additional characters are being added to the entry and it now looks like this:
[\[]WindowsFolder[\]]\regedit.exe. Which when installed is not being process by AI as a variable.
Again I can't simply use a find & replace to fix the problem (which I could live with if that was all i had to do).
Thanks
FOLLOW US
Get the latest news in Application Packaging