Old 23rd February 2007, 08:04   #1
paul.lab
Junior Member
 
Join Date: Feb 2007
Posts: 6
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

Last edited by paul.lab; 23rd February 2007 at 09:18.
paul.lab is offline   Reply With Quote
Old 26th February 2007, 14:45   #2
paul.lab
Junior Member
 
Join Date: Feb 2007
Posts: 6
It looks like I have hit a brick wall with the only real insurmountable deficiency in NSIS.
Unless anybody has other ideas!!!
paul.lab is offline   Reply With Quote
Old 1st March 2007, 18:02   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Have you tried the COM+ administration plug-in?

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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th March 2007, 17:41   #4
paul.lab
Junior Member
 
Join Date: Feb 2007
Posts: 6
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
paul.lab is offline   Reply With Quote
Old 16th May 2007, 15:14   #5
paul.lab
Junior Member
 
Join Date: Feb 2007
Posts: 6
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:eleteApplication "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
Attached Files
File Type: zip complusadminex.zip (42.7 KB, 256 views)

Last edited by paul.lab; 16th May 2007 at 15:43.
paul.lab is offline   Reply With Quote
Old 16th May 2007, 17:18   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 30th May 2007, 10:12   #7
paul.lab
Junior Member
 
Join Date: Feb 2007
Posts: 6
Done, Thanks
paul.lab is offline   Reply With Quote
Old 19th August 2009, 22:05   #8
ledruide
Junior Member
 
Join Date: Aug 2009
Posts: 3
toc toc ?

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

Anyone updated on the plugin ?


Merci !
ledruide is offline   Reply With Quote
Old 4th December 2012, 04:43   #9
xmlnoob
Junior Member
 
Join Date: Jul 2012
Posts: 6
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 ....
xmlnoob is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump