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!

tropez
Posts: 6
Joined: Thu Oct 18, 2012 5:38 pm

I need to edit security.config during install..

So, I'm building my first installer. I need to do a few things...

1. I have to Install a font, I got that figured out.
2. I have to add a few sites to IE's trusted sites (I may do this with group policy, not sure yet).
3. I need to modify the security.config file, but I'm told I can't do this directly, I need to do it by calling caspol.exe. I'm told I need to run this command "C:\Windows\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -site www.starlims.com FullTrust -n "STARLIMS installation"

So, in regards to number 3, how would I do that? If I just call the EXE, would I be able to roll back those changes if I ever uninstalled the software?

Any suggestions would help. I tried calling their US support number and I keep getting some automated "this person is unavailable" message, no voicemail option.

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

Re: I need to edit security.config during install..

Hi and welcome to our forums,

You can call the EXE using a custom action, for example "Launch File or Open URL". Since the path of the EXE is not fixed, I assume, you should first create a search for it, in Search page, to retrieve its fullpath or the path of its parent directly. Then use the search result to configure the "Command Line" field of the predefined custom action.

For uninstall you need to add a second custom action, that calls the same EXE with, the appropriate parameters, so it reverts the changes.

For each custom action, you will options to set its execution time in Custom Action Properties pane.

Regarding the phone call, have you tried this number +1 650 963 5574 ? It was operational all night, we are on GMT+2, and my colleagues did received other calls from US.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”