Re: [WiX-users] Cannot view RootView.xaml file in visual studio 2010
Hi Rob, My mistake. I should have been more descriptive with my wix.zip reference. I was referring to the wix-16a8b5dbf828f92e28138ce3c9ee852affeaa1ef.zip. Just curious, since I have you attention, but what is the preferred method to using the existing wixBA? Is it first creating a new solution in visual studio then adding the wixBA and core projects? Or what I mentioned above in my previous post in order to get things to work? I would like to prevent others from having this bad experience. Thanks, Lino -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Cannot-view-RootView-xaml-file-in-visual-studio-2010-tp7596500p7596570.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot view RootView.xaml file in visual studio 2010
Ok I think I figured this one out. Well what works for me. In case someone else runs into this problem here is what I did. I downloaded the wix.zip file from the wix website and right clicked on the zip file went to properties and checked 'unblock'. I then create a new wpf solution and named it TestBA. I then created two new wpf projects, one named TestBA and the other Core. I then manually copied all files from the core project located under the src\ext\BalExtension\mba\core\ directory to my newly created Core project. Then I copied all files under the src\Setup\WixBA directoy to my newly created TestBA project directory. Now with all the files moved respectively under the each directory, I edited the namespaces for each project. I also updated the 'suppress warnings' and xml file documentation file in the core project properties and updated the reference assemblies to match the existing core project. And for the TestBA project I needed to update the namespace in the project properties as well as the references to match the existing WixBA project references. So basically I needed to create a new solution file along with two wpf projects and add the source code manually. Unless someone else can prove otherwise, I believe there is something inherently bad with WPF projects when zipped and shipped. I'm not sure if its related to security or windows 7 security or possibly a bug within visual studio 2010. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Cannot-view-RootView-xaml-file-in-visual-studio-2010-tp7596500p7596565.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot view RootView.xaml file in visual studio 2010
So, I was able to fix my problem on my local PC, but since then I needed to switch on over to a VM that is running Window7. To my surprise the problem came back, but only on the VM. This is very disturbing especially when the folder containing all of the source code was copied from the PC, which works. What would cause this problem from one machine to another?? Up to my eye balls with frustration, I decided to take on another path, which was create a new BA project and call it testBA instead of wixBA. I'm successfull in building my project, but ran into the same problem as before where I cannot view the RootView.xaml file only this time I'm, receiving another error. System.Xaml.XamlObjectWriterException Set property 'System.Windows.ResourceDictionary.Source' threw an exception. at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) at MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value) at System.Xaml.XamlObjectWriter.SetValue(Object inst, XamlMember property, Object value) at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent) at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx) at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) at System.Xaml.XamlObjectWriter.WriteEndMember() at System.Xaml.XamlWriter.WriteNode(XamlReader reader) at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter) at System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled) at System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled) at System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean canCache) at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference) at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) at System.Windows.FrameworkElement.UpdateThemeStyleProperty() at System.Windows.FrameworkElement.OnInitialized(EventArgs e) at System.Windows.FrameworkElement.TryFireInitialized() at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent) at System.Windows.FrameworkElement.AddLogicalChild(Object child) at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element) at System.Windows.Controls.UIElementCollection.Add(UIElement element) at MS.Internal.GridControl.GridDesigner.InitGridDesigner() at MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem) at MS.Internal.GridControl.AlwaysVisibleGridAdornerProvider.Activate(ModelItem item) at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item) at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions) at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders() at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool) at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1..ctorb__0(Tool newTool) at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item) at Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item) at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item) at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value) at MS.Internal.Host.ToolSubsystem.ActivateTool(ToolFactory toolFactory) at MS.Internal.Host.ToolSubsystem..ctor(EditingContext editingContext, DesignerContext designerContext) at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Load() at MS.Internal.Designer.DesignerPane.LoadDesignerView() System.IO.FileNotFoundException Could not load file or assembly 'BootstrapperCore,
[WiX-users] How to display uninstall progress bar using BootStrapper Application
Hello, I have a bootstrapper application (BA) that installs an MSI. Upon installation, I have DisplayInternalUI=yes, which seems to work by displaying the msi dialog. Now, when I perform an uninstall, through the BA, I do not see the progress bar displaying the uninstallation. Can this be achieved using ver Wix3.8? Important Note: When I install my application via the msi, I see my dialog and when I uninstall I see the progress bar. Thanks InAdvance. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-display-uninstall-progress-bar-using-BootStrapper-Application-tp7596473.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to reference variables within an msi that are set in bootstrapper app
How can I reference in my MSI a variable that I'm passing in from my bootstrapper. For example, I have the following text in my bundle.wxs file: within Bundle Variable Name=baVersion bal:Overridable =yes Type =string Value =123456789/ within MsiPackage MsiProperty Name =baVersion Value =[baVersion]/ In my MSI where ever I have $(var.msiVersion) I would like to use the Msiproperty variable baVersion from my BA bundle.wxs. Is this possible? Examples are greatly appreciated. Thanks InAdvance -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-reference-variables-within-an-msi-that-are-set-in-bootstrapper-app-tp7596474.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to reference variables within an msi that are set in bootstrapper app
Mr Cooper, Thank you for your response. It worked as described. All I needed to do was reference the MsiProperty Name in my MSI package with []. So for example, my MsiPackage name is VersionA, then I would reference it in my MSI where ever in my as [VersionA]. Thanks Again. Lino -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-reference-variables-within-an-msi-that-are-set-in-bootstrapper-app-tp7596474p7596481.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to display uninstall progress bar using BootStrapper Application
Rob, Thank You for the insight. Just curious, does the BA suppress the dialog progress UI? The only reason I ask is simply after installing software via MSI and then uninstalling the MSI the uninstall progress bar is visible. Lino -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-display-uninstall-progress-bar-using-BootStrapper-Application-tp7596473p7596496.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Cannot view RootView.xaml file in visual studio 2010
Has anyone experience this following error below? I've tried to unblock the WixBA.project and also added loadFromRemoteSources enabled=true/ inruntime Error 1 Unable to load the metadata for assembly 'WixBA'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'WixBA' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045) C:\WIX3.7\wix-16a8b5dbf828f92e28138ce3c9ee852affeaa1ef\src\Setup\WixBA\RootViews.xaml 1 1 WixBA Thanks InAdvance -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Cannot-view-RootView-xaml-file-in-visual-studio-2010-tp7596500.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot view RootView.xaml file in visual studio 2010
I happen to find a link on the internet that states: If you download a .ZIP and unzip it, the individual files will be marked as the same zone as the .ZIP. Almost every time I have a folder full of blocked files, this is how I got them. Before unzipping, click the Unblock button on the .ZIP. Reference Link:http://superuser.com/questions/38476/this-file-came-from-another-computer-how-can-i-unblock-all-the-files-in-a -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Cannot-view-RootView-xaml-file-in-visual-studio-2010-tp7596500p7596502.html Sent from the wix-users mailing list archive at Nabble.com. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] WiX burn: how to change 'WixBundleName' in bootstrapper application?
In my bundle element I have an attribute Name, I would like to edit this during an install after a user has selected which application they would like to install. How can I accomplish this task? I tried the following below, but no luck. Bundle Name=!(loc.WixBundleName)) Version=1.0.0.0 Manufacturer=Testing UpgradeCode=C82A383C-751A-43B8-90BF-A250F7BC2863 I took the name WixBundleName from the following link. http://wixtoolset.org/documentation/manual/v3/bundle/bundle_built_in_variables.html I received the following error... Error 6 The localization variable !(loc.WixBundleName) is unknown. Please ensure the variable is defined Also, in my BA class file, I have the following to edit this variable. this.Bootstrapper.Engine.StringVariables[WixBumdleName] = customProductName; Thanks InAdvance. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-burn-how-to-change-WixBundleName-in-bootstrapper-application-tp7596357.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] WiX burn: how to change 'WixBundleName' in bootstrapper application?
neslekkim That was it! Thank You. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-burn-how-to-change-WixBundleName-in-bootstrapper-application-tp7596357p7596359.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to retrieve a install/uninstall event data within a bootstrapper application
I actually figure it out. You need to use the Bootstrapper.Command.Action method that returns a launchaction. So you will need to compare it to LaunchAction.Install. So the code will look like Bootstrapper.Command.Action == LaunchAction.Install I hope this help other in the future. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-retrieve-a-install-uninstall-event-data-within-a-bootstrapper-application-tp7596338p7596349.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to retrieve a install/uninstall event data within a bootstrapper application
I have a method OnDetectPackageComplete in my Wix Bootstrapper application that gets launch when the detectpackagecomplete event is fired. Within that method, I would like to retrieve status whether BA application is running for installing or an uninstalling a package. For example, if the user double clicks on the file.exe, then get the status should be 'Install'. Or if the application is already installed and someone would like to uninstall it, the status should be 'Uninstall'? Thanks InAdvance. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-retrieve-a-install-uninstall-event-data-within-a-bootstrapper-application-tp7596338.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Passing Variables from C# custom BA to WIX
Ok, I ran the debugger and to my surprise, this executes after U click the InstallA button. I was thought this would run before any buttons were clicked. So, in trying to better understand how passing parameters work, what command can I use to pass variables from my wpf application to my WIX script? Is there an example of syntax structure between C# and WIX? I would like add to my MsiPackage (in WIX) the element InstallCondition and pass a parameter to it that will either install or not install the package. Thanks Again. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-Variables-from-C-custom-BA-to-WIX-tp7596113p7596183.html Sent from the wix-users mailing list archive at Nabble.com. -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Passing Variables from C# custom BA to WIX
Hi Rob, Thank You for the insight on using PlanPackageBegin event. I tried your recommendation in my wpf app, but haven't had much success. I have a simple wix ba project that contains one bundle and chain element. In my PlanPackageBegin event I have added source code to check for Netfx4Full. The problem here is that my PlanPackageBegin operation is never called. Although it has been subscribed to an event in my constructor. Where did I go wrong here in my implementation. I've added code for reference below: Wix Code: ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; xmlns:util=http://schemas.microsoft.com/wix/UtilExtension; xmlns:bal=http://schemas.microsoft.com/wix/BalExtension; Bundle Name=My Test Application Version=1.0.0.0 Manufacturer=lino UpgradeCode=C82A383C-751A-43B8-90BF-A250F7BC2863 Variable Name =AToInstall bal:Overridable=yes Value=A Type=string/ BootstrapperApplicationRef Id=ManagedBootstrapperApplicationHost Payload SourceFile=..\TestBA\BootstrapperCore.config/ Payload SourceFile=..\TestBA\bin\Debug\TestBA.dll/ Payload SourceFile=..\TestBA\bin\Debug\GalaSoft.MvvmLight.WPF4.dll/ Payload SourceFile=C:\Program Files (x86)\WiX Toolset v3.8\SDK\Microsoft.Deployment.WindowsInstaller.dll/ /BootstrapperApplicationRef Chain PackageGroupRef Id='Netfx4Full' / MsiPackage Id=DummyInstallationPackageId SourceFile=..\DummyInstaller\bin\Release\DummyInstaller.msi Cache=yes Visible=no/ /Chain /Bundle Fragment WixVariable Id=WixMbaPrereqPackageId Value=Netfx4Full / WixVariable Id=WixMbaPrereqLicenseUrl Value=NetfxLicense.rtf / util:RegistrySearch Root=HKLM Key=SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full Value=Version Variable=Netfx4FullVersion / util:RegistrySearch Root=HKLM Key=SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full Value=Version Variable=Netfx4x64FullVersion Win64=yes / PackageGroup Id=Netfx4Full ExePackage Id=Netfx4Full Cache=no Compressed=yes PerMachine=yes Permanent=yes Vital=yes SourceFile=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\dotNetFx40_Full_x86_x64.exe DownloadUrl=http://go.microsoft.com/fwlink/?LinkId=164193; DetectCondition=Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion) / /PackageGroup /Fragment /Wix C# wpf MainViewModel code: using Microsoft.Tools.WindowsInstallerXml.Bootstrapper; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using System; namespace Examples.Bootstrapper { public class MainViewModel : ViewModelBase { //constructor public MainViewModel(BootstrapperApplication bootstrapper) { System.Threading.Thread.Sleep(1); this.IsThinking = false; this.Bootstrapper = bootstrapper; this.Bootstrapper.ApplyComplete += this.OnApplyComplete; this.Bootstrapper.DetectPackageComplete += this.OnDetectPackageComplete; this.Bootstrapper.PlanPackageBegin += this.PlanPackageBegin; this.Bootstrapper.PlanComplete += this.OnPlanComplete; } #region Properties private bool installAEnabled; public bool InstallAEnabled { get { return installAEnabled; } set { installAEnabled = value; RaisePropertyChanged(InstallAEnabled); } } private bool installBEnabled; public bool InstallBEnabled { get { return installBEnabled; } set { installBEnabled = value; RaisePropertyChanged(InstallBEnabled); } } private bool uninstallEnabled; public bool UninstallEnabled { get { return uninstallEnabled; } set { uninstallEnabled = value; RaisePropertyChanged(UninstallEnabled); } } private bool isThinking; public bool IsThinking { get { return isThinking; } set { isThinking = value; RaisePropertyChanged(IsThinking); } } public BootstrapperApplication Bootstrapper { get; private set; } #endregion //Properties #region Methods private void InstallAExecute() { IsThinking = true; Bootstrapper.Engine.StringVariables[AToInstall] = A; Bootstrapper.Engine.Plan(LaunchAction.Install); } private void InstallBExecute() { IsThinking = true; Bootstrapper.Engine.StringVariables[BToInstall] = B; Bootstrapper.Engine.Plan(LaunchAction.Install); } private void UninstallExecute() { IsThinking =
[WiX-users] Passing Variables from C# custom BA to WIX
I'm currently learning how to implement custom BA's through WIX and happen to run into a road block. I've created a custom GUI through WPF and need pass back to the WIX bootstrapper app, variables that I set in the C# application. Here is my C# function that calls the Bootstrapper app private void InstallAExecute() { IsThinking = true; Bootstrapper.Engine.StringVariables[AToInstall] = A; Bootstrapper.Engine.Plan(LaunchAction.Install); } and in my Boostrapper app, I have the following element Variable Name =AToInstall bal:Overridable=yes Value=A Type=string/ declared above my BootstrapperApplicationRef element. Then in my element Chain, I would like to add a conditional to trigger a particular msi to be installed when the variable satisfies the condition. This is what I have in my chain, but I think my syntax is incorrect. Chain PackageGroupRef Id='Netfx4Full' / MsiPackage SourceFile=..\Path\To\Installer.msi Id=InstallationPackageId Cache=yes Visible=no InstallCondition =AToInstall=A/ /Chain Any idea where I went wrong? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-Variables-from-C-custom-BA-to-WIX-tp7596113.html Sent from the wix-users mailing list archive at Nabble.com. -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users