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.

windows installer - How to execute Custom Action before RemoveExistingProducts with After="InstallValidate" in WiX -


i have this:

<installexecutesequence>   <removeexistingproducts after="installvalidate"/> </installexecutesequence> 

since 1 of uninstallation fails need execute custom action solve problem before removeexistingproducts. in lines of:

<customaction id="fixstuff" .. />  <installexecutesequence>   <custom action="fixstuff" before="removeexistingproducts" />   <removeexistingproducts after="installvalidate"/> </installexecutesequence> 

this of course doesn't work since custom action cannot before installinitialize. i'd remove existing products between installvalidate , installinitialize, i'd execute fixstuff before removing existing products.

is possible that?

unfortunately cannot run elevated custom action before removeexistingproducts current configuration.

some possible approaches be:

  1. move removeexistingproducts right before installfinalize. solves custom action problem, other problems may occur since approach has many restrictions (the components need maintain names , guids between versions, custom actions should aware upgrade performed @ installation end etc.).

  2. create exe bootstrapper fixes old installer before launching new msi. bootrapper can require administrator privileges through manifest:

http://msdn.microsoft.com/en-us/library/bb756929.aspx

  1. repair broken msi using method:

    • fix problem in old msi
    • create bat or exe bootstrapper recaches through command:

    msiexec /fv <path_to_msi>

    • distribute msi update before new package

when new package runs removeexistingproducts, old cached msi should fixed , should uninstall correctly.


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 -