This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- ISWiComponent::ImportRegFile
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 27, 2010
02:54 PM
ISWiComponent::ImportRegFile
Hi all,
I've just wrapped up converting our Developer 8-based install to IS 2011, and, after working past a couple of surprises (adding files to components through automation results in all lowercase names??), I've run into an issue that I'm not sure how to get around.
In short, on ISWiComponent I call ImportRegFile, importing data out of a registry file that looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\OurCompanyName\OurProduct\[XYZ_PRODUCT_LANGUAGE]]
"Common"="[ProgramFilesFolder]OurCompanyName\OurProduct\Common"
On import, the resultant registry table entry would look like this:
[ProgramFilesFolder]OurCompanyName\OurProduct\Common\
and the final result in the registry looks something like this:
C:\Program Files\OurCompanyName\OurProduct\Common\
i.e. I have bracketed variables there that I expect to go verbatim into the registry table -- this worked under Dev8 forever.
However, IS 2011 insists on escaping the characters when importing, resulting in registry table entries that look like this:
[\[]ProgramFilesFolder[\]]OurCompanyName\OurProduct\Common\
and registry entries that look like this:
[ProgramFilesFolder]\OurCompanyName\OurProduct\Common\
Obviously this is undesirable -- anyone have any ideas on how to get around this???
Thanks,
John
I've just wrapped up converting our Developer 8-based install to IS 2011, and, after working past a couple of surprises (adding files to components through automation results in all lowercase names??), I've run into an issue that I'm not sure how to get around.
In short, on ISWiComponent I call ImportRegFile, importing data out of a registry file that looks like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\OurCompanyName\OurProduct\[XYZ_PRODUCT_LANGUAGE]]
"Common"="[ProgramFilesFolder]OurCompanyName\OurProduct\Common"
On import, the resultant registry table entry would look like this:
[ProgramFilesFolder]OurCompanyName\OurProduct\Common\
and the final result in the registry looks something like this:
C:\Program Files\OurCompanyName\OurProduct\Common\
i.e. I have bracketed variables there that I expect to go verbatim into the registry table -- this worked under Dev8 forever.
However, IS 2011 insists on escaping the characters when importing, resulting in registry table entries that look like this:
[\[]ProgramFilesFolder[\]]OurCompanyName\OurProduct\Common\
and registry entries that look like this:
[ProgramFilesFolder]\OurCompanyName\OurProduct\Common\
Obviously this is undesirable -- anyone have any ideas on how to get around this???
Thanks,
John
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2010
10:24 AM
I attached the InstallShield 2011 hotfix for this issue to this post. In order to apply the fix, you need to copy the new IsMsiEntity.dll to the C:\Program Files\InstallShield\2011\System folder for the IDE, and C:\Program Files\InstallShield\2011 SAB\System folder for the Standalone Build. We have filed the work order #IOA-000058174 so that the fix will be incorporated into future releases of InstallShield.
Regards.
Regards.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2010
10:52 AM
Thanks for the hotfix! I won't be able to deploy this (I have to wait for the first service pack, to ease distribution on each of our build machines), but I do appreciate your rapid response!
Thanks again!
John
Thanks again!
John
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2010
05:14 PM
Holy Cow! Talk about great timing!
I ran into this exact same problem today and was about to post the same issue.
I'm happy to report that the new dll fixes the issue.
Thanks for reporting and also for posting the fix.
Bob.
I ran into this exact same problem today and was about to post the same issue.
I'm happy to report that the new dll fixes the issue.
Thanks for reporting and also for posting the fix.
Bob.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)