install dll to a GAC - Advanced Installer Community
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

install dll to a GAC

until now i had an "SerialN.exe" witch store some values to registry this "SerialN.exe" it was running on the begin of AI
after that i was had a search witch stores these values to AI "SerialN_property"
and i use this "SerialN_property" for some other custom actions on AI install dialogs

now for run this SerialN.exe its needed to had install before run this "SerialN.exe" to GAC a "SerialN.dll"

how i can install this "SerialN.dll" to a GAC and after that to run the "SerialN.exe" and after set the registry values to a AI "SerialN_property" ?
or
how i can make search run again from a custom action so to store the new updated values to AI property?

thanks
Costas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install dll to a GAC

Hi Costas,

I'm afraid that a DLL file cannot be registered to GAC that early in the installation process.

In order to achieve this you can create your own custom action with this functionality or you can create a simple MSI package that installs the DLL to GAC and add it as a "pre-install" prerequisite in the main package.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: install dll to a GAC

Dear Eusebiu

i had make an "setup.msi" witch install to the GAC the "SerialN.dll"
i add on AI Prerequisites a chained package "setup.msi"
but the AI its not prompted the user for the install of this prerequisite and not install it before begin the AI dialogs

Best regards
Costas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install dll to a GAC

Hi Costas,

As I mentioned in my previous post, in order for your scenario to work you should add your prerequisite as a pre-install prerequisite in the "Pre-install" folder from the Prerequisites page. In this case the user will be prompted to install this prerequisite before the installation of the main package.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: install dll to a GAC

Dear Eusebiu

yes you had all right i do it and run with prerequisites on Pre-Install tab and its works but the user can unchecked it,
i want the user to had no action for that.

if i want to run the setup.msi without prompt for user "no user action" how i can do it with the Chained packages.
i tried to add setup.msi to a existing_programmsetup.ai but its not running .
its need to make an new.ai and add on Chained packages the setup.msi and "existing_programmsetup.msi".
its any tutorial for making Chained packages setup?

thanks
Costas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install dll to a GAC

Hi Costas,
yes you had all right i do it and run with prerequisites on Pre-Install tab and its works but the user can unchecked it,
i want the user to had no action for that.
In order to set your prerequisite to be mandatory for the installation you can go in its "Properties" tab and uncheck the "Continue with main installation even if the prerequisite is not installed" option
if i want to run the setup.msi without prompt for user "no user action" how i can do it with the Chained packages.
In order to achieve this you can set the "UI Level" to "Silent install (no UI)" in the "Options" pane when you add a Chained prerequisite.
its any tutorial for making Chained packages setup?
In order to create a Chained package you can follow our Chained Packages Page and How do I create a chained installation articles.

Also, please keep in mind that a Chained prerequisite will not be installed before searches, so, I'm not sure if this approach will work in your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: install dll to a GAC

continuous the previous posts
i had make Prerequisite setup for "SerialN.dll" the SerialN.msi
and i had add a custom action running only in uninstall to uninstall the Prerequisite SerialN.msi
its working fine on install
But when i want to uninstall the main app
the custom action its work when i am running the main setup and select remove
but its not working when i run the uninstall shortcut from installation APP folder
can you help me on this
i use AI 10.6

thanks costas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install dll to a GAC

Hi Costas,

When the "Uninstall" shortcut is launched, the main package is uninstalled with Basic UI, hence only the actions from the "Install Execution Stage" are executed. If your custom action is placed after "Finish Dialog Stage" it will not be executed when the "Uninstall" shortcut is launched.

However, you can achieve what you want by placing your custom action right above the "Finish Dialog Stage" and uncheck the "Wait for custom action to finish before proceeding" and "Wait for return code at the end of the sequence" options for it.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: install dll to a GAC

yes it works
thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: install dll to a GAC

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”