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
- :
- Error (1001) with calling .NET Installer Class
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
Jul 24, 2014
08:38 AM
Error (1001) with calling .NET Installer Class
Hey,
We have a Basic MSI Project that we need to deploy a few .NET assemblies. Those assemblies are calling a .NET Installer Class and the is trying to preform a COM Registration with a CODEBASE option. It appears that during the execution of the Installer Class Custom Action, other assemblies that the installer is going to deploy on the destination computer are not in GAC yet (because the sequent that the DLL's are being deployed and we didn't find a way to change it). At this point, we are getting Error 1001.
This is what Installer Class Install method is trying to do:
RegistrationServices regSrv = new RegistrationServices();
regSrv.RegisterAssembly(base.GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase);
Any idea for overcome this issue?
Thanks,
Mano
We have a Basic MSI Project that we need to deploy a few .NET assemblies. Those assemblies are calling a .NET Installer Class and the is trying to preform a COM Registration with a CODEBASE option. It appears that during the execution of the Installer Class Custom Action, other assemblies that the installer is going to deploy on the destination computer are not in GAC yet (because the sequent that the DLL's are being deployed and we didn't find a way to change it). At this point, we are getting Error 1001.
This is what Installer Class Install method is trying to do:
RegistrationServices regSrv = new RegistrationServices();
regSrv.RegisterAssembly(base.GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase);
Any idea for overcome this issue?
Thanks,
Mano
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 29, 2014
02:08 PM
I have very similar code being utilized in my project as well. I got the Error 1001 message (that's all mine said...nothing else), and it turned out to be related to the InstallUtil files. When I looked into my Application Files section, I discovered that the files were being installed into the [ProgramFilesFolder] with a 64-bit build. In order to get it to work on my system, I did the following:
Go to the Application Files section
Right mouse click on "Destination Computer"
Under the "Show Predefined Folders" option, choose ]ProgramFiles64Folder]
Move the directory tree that's currently under the ProgramFilesFolder to the ProgramFiles64Folder.
If that fixes it, then it's because you have a 64 bit component that is attempting to be registered with the 32 bit regasm.
HTH
Go to the Application Files section
Right mouse click on "Destination Computer"
Under the "Show Predefined Folders" option, choose ]ProgramFiles64Folder]
Move the directory tree that's currently under the ProgramFilesFolder to the ProgramFiles64Folder.
If that fixes it, then it's because you have a 64 bit component that is attempting to be registered with the 32 bit regasm.
HTH
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)