ckovamees
Posts: 18
Joined: Fri Aug 05, 2011 3:16 pm

Decrypt Web.config before search?

Hi,

We've been using the search feature to get values out of a Web.config for some time. Like this post http://www.advancedinstaller.com/forums ... =5&t=27742

Now, how do I decrypt the web.config before the search action is executed? Can I hook a custom action before the search?


Thanks,


/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Decrypt Web.config before search?

Hello Carl,

Yes, you can use your own decrypt custom action scheduled before the "Searches" actions group. You should schedule the custom action before the "Wizard Dialogs Stage -> Searches" actions group. And also, while keeping the [SHIFT] key pressed drag it under "Install Execution Stage -> Searches" actions group so it can be shared between both execution stages. During a silent installation only the "Install Execution Stage" custom actions are executed.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ckovamees
Posts: 18
Joined: Fri Aug 05, 2011 3:16 pm

Re: Decrypt Web.config before search?

Thanks.

Where would I put the decryption if it needs to run elevated before the AI_XmlLocator on an update? I tried to put after InstallValidate, but before RemoveExistingProducts, but the elevation prompt never display before my custom action. If I put it after InstallInitilize the old files are not there.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Decrypt Web.config before search?

Hello Carl,

In order to run your custom action with administrator rights you can use a "Launch file" predefined custom action and enable its "Run as Administrator" option.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”