I am creating one installer which needs to change config file of my one silverlight component. This component's config file is inside XAP file. Is there any way to change that config file?
相关问题
- how to Enumerate local fonts in silverlight 4
- Free Silverlight mapping with Bing maps and OpenSt
- Custom number picker?
- Error using ResourceDictionary in Silverlight
- Can we create a Silverlight Socket Server ONLY usi
相关文章
- New Windows Application - What language?
- relative url in wcf service binding
- Embedded images not showing when in a UserControl
- Silverlight 4: How can I convert bmp byte array to
- Silverlight DataTemplate Memory Leak
- Silverlight - Paramterised resource values for Int
- RIA Authentication from a Web Services project
- Use TripleDESCryptoServiceProvider class in Silver
Host your configuration file side-by-side with your XAP file.
The following code will download a file called "Settings.xml" which sits in the same directory as your XAP, and place it in Isolated Storage. You can then open/close/parse it as needed later.
In this way, your installer can add the necessary settings file side-by-side with your XAP via conditional file copy. Cracking open the XAP is a hack; it will complicate your installer code and will invalidate a signed XAP.
I have written console application in C# that is doing these changes in XAP build. I am simply calling that application from my installer as I could not find any way of doing this in NSIS.