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: DLL registration with IS 2011
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
‎Jan 18, 2011
02:56 AM
DLL registration with IS 2011
Hi,
We have migrated project to IS 2011 from IS 12.
Here we are using Kernel32.CreateProcess(NULL, szCmdLine, NULL, NULL, FALSE, 16, NULL, NULL, &StartupInfo, &ProcessInfo) for DLL registration.
CmdLine="C:\SINDOWS\System32\regsrv32.exe"/s"C:\WINDOW\system32\msxml3.dll"
After migration this CreateProcess() function is stopped working. is there any alternative for this?
We have migrated project to IS 2011 from IS 12.
Here we are using Kernel32.CreateProcess(NULL, szCmdLine, NULL, NULL, FALSE, 16, NULL, NULL, &StartupInfo, &ProcessInfo) for DLL registration.
CmdLine="C:\SINDOWS\System32\regsrv32.exe"/s"C:\WINDOW\system32\msxml3.dll"
After migration this CreateProcess() function is stopped working. is there any alternative for this?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 18, 2011
03:54 AM
hi repal.rahul
Is this an InstallScript project or a basic MSI?
I am not so sure if this is possible in InstallScript, but in a standard MSI you can right click on any file select properties and mark the checkbox "Self Register".
A better way is to extract the COM data from your dll by adding files with the component wizard or by right clicking the file directly and selecting "Extract Com Information"
Another way is to always re-extract COM data at build time.
I hope this helps
Walter
Is this an InstallScript project or a basic MSI?
I am not so sure if this is possible in InstallScript, but in a standard MSI you can right click on any file select properties and mark the checkbox "Self Register".
A better way is to extract the COM data from your dll by adding files with the component wizard or by right clicking the file directly and selecting "Extract Com Information"
Another way is to always re-extract COM data at build time.
I hope this helps
Walter
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 18, 2011
06:23 AM
Hi Repal.Rahul
You can try following code:
LaunchAppAndWait(WINSYSDIR ^ "regsvr32.exe", WINSYSDIR ^ "msxml3.dll", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
Kevin
You can try following code:
LaunchAppAndWait(WINSYSDIR ^ "regsvr32.exe", WINSYSDIR ^ "msxml3.dll", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
Kevin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 18, 2011
07:16 AM
Hi Kevin.Wan,
Thanks for the reply but will this work for Vista & window 7 also?
Beacuse LaunchAppAndWait() function internally will call CreateProcess() that will fail with Vista & window7.
Rahul.
Thanks for the reply but will this work for Vista & window 7 also?
Beacuse LaunchAppAndWait() function internally will call CreateProcess() that will fail with Vista & window7.
Rahul.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)