Changing ApplicationInitString

Sep 21, 2010 at 3:11 PM

Hi all, 

I have an external hosted application calling an exe with arguments. My problem is that I need to change the arguments dynamically, which I was not successful at. 

What I do is to change the ApplicationInitString inside my custom ApplicationAdapter's initialize method, which did not work. My exe started as if I did not change the arguments. Do you have any idea  how I can achieve this? 

Thanks

Sep 22, 2010 at 12:04 PM

Hi,

Finally solved! I managed to change the arguments by changing initializationXml string inside BeforeApplicationCreate method of DesktopService.

Sep 22, 2010 at 3:54 PM

Yea, glad you found that, that is exactly what the intention of that override is in desktop services.
The only bit you cannot update right now is the target hosting window for the application.

It has to be done at that point as, by the time the Adapter is initialized, its too late, and we wanted to give you the opportunity to point to a different file system location if necessary to support a “non-standard” deployment.

MattB.