How can I define the CLSID? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

OlafE
Posts: 8
Joined: Mon Feb 22, 2010 8:53 pm

How can I define the CLSID?

Hi,
I have to create an MSI based installer with multiple ActiveX controls. For several of those I need to set a fixed CLSID, since the corporate website seems to query those. First I assumed, that this is identical to the GUID in COM properties of the file, but obviously I was wrong.
Some more reading in the help files pointed to the AppId properties, but I cannot see this section under System Changes/COM.
So where to look?
(And while we are at it, I need to give users eventually full control to the application related subkeys in the CLSID hierarchy. How can this be done best?)
Best greetings from Germany
Olaf
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How can I define the CLSID?

Hello Olaf,
Some more reading in the help files pointed to the AppId properties, but I cannot see this section under System Changes/COM.
The AppId is a tab displayed in the right pane when you select your COM from the COM page.
(And while we are at it, I need to give users eventually full control to the application related subkeys in the CLSID hierarchy. How can this be done best?)
I am not sure what you mean by this. Could you give me more details about what you are trying to do?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
OlafE
Posts: 8
Joined: Mon Feb 22, 2010 8:53 pm

Re: How can I define the CLSID?

Hi Gabriel,
GabrielBarbu wrote:
Some more reading in the help files pointed to the AppId properties, but I cannot see this section under System Changes/COM.
The AppId is a tab displayed in the right pane when you select your COM from the COM page.
hard job to explain a non programmer hardcore stuff, isn't it? (I am only an administrator, who needs to repackage the stuff we get from Korea who use to work as local admins all the time in a way, that it is usable for our limited users here in Europe.)
The COM page is empty for me. I thought, that right clicking the DLL in Files and Folders and selecting Go to Component would have been already enough to get there. But I may be wrong with that assumption (would have been too simple, maybe).
(And while we are at it, I need to give users eventually full control to the application related subkeys in the CLSID hierarchy. How can this be done best?)
I am not sure what you mean by this. Could you give me more details about what you are trying to do?
The application registers its DLLs in the registry under HKLM\Software\Classes\CLSID. I found, that the corporate portal (to which I have no control) always initiates a download of the already installed DLLs again, each time the site is reloaded. This only happens, if the user is on a limited account. It does not happen, if the user is local Administrator or if the user has the modify permission on the CLSID key. Even make the user an Administrator stops it only, until he is being revoked the Administrator permissions.

Since I cannot get clean information from those, who should be able to provide it, I have to find a workaround. Allowing users write permissions to the CLSID key in general would be the easiest, but with the most security impact. If I could instead apply these permissions to the control specific keys only, I would have to figure out, which are those and set the permissions automated during the installation.

Is it possible with Advanced Installer, to add a permission instead of replacing all exisiting permissions (i.e. preserve the inherited permissions from the parent folder/reg key and add the wanted permissions for new users/groups)? If not, how can I handle the permissions for the account TrustedInstaller? Last time I tried to add this account for a permission set in AI, this didn't work (but it was a few weeks ago ...).

Best greetings from Germany
Olaf
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How can I define the CLSID?

Hello,
The COM page is empty for me. I thought, that right clicking the DLL in Files and Folders and selecting Go to Component would have been already enough to get there. But I may be wrong with that assumption (would have been too simple, maybe).
You will need to manually add the file as a COM from the COM page after you have added it to the Files and Folders page.
Is it possible with Advanced Installer, to add a permission instead of replacing all exisiting permissions (i.e. preserve the inherited permissions from the parent folder/reg key and add the wanted permissions for new users/groups)? If not, how can I handle the permissions for the account TrustedInstaller? Last time I tried to add this account for a permission set in AI, this didn't work (but it was a few weeks ago ...).
You can do the following:
- go to the registry page
- select the key you want to set permissions for (or create it if it does not exist)
- right click it and select properties
- go to the permissions tab

From this tab you can set permissions for the selected key.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
OlafE
Posts: 8
Joined: Mon Feb 22, 2010 8:53 pm

Re: How can I define the CLSID?

Thanks for your answer.
Best greetings from Germany
Olaf

Return to “Common Problems”