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
- :
- Re: Failed to self-register DLLs in InstallScript project
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
‎Jun 03, 2012
08:39 AM
Failed to self-register DLLs in InstallScript project
Hi all,
I want to self-register dlls in InstallScript project by selecting checkbox at the IS Component View interface.
When I do it, the installation fails with a "critical failure" exception.
When I register them with:
XCopyFile( szFile, "", SELFREGISTER | SHAREDFILE | COMP_UPDATE_VERSION);
It registers most of them but still fails to register a couple.
And, finally, when I register with:
LaunchApplication( WINSYSDIR^"regsvr32.exe", "/s "+szFile, WINSYSDIR, ...);
It register them all without any error.
I can keep the latter solution as a workaround but I still want to use the built-in InstallShield self-register feature as a solution of choice.
:confused:
I want to self-register dlls in InstallScript project by selecting checkbox at the IS Component View interface.
When I do it, the installation fails with a "critical failure" exception.
When I register them with:
XCopyFile( szFile, "", SELFREGISTER | SHAREDFILE | COMP_UPDATE_VERSION);
It registers most of them but still fails to register a couple.
And, finally, when I register with:
LaunchApplication( WINSYSDIR^"regsvr32.exe", "/s "+szFile, WINSYSDIR, ...);
It register them all without any error.
I can keep the latter solution as a workaround but I still want to use the built-in InstallShield self-register feature as a solution of choice.
:confused:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2012
11:49 PM
Even I had the same issue, and used the same approach mentioned in your post, for getting rid of the errors. I wonder what's the issue in self-registering from the IDE.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2012
01:03 PM
You can also considering including the file to self-reg in a Basic MSI project and call that in your InstallScript project.
This will be a cleaner approach if you have large files.......
And this issue could be due to Windows + InstallScript combination as Windows treats InstallScript setups as aliens.....
worth a try!!
This will be a cleaner approach if you have large files.......
And this issue could be due to Windows + InstallScript combination as Windows treats InstallScript setups as aliens.....
worth a try!!
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)