Click to See Complete Forum and Search --> : .NET Windows App - Instilation Errors


CardTracker
April 23rd, 2009, 08:21 PM
I'm releasing a new version of my program, and people have reported a couple of errors.
I'm using .NET 2005, C#, and am making a Windows Application.


The previous version (Beta 3.1) used a GridView to connect to a database. In the newest update (essentially a Beta 3.9), I'm removing that crutch entirely, upgrading to a pure progromatic (DataAccess & friends) database access method.

This does two things: it allows me to generate much more powerful select queries and it allows the program to run from any location on the computer. Previously, the program was forced to run from a particular Program Files folder, so the built-in ConnectionString for the GridView was accurate.


With that explanation out of the way, I posted an almost-finished update, so some people could test out the "run from anywhere" aspect. I have some minor tweaks to complete in the meantime, before I release the Beta 4 this weekend.

While the update I'd intended worked, some errors apparently cropped up during installing and/or re-installation.


Error message
Looks to run fine from alternate locations... installed to "C:\Card Tracker", and it runs just fine - pulls all the images in, loads with no errors. I then moved the "Card Tracker" folder to the "My Documents" folder, and launched the executable from there, and again had no issues.

On another note, I had uninstalled the application after testing, then went to re-install the same version to check the further saves after initial as I'd forgotten to test that originally, and got a large number of error messages during the install.
[note: uninstalled via Add/Remove Programs tool]

The message displayed was "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908." In Event Viewer under the Application section has a large number of errors Source: MsiInstaller, Event: 10005, Details: "Product: Card Tracker -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The arguments are: {ClassString}, ," Each error in the event log has a different {ClassString} value. However, after install the program ran just fine. This was on Windows XP Pro SP3 with .NET v1.1 (w/ Hotfix KB928366), 2.0 SP2, 3.0 SP2, and 3.5 SP1 installed.

Hmmm... interesting little thing... if you "End Process Tree" on Setup.exe when it first gives you the error, it will fully install without giving you further errors, and runs just fine...... if you are willing to PM me your e-mail address, I can e-mail you some of the system log files which were created during the errored install.



[Note: I had him PM me the error code, and this is what the post said]

MSIb44a8.LOG: - example line only, this was with "End Process Tree"
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The arguments are: {DDAEDAA6-4793-70EB-C3AC-1D81EA5D7284}, ,
---

install.log:
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.3 {version}
Running checks for package '.NET Framework 2.0', phase BuildList
Running external check with command line "C:\DOCUME~1\April\LOCALS~1\Temp\VSD1A3. tmp\dotnetfx\dotnetchk.exe"
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalled'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer'
Read string value '7.0.5730.13'
Setting value '7.0.5730.13 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 7.0.5730.13 {string}
Running checks for command 'dotnetfx\instmsia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'dotnetfx\instmsia.exe' is 'Bypass'
Running checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.0.3': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.0': true
Result of checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
Running checks for command 'dotnetfx\dotnetfx.exe'
Result of running operator 'ValueNotEqualTo' on property 'DotNetInstalled' and value '0': true
Result of checks for command 'dotnetfx\dotnetfx.exe' is 'Bypass'
'.NET Framework 2.0' RunCheck result: No Install Needed
Running checks for package 'SQL Server 2005 Express Edition', phase BuildList
Running external check with command line "C:\DOCUME~1\April\LOCALS~1\Temp\VSD1A3. tmp\SqlExpress\SqlExpressChk.exe"
Process exited with code 0
Setting value '0 {int}' for property 'SQLExpressInstalled'
The following properties have been set for package 'SQL Server 2005 Express Edition':
Property: [SQLExpressInstalled] = 0 {int}
Running checks for command 'SqlExpress\sqlexpr32.exe'
Result of running operator 'ValueEqualTo' on property 'SQLExpressInstalled' and value '0': true
Result of checks for command 'SqlExpress\sqlexpr32.exe' is 'Bypass'
Running checks for command 'SqlExpress\sqlexpr32.exe'
Result of running operator 'ValueEqualTo' on property 'SQLExpressInstalled' and value '0': true
Result of checks for command 'SqlExpress\sqlexpr32.exe' is 'Bypass'
'SQL Server 2005 Express Edition' RunCheck result: No Install Needed
Launching Application.
Using MsiInstallProduct with package path '\\cerberus\Data Store\Sorted\Games\Card\Magic The Gathering\Collection Management Software\Card Tracker\Card Tracker (Beta 3.9)\CardTrackerInstaller.msi' and command line ''
---

Unfortunately, I can't post the contents of the *.rbs file generated during the install process, as it only pasted in this: " ".

There are also 3x *.tmp files with the following for contents (likely 1 per install attempt):

<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>

end error message





I have been unable to recreate this error, and I've never seen error messages like that before. Any help or advice would be greatly appreciated.

If you need more details, please ask and I'll do what I can!

Thanks!

dglienna
April 24th, 2009, 12:02 AM
Did you use Click-Once deployment, with update options? That sounds like a problem that I ran accross. Users would download from a server, install where they want, but if they try to install a new version in a different place, it would fail.

Version numbers also come into play.

CardTracker
April 24th, 2009, 06:48 AM
No, I generated an installer file.