Archive: Adding a Complus Package & Components


Adding a Complus Package & Components
I have been looking at using NSIS to replace Installshield, the only thing stopping me from doing this are problems in adding and manipulating Complus Packages & Components. (2 weeks off my life)
I have a number of packages where I need to specifiy both the identity and security for the package. This is where I an stumped. I have gone through the documentation, hunted through the forums. The closest I have come is the ComplusAdmin plugin that looks like it could so the job if it was extended to cope with identity and security. (but I can't do that)
to make matters worse I need to be able to cater for NT4 as well as later OS's (but could force things if NT4 was not an option)
If anybody has some experience in this area or some constructive comments I would appreciate it.
It is probably worth noting that It is Application packages I am battling with


It looks like I have hit a brick wall with the only real insurmountable deficiency in NSIS.
Unless anybody has other ideas!!!


Have you tried the COM+ administration plug-in?

http://nsis.sourceforge.net/ComPlusAdmin_plug-in


Yes, I have tried the complusadin. It works well, with the exception that it is not possible to set/edit the identity for the component or modify the other properties.
Thanks for the suggestion though


COMPlus addin Extended (DCOM, COM COM+)
Please feel free to put this on the WIKI if you know how to upload files.

COMPlus addin Extended (DCOM, COM COM+ complus ComPlus)

I needed to do a bit more than your original did, (username, password, impersonation level...)

The end result is based on yours and has been extended to enable access to app properties
Complusadmintest is an easy way to check app properties when writing an installer

I could not figure out how to upload the file, and would appreciate it if you would.



Returns
ComPlusAdmin::CreateApplication "AppName" "TimeoutValue" "0" for OK, "-1" for error
ComPlusAdmin::InstallComponent "AppName" "ComponentPath" "0" for OK, "-1" for error
ComPlusAdmin::IsComponentPresent "AppName" "ModuleName (no path)" "1" for present, "0" for absent, "-1" for error
ComPlusAdmin::IsApplicationPresent "AppName" "1" for present, "0" for absent, "-1" for error
ComPlusAdmin::DeleteApplication "AppName" "0" for OK, "-1" for an error
ComPlusAdmin::RemoveComponent "AppName" "ModuleName (no path)" "0" for OK, "-1" for an error
ComPlusAdmin::GetApplicationProperty "AppName" "PropertyName" the property, or "-1" for an error
ComPlusAdmin::SetApplicationProperty "AppName" "PropertyName" "NewValue" "0" for OK, "-1" for an error
ComPlusAdmin::SetUserNameAndPassword "AppName" "Password" "UserName" "0" for OK, "-1" for an error

I left GetComponentProperty and SetComponentProperty in there too, but I'm not sure how much use they are in practice.
I can well believe that it may be possible to pass TimeoutValue from CreateApplication without sticking quotation marks around it - it'll certainly be a string by the time it gets to me though!

Some app properties are

AccessChecksLevel
Activation
ApplicationAccessChecksEnabled
ApplicationProxy
ApplicationProxyServerName
Authentication
AuthenticationCapability
Changeable
CommandLine
CreatedBy
CRMEnabled
CRMLogFile
Deleteable
Description
EventsEnabled
ID
ImpersonationLevel
Identity
IsSystem
Name
Password
QueuingEnabled
QueueListenerEnabled
RunForever
ShutdownAfter
3GigSupportEnabled


The FAQ explains how to upload files. Simply go to http://nsis.sourceforge.net/Special:Upload to upload a file and use the <attach> tag to add it to your page.


Done, Thanks


toc toc ?

I'd like to be able to shutdown/restart the component.

Anyone updated on the plugin ?


Merci !


How do i actually use the plugin?? like activate a compent as library application???

There's no example codes found at http://nsis.sourceforge.net/ComPlusAdmin_plug-in ....