I have programmed a bootstrapper-project with WiX 3.8. In the bundle i have defined a few overridable variables like this one for the name of the databaseuser:
<Variable Name="DB_USER" bal:Overridable="yes" Type="string" Value="default" Hidden="yes"/> In the viewmodel of my GUI i set the variable in the property-setter: public string DbName { get { return _dbName; } set { _dbName = value; NotifyPropertyChanged("DbName"); Bootstrapper.Engine.StringVariables["DB_NAME"] = value.ToUpper(); } } On my PC and a virtual PC for testing all works fine. But now one of my colleagues has a problem when he tries to start the bootstrapper EXE-file with doubleclick. In the Windows eventlogs we can see, that the setter of the property DbName throws an error. Stack: at Microsoft.Tools.WindowsInstallerXml.Bootstrapper.IBootstrapperEngine.SetVariableString(System.String, IntPtr) at Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Engine.<.ctor>b__7(System.String, System.String) at Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Engine+Variables`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].set_Item(System.String, System.__Canon) at Prosoft.Setup.Installer.UI.InstallerUIViewModel.set_DbUser(System.String) Can anyone tell me, what can cause such an error when setting a burn variable? Thanks in advance! Patrick -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/What-can-cause-an-error-when-setting-a-bootstrapper-variable-tp7598651.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users