Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c# 2.0 - Unable to Pass parameters to MSI thro Msiexec via command prompt -


hii ppl trying pass parameter thro msiexec in command prompt . problem eventhough parameter passed value doesnt reflected in onbeforeinstallevent. therefore msi doesnt installed.

the onbeforeinstall written c#.net framework 2.09 (vs 2005) , event call given below,

string servername=context.parameters["servername"].

for example, in custom action parameter declared /servername=[servername] access server name.

there no problem when install thro normal ui mode when pass parameter thro msiexec value doesnt reflected @ onbeforeinstall event. tried logging flow of installation thro msiexec /log , value gets changed in log ( shown below)

property change: adding servername property. value 'machine1'.

i have given below msiexec command use pass values,

msiexec.exe /i "c:\server.msi" /l*v "c:\server.txt" allusers=1 reboot=reallysupress targetdir="c:\program files\server" servername="machine1" port="9090"

but on reaching onbeforeinstall value empty (show below).

error 1001. exception occurred in onbeforeinstall event handler of server.servicesinstaller. --> installation cannot continued of installation parameters not given. more info -server name cannot empty. debug: error 2769: custom action _542e7ac5_7403_434a_874b_de2872a4848d.install did not close 1 msihandles. installer has encountered unexpected error installing package. may indicate problem package. error code 2769.

moreover, operating system win 2003 . tried msiexec in win xp still no go. servername property name of 1 of textboxes in textbox2 dialog box of setup kit. while observing installation log , property change event recognizing value change servername becomes null while reaching onbeforeinstall event don kno wy.

as said earlier works in normal ui mode. tried modifying property table of server.msi thro orca(as given below).

table :property row :securecustomproperties property -> securecustomproperties changed value newerproductfound newerproductfound;servername

still no go

please help.

many thanks,

byfour

hii ppl, fixed myself jus removed rows customtexta_setproperty_edit1 customaction table , refferences in other tables using orca , solved issue.

many thanks,

byfour


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -