Calling .NET Installer Class
-
- Posts: 76
- Joined: Mon Nov 06, 2006 2:07 pm
- Location: Texas
- Contact:
Calling .NET Installer Class
I have been creating a lot of .NET installer classes to get around certain shortcomings of MSI. But the limitation that I have found is that you can only have one Installer class per assembly. Is this correct or am I missing something? It would be nice to have as many different Installer classes within a .NET assembly then specify which one to use when called. Thanks.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
With InstallAware, the recommended approach is to use MSIcode to add increased levels of reliability and predictability to your setup. .NET Installer Classes are not recommended - even by Microsoft - as they carry the same ills that self-registering DLLs do.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 76
- Joined: Mon Nov 06, 2006 2:07 pm
- Location: Texas
- Contact:
Well, I would have to respectfully disagree with you on this item. Considering you cannot even create a loop without GoTo commands (which cannot be within an IF statement) I have found many limitations to the MSI code. It is very difficult to parse arrays, comma delimitted strings, etc. So as far as I can tell, I am limited to something outside of the MSI script environment to do anything that is relatively complicated.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
If you have to do complex processing for items that are not covered in MSIcode, just call a DLL using Call DLL Function, or build a full-blown IDE plug-in in your favorite programming language. Plug-ins especially become a native part of your MSIcode script and are very versatile.
We build the entire update script in MSIcode. That is a testament to the power of the language (and it does many things you mention in your post, such as looping, parsing, and so on). Of course, we realize that you are most comfortable in your native IDE. So, just build a plug-in and add it natively to the MSIcode script.
We build the entire update script in MSIcode. That is a testament to the power of the language (and it does many things you mention in your post, such as looping, parsing, and so on). Of course, we realize that you are most comfortable in your native IDE. So, just build a plug-in and add it natively to the MSIcode script.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 118 guests