How to downgrade application with WIX Bundle? - visual-studio-2012

I created a WIX Burn setup.
The Bundle chained multiple .MSI files for global installation (all MSI support downgrading).
<Bundle Name="APP 4.3.0"
Version="4.3.0"
Manufacturer="Manu"
UpgradeCode="$(var.UpgradeCode)">
<Chain>
<PackageGroupRef Id="VCppRedistPackage"/>
<PackageGroupRef Id="DotNet4Package"/>
<MsiPackage Id="CrystalReportPackage"
SourceFile="$(var.SolutionDir)_CommonFiles\CRRuntime_32bit_13_0_9.msi"
DownloadUrl="http://MyAppRuntime/CrystalReport_NET40/CRRuntime_32bit_13_0_9.msi"
InstallCondition="NOT CR32VersionInstalled OR IsInstalledCRVersionOlder"
Compressed="no"
Permanent="yes"
DisplayInternalUI="no"
Visible="yes" />
<MsiPackage SourceFile="$(var.SolutionDir)..\OthersSetup\Setup.msi" Permanent="yes" DisplayInternalUI="no" Visible="yes" />
<MsiPackage SourceFile="$(var.AppInstall.TargetDir)AppInstall.msi" Permanent="no" DisplayInternalUI="yes" Visible="no" />
</Chain>
I really have to allow downgrading for testing reasons.
Any solution or proposal ?
Thanks in advance

Burn does not allow downgrade for MSI packages. When a newer package is already installed, Burn proceeds to mark the package as applicable and the install then fails since the MSI blocks the downgrade unless SuppressDowngradeFailure is set to "yes".
See WixStandardBootstrapperApplication Element for more details.

Related

launchnavigator plugin building with error in phonegap buid

Today the phonegap build issue an error with launchnavigator plugin,the following error is displayed on the build log:
Failed to install 'uk.co.workingedge.phonegap.plugin.launchnavigator': Error: Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID, any thought?
Worth to try this command line to include in your project as well
$ cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator --variable GOOGLE_API_KEY_FOR_ANDROID="{your_api_key}"
According to the plugin's CHANGELOG, there's a new major version 5.0.0 which contains this change:
Add plugin variable to enable specification of Google API key for geocoding on Android. Fixes #211.
So you will need to add the plugin variable as outlined in the updated plugin documentation:
<plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" source="npm" >
<variable name="GOOGLE_API_KEY_FOR_ANDROID" value="{your_api_key}" />
</plugin>

WixUIExtension.dll could not load from the network path while creating MSI package using WIX

I am using WIX (Windows Installer XML 3.7) to create an MSI package.
This is in my *.WIXPROJ file
<ItemGroup>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixToolPath)WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
</ItemGroup>
Also,
<PropertyGroup>
<ApplicationPath>\\BuildFolder</ApplicationPath>
<WixToolPath>$(ApplicationPath)\BuildMSI\wix37-binaries\</WixToolPath>
</PropertyGroup>
When creating MSI file from network path following error is occurred.
The extension '\BuildFolder\wix37-binaries\WixUIExtension.dll' could not be loaded because of the following reason: Could not load file or assembly 'file://\BuildFolder\wix37-binaries\WixUIExtension.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Please help me how to resolve this issue.
Regards,
Dileep
Try the following:
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>

Gradle fails on manifest merging for "targetApi"

My project contains activity declarations in the manifest that use the tools:targetApi attribute to ignore some warnings. Specifically:
<activity
android:name=".activities.ProtocolActivity"
android:label="#string/title_activity_protocols"
android:parentActivityName=".activities.InformationActivity"
tools:targetApi="jelly_bean">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.InformationActivity" />
</activity>
Out of the blue, however, for instance after switching branches, I get the following compilation error:
Error:/home/paul/git/ally-v2-app/app/src/main/AndroidManifest.xml:67:9-80:20:
Error: Invalid instruction 'targetApi', valid instructions are :
REMOVE,REPLACE,STRICT
...
Error:java.lang.IllegalArgumentException: No
enum constant com.android.manifmerger.AttributeOperationType.TARGETAPI
I'm using the following:
Gradle 2.10
Gradle plugin 2.0.0-beta6
Android Studio 2.0 beta 6
Both on an Ubuntu 15.10 machine and a Windows 10 machine
It seems I can get things working again by clearing the cache and restarting Android Studio, or removing the attributes, building, then adding them again.
Replacing it by
tools:ignore="UnusedAttribute"
also fixes the lint issue.
Remove the targetApi tag:
tools:targetApi="jelly_bean"
I am posting this late, but probably will help someone..
Find the manifest.xml file described by error in the temp folder, copy it and past in the assets->plugins->android directory and rename it to AndroidManifest.xml
Then edit it and find the <application...> and inside it paste the suggested solution.
For example, I had to paste tools:replace="android:label" so it would look like <application ... tools:replace="android:label">

Visual Studio 2013 Premium solution load errors after Update 3

I installed VS2013Update 3 and now I get errors when opening an solution:
The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish' package did not load correctly.
And
The 'ScaffoldungVSPackage' package did not load correctly.
The outcome of this is that I can't open the Publish-Dialog and there are no templates when creating a new Webproject.
In the activitylog are following errors:
<entry>
<record>447</record>
<time>2014/08/05 14:27:31.859</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Web.Publish.WebPublishPackage, Microsoft.VisualStudio.Web.Publish]</description>
<guid>{1AD387FC-B1E8-4023-91FE-F22260B661DB}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VisualStudio.Web.Internal.Contracts.Publish.IVsWebJobPublishService' from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts, Version=2.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
<entry>
<record>450</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
<entry>
<record>451</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
Has anyone an idea how to resolve this issue? I already tried:
Reinstalling VS2013
Reinstallung Update 3
Reinstalling WindowsAzureSDK V2.4
Disabling Extensions
run /devenv setup /devenv updateconfiguration
Delete Appdatafiles
Thanks!
the following solution from the asp.net-forums worked for me:
the solution was to reset the assemblies for Contract and Publishing using the Developer command prompt as Administrator If you have used the default installation setting then this is probably the path
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Publish.dll"
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Internal.Contracts.dll"
here is the link:
http://forums.asp.net/p/2000916/5751509.aspx?p=True&t=635430085558824221&pagenum=1
I resolved the issue by downloading the assemblies and restarting VS2013 update 5
https://www.microsoft.com/en-us/download/details.aspx?id=43709

Mvc 5.1 MissingMethodException System.Web.WebPages.TypeHelper.ObjectToDictionaryUncached

I'm update my MVC5 project to MVC5.1 and now have exception on route dictionary:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
stack trace:
{"Method not found: 'System.Web.Routing.RouteValueDictionary System.Web.WebPages.TypeHelper.ObjectToDictionaryUncached(System.Object)'."}
at System.Web.Mvc.RouteCollectionExtensions.CreateRouteValueDictionaryUncached(Object values)
at System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute(RouteCollection routes, String url, Object constraints)
at System.Web.Mvc.RouteCollectionExtensions.IgnoreRoute(RouteCollection routes, String url)
at WebApplication1.RouteConfig.RegisterRoutes(RouteCollection routes) in c:\Users\aivanov\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\App_Start\RouteConfig.cs:line 14
at WebApplication1.MvcApplication.Application_Start() in c:\Users\aivanov\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\Global.asax.cs:line 17
In the References i found that System.Web.WebPages.dll version 3.0.11001.0 shows this type of error, but when i replace it with System.Web.WebPages.dll version 3.0.20129.0 it works. So Simply you should delete the old one from refrences and download the other version and than clean solution, rebuild and it will work.
In my case helped deleting files in temporary folder "C:\Users{yourprofilename}\AppData\Local\Temp\Temporary ASP.NET Files\"
Please make sure you have a reference to :
using System.Web.Http; (c)
or
Imports System.Web.Http (vb)
At the top of your RouteConfig File in App_Start directory.
Other than that, although the title is a bit off topic, you might find what your looking for at this link on MS: http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs - Hopefully this will get you going in the right direction! If you have other details, please let me know and I would be more than happy to continue to try and help!
Hope all is well.
In addition to the step suggested by #Leonardo, I also had to add the following to my Web.config:
<compilation debug="true" targetFramework="4.5.1">
<assemblies>
<add assembly="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
</assemblies>
</compilation>
I reinstalled the nuget packages for Microsoft Asp.Net MVC and it worked for me. I am not sure but I think this problem occurs after upgrading MVC version.
So reinstalling nuget package worked.

Resources