bootstrapper

How to use Ninject bootstrapper in WebApi OwinHost Startup?

只谈情不闲聊 提交于 2019-12-03 05:51:23
问题 I am migrating from IIS WebAPI to OwinHost. Utilizing the latest pre-release versions of nuget packages, I successfully used instructions here: https://github.com/ninject/Ninject.Web.Common/wiki/Setting-up-a-OWIN-WebApi-application Here is stub of my code: public void Configuration(IAppBuilder app) { var config = new HttpConfiguration(); config.MapHttpAttributeRoutes(); app.UseNinjectMiddleware(CreateKernel); app.UseNinjectWebApi(config); } private static StandardKernel CreateKernel() { var

How to use Ninject bootstrapper in WebApi OwinHost Startup?

江枫思渺然 提交于 2019-12-02 19:13:56
I am migrating from IIS WebAPI to OwinHost. Utilizing the latest pre-release versions of nuget packages, I successfully used instructions here: https://github.com/ninject/Ninject.Web.Common/wiki/Setting-up-a-OWIN-WebApi-application Here is stub of my code: public void Configuration(IAppBuilder app) { var config = new HttpConfiguration(); config.MapHttpAttributeRoutes(); app.UseNinjectMiddleware(CreateKernel); app.UseNinjectWebApi(config); } private static StandardKernel CreateKernel() { var kernel = new StandardKernel(); kernel.Load(Assembly.GetExecutingAssembly()); RegisterServices(kernel);

Wix doesn't remove previous version of burn exe during major upgrade

旧巷老猫 提交于 2019-12-02 16:11:20
问题 I have created a wix exe using burn bootstrapper. When I try to do a major upgrade on it, the new version gets installed. The features missing in the new upgrade are also removed from the existing folder structure. But in "Add or Remove Programs" I can still find both the installations. I have incremented the version from 1.0.0.0 to 1.0.1.0 in Bootstrapper project's Bundle.wxs file. I have also incremented the version in Setup project's Product element from 1.0.0.0 to 1.0.1.0. I didn't change

How to register service class with multiple repository types in Bootstrapper file?

佐手、 提交于 2019-12-02 15:38:07
问题 There are 4 parameterized constructor of one of my service layer(ProductService). And all of the 4 constructors are injected with different repository types. public class ProductService : IProductService { private IUserDal<Users> mUserDal { get; set; } private IItemDal<Item> mItemDal { get; set; } private IRoleDal<Role> mRoleDal { get; set; } private IBranchDal<Branch> mBranchDal { get; set; } public ProductService (IUserDal<Users> userDal) { mUserDal = userDal; } public ProductService

How to perform Wix Upgrade with custom bootstrapper

人走茶凉 提交于 2019-12-02 10:54:07
问题 I want to enable Upgrade in the 2nd version of our WiX custom BA installer. In my Product.wxs, Product ID is set to *, version is set to 2.0.0, and upgrade code remains the same as the 1st version's. To detect Upgrade, I used DetectRelatedBundle event handler in the Boostrapper. The MajorUpgrade tag in the MSI looks like this: <MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="no" Schedule=

How to perform Wix Upgrade with custom bootstrapper

為{幸葍}努か 提交于 2019-12-02 04:27:50
I want to enable Upgrade in the 2nd version of our WiX custom BA installer. In my Product.wxs, Product ID is set to *, version is set to 2.0.0, and upgrade code remains the same as the 1st version's. To detect Upgrade, I used DetectRelatedBundle event handler in the Boostrapper. The MajorUpgrade tag in the MSI looks like this: <MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="no" Schedule="afterInstallInitialize" /> In my installer UI, I have an Install button. When this button is clicked during Upgrade

How can I create a bootstrapper that auto-installs .Net Framework 4.5

你。 提交于 2019-12-02 03:36:15
I'm using InstallShield 2013 LE and I'm looking to do something similar to SQL CE 4.0 as a InstallShield Prerequisite . Only, I want to install .Net Framework 4.5, if it's not already on the machine. I have the file I need for the framework, but LE doesn't allow me to work on prerequisites. I saw the recommendation for DotNetInstaller and I downloaded and started working on that. But it looks like DotNetInstaller is very old and doesn't include .Net Framework 4.5 (stand-alone) in its list. Is there a way to add it? Then I looked at WiX and wasn't sure I could follow the documentation. I also

Wix Bootstrapper MSI-Package logging, how?

风流意气都作罢 提交于 2019-12-01 17:50:23
I have a bootstrapper that installs a MSI-package. How can i achieve that at least the msi-package-installation gets logged( verbose logging )? And where can i set the log-file-path? Because I won't be able to log everything i guess? And no, i don't want a cmd-solution , i need to implement this into my setup Found LogPathVariable, but don't really know how it works? <MsiPackage SourceFile="$(var.Setup.TargetPath)" LogPathVariable="" /> Googled arround many times and havn't found a solution for this problem, any help? The default case (no LogPathVariable set) will create logs in C:\Users

Creating a custom bootstrap / bootloader in C#

此生再无相见时 提交于 2019-12-01 12:32:34
问题 We've decided to create a custom bootstrapper for our deployment solution. We are currently re-writing and re-designing our deployment strategy for all of our products. Sadly, none of us are deployment experts. Here's what we have so far: A. The MSI packages will be authored in InstallShield. We will use whatever feature Installshield offers (IIS integration, COM registration, Registry, etc). The dialog's created by InstallShield will not be used (that is what the bootstrapper is for). The

Creating a custom bootstrap / bootloader in C#

戏子无情 提交于 2019-12-01 12:01:28
We've decided to create a custom bootstrapper for our deployment solution. We are currently re-writing and re-designing our deployment strategy for all of our products. Sadly, none of us are deployment experts. Here's what we have so far: A. The MSI packages will be authored in InstallShield. We will use whatever feature Installshield offers (IIS integration, COM registration, Registry, etc). The dialog's created by InstallShield will not be used (that is what the bootstrapper is for). The MSIs will be installed silently. B. Whenever we need to write CA's for stuff that InstallShield can't