Sorry Phill, i have made a copy-paste-error.
Of course i defined the bundle-variable like that (type=string):

        <Variable Name="DB_USER"
                  bal:Overridable="yes"
                  Type="string"
                  Value="default"
                  Hidden="yes"/>

And in my ViewModel i set the variable in the PropertySetter:

        public string DbUser
        {
            get
            {
                return _dbUser;
            }

            set
            {
                _dbUser = value;
                NotifyPropertyChanged("DbUser");
                Bootstrapper.Engine.StringVariables["DB_USER"] = value;
            }
        }

On my computer and all virtual computers i'm using it works fine.
But one of my colleagues gets an error when the DbUser-Setter is executed.

Faulting application name: ProsoftSetup.exe, version: 4.95.1.357, time
stamp: 0x5432d975
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17278, time stamp:
0x53eeb460
Exception code: 0xe0434352
Fault offset: 0x00012f71
Faulting process id: 0x15ec
Faulting application start time: 0x01d02a624bb85ab4
Faulting application path:
C:\Users\christian.erhardt\Downloads\ProsoftSetup.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: 8a035e72-9655-11e4-8259-c01885dba200
Faulting package full name: 
Faulting package-relative application ID: 

Application: ProsoftSetup.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
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)
   at Prosoft.Setup.Installer.UI.InstallerUIViewModel.PropertiesVorbelegen()
   at
Prosoft.Setup.Installer.UI.InstallerUIViewModel.StartEinstellungenSetzen()
   at
Prosoft.Setup.Installer.UI.InstallerUIViewModel..ctor(Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperApplication)
   at Prosoft.Setup.Installer.UI.UI.Run()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at
System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)
   at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)
   at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()


What can this be?
As You can see, i have definded the variable-type as string.
But in the bootstrapper-log there is a message which tells me, that the
setup tries to set a numeric variable.
Very strange.




--
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-tp7598651p7598748.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to