Custom Installer and MSI Installer  
Author Message
Chandra4332





PostPosted: .NET Compact Framework, Custom Installer and MSI Installer Top

Hello Everyone,

I created MSI Installer and in that installer asked the user to enter the IP Address for the web service.I am able to get the value entered by the user while installing the application in the custom installer class by using Context.Parameteres collection.The problem is, I want to pass this value from my custom installer to my actual PDA project so that users of this application will be connecting to the webservice with the IP Address entered by them while installing the application.

Currently we include a .config file which contains static IP Address for the web service.If the user wants to point to a different server he will change the config file in the desktop and copy it over to PDA.but they want the entered IP Address to reflect in the .config file as it is not possible becoz .config file is already packaged in the .CAB file.

Please help as I dont have a clue how to do this at all.

Waiting for your response

Chandra



Smart Device Development1  
 
 
Alex Feinman





PostPosted: .NET Compact Framework, Custom Installer and MSI Installer Top

One of the options would be to create a custom installer action (easy to do in .NET languages) and use RAPI (wrapped here) to write device registry directly.

The obvious disadvantage is that the device will need to be connected while installer is running and you will need to implement a check for device being connected and fail installation if it isn't. Several commercial packages do this



 
 
Chandra





PostPosted: .NET Compact Framework, Custom Installer and MSI Installer Top

Hi Alex,

Thanks so much for your help.Its working.I am very very thankful to you. I dint know I can access RAPI functions from Desktop library in the sense Custom Installer Class once I have done that. I downloaded the opennetcf.Communication library and started using it it works like a charm.

Thanks very much

Cheers

Chandra