Setup and deployment with input dialog in c#.net -
i created 1 windows service , want input dialog in setup take 2 parameters user @ time of installation , if user enter parameters next
button should available.
also want fetch these parameters value use them.
i have added projectinstaller on service , added below code on projectinstaller.cs
class, not working.
public override void install(system.collections.idictionary statesaver) { base.install(statesaver); dbconfigurationclass objdbconfigurationclass = new dbconfigurationclass(); objdbconfigurationclass.susername = context.parameters["username"]; objdbconfigurationclass.slic = context.parameters["licensekey"]; } public override void commit(idictionary savedstate) { base.commit(savedstate); } public override void rollback(idictionary savedstate) { base.rollback(savedstate); } public override void uninstall(idictionary savedstate) { base.uninstall(savedstate); }
Comments
Post a Comment