Installing MMC 3.0 SnapIns - 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!

hectorsosajr
Posts: 3
Joined: Sat Feb 20, 2010 7:29 am
Location: Springville, UT
Contact: Website

Installing MMC 3.0 SnapIns

Hi,

My product is a MMC 3.0 snapin. This version of MMC allows the creation of snapins using .NET. I created a custom action on the Install node that calls C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe. In Windows Vista and 7, this needs to run as administrator, in order for it to run. Is there a way to elevate this custom action? Is there some other way to install this snapin?

Thanks,

Hector
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installing MMC 3.0 SnapIns

Hi,

For this you can try to set the "Execution Options" group corespondent to the custom action to "Deferred with no impersonation".
This should allow the custom action to run as desired.

If this still doesn't solve your problem then another solution would be for the entire installation package to request for admin rights when installing.
This can be don from the Install Parameters page, Installation Type combobox.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hectorsosajr
Posts: 3
Joined: Sat Feb 20, 2010 7:29 am
Location: Springville, UT
Contact: Website

Re: Installing MMC 3.0 SnapIns

Well, I tried all kinds of different settings, but to no avail. I tried registering the file manually with a batch file, and that worked correctly. The batch file contains the following:

C:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
installutil "C:\Program Files\SystemWidgets\PainlessSVN Console\PainlessSVN Professional.dll"

I attached a zip file that contains enough to test this. Would it be possible to have somebody in your staff look this over? I really would like to buy your program, but this is a showstopper.

- Hector
Attachments
testfiles.zip
Minimum files to test install, with batch file to install and uninstall MMC 3.0 snapin.
(163.99 KiB) Downloaded 354 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing MMC 3.0 SnapIns

Hello Hector,

I am not sure how MMC snap-ins work. However I have created an installer that appears to install the snap-in successfully. Or at least the installutil tool reports no errors.
Attached is the project.

Do let me know how this worked for you.

Best regards,
Gabriel
Attachments
testfiles.zip
(747.63 KiB) Downloaded 346 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
hectorsosajr
Posts: 3
Joined: Sat Feb 20, 2010 7:29 am
Location: Springville, UT
Contact: Website

Re: Installing MMC 3.0 SnapIns

That worked. Thanks!

What does <AI_CUSTACTS>viewer.exe do? I didn't find an entry in your user guide.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing MMC 3.0 SnapIns

Hello,

That is the executable for the Launch File or Open URL custom action.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”