PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Bad Mis file

 
 
Gary Setter
Guest
Posts: n/a
 
      25th Mar 2007
Hi,
I'm trying to make a C++ version of the WiX Msi creation tool. I made my
first Msi file, attempted to install it, and received the following error
log in my temp directory.

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2235. The
arguments are: , State, SELECT
`File`.`FileName`,`Version`,`File`.`State`,`File`.`Attributes`,`TempAttribut
es`,`File`.`File`,`File`.`FileSize`,`Language`,`Sequence`, `Directory_`,
`Installed`,`FileAction`.`Action`,`File`.`Component_`,`FileAction`.`ForceLoc
alFiles`, `ComponentId` FROM `File`,`FileAction` WHERE
`File`.`File`=`FileAction`.`File` ORDER BY `Sequence`, `Directory_`
=== Logging stopped: 3/23/07 20:03:51 ===

The doc for error 2235 is:

Database: [2]. Column '[3]' not present or ambiguous in SQL query: [4]

Which I take to mean that State is not column of the File table. The MSDN
doc for the File table is in sync with what I'm importing into the Msi file
and there is no State column.

So I don't know what to do. I'm zipping up my files including the Xml source
for, the Msi file and the Idt files that where generated and imported into
the Msi file. If any kind person would download it and point out my flaw, I
would greatly appreciate it. Alternatively, are there any free tools that I
could use to expose the flaw myself?

The zip file is:
home.att.net/~setterg/Badmsi.zip

 
Reply With Quote
 
 
 
 
mgama
Guest
Posts: n/a
 
      26th Mar 2007
Wow. That's quite a project you've got going there. Congratulations on
everything you've done so far. After building the XML file with the real
WiX binaries, and then comparing it with your MSI file, I found that the
InstallExecuteSequence table was missing several actions which I believe are
required. After copying them from the WiX generated MSI into your MSI file,
it worked.

Here are some other things you may want to investigate:

It looks like a few of your table column types are incorrectly. After
exporting the schema.msi tables (you can find the MSI in the Platform SDK or
Windows SDK), and windiffing them against yours, here at the differences
that I found:

File table:
Column: Sequence
Type:
Yours> i4
Schema> i2

Media table:
Column: LastSequence
Type:
Yours> i4
Schema> i2

Property table:
Column: Value
Type:
Yours> l255
Schema> l0

While yours works (after I added the additional InstallExecuteSequence
entries), the differing column types could potentially cause problems down
the road. One such problem that you may encounter is in merging a MSM which
is authored using the correct schema.

If you run the MSI file through msiinfo.exe (also included in the Platform
SDK or Windows SDK), and compare the results with a WiX generated MSI, you
will find that the authoring application name string is displaying some
invalid text.

--Mike


"Gary Setter" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
> I'm trying to make a C++ version of the WiX Msi creation tool. I made my
> first Msi file, attempted to install it, and received the following error
> log in my temp directory.
>
> The installer has encountered an unexpected error installing this package.
> This may indicate a problem with this package. The error code is 2235. The
> arguments are: , State, SELECT
> `File`.`FileName`,`Version`,`File`.`State`,`File`.`Attributes`,`TempAttribut
> es`,`File`.`File`,`File`.`FileSize`,`Language`,`Sequence`, `Directory_`,
> `Installed`,`FileAction`.`Action`,`File`.`Component_`,`FileAction`.`ForceLoc
> alFiles`, `ComponentId` FROM `File`,`FileAction` WHERE
> `File`.`File`=`FileAction`.`File` ORDER BY `Sequence`, `Directory_`
> === Logging stopped: 3/23/07 20:03:51 ===
>
> The doc for error 2235 is:
>
> Database: [2]. Column '[3]' not present or ambiguous in SQL query: [4]
>
> Which I take to mean that State is not column of the File table. The MSDN
> doc for the File table is in sync with what I'm importing into the Msi
> file
> and there is no State column.
>
> So I don't know what to do. I'm zipping up my files including the Xml
> source
> for, the Msi file and the Idt files that where generated and imported into
> the Msi file. If any kind person would download it and point out my flaw,
> I
> would greatly appreciate it. Alternatively, are there any free tools that
> I
> could use to expose the flaw myself?
>
> The zip file is:
> home.att.net/~setterg/Badmsi.zip
>




 
Reply With Quote
 
Gary Setter
Guest
Posts: n/a
 
      26th Mar 2007
<snip>

Hello Mike,
Thank you for taking a look at my Msi and pointing out its flaws. I fixed
the InstallExecuteSequence and the _SummaryInformation problems and it looks
much better. I'd like to find out why the WiX tables.xml file has shows
those sequence numbers as 32 bit vs. 16 bit values.

Any suggestions on what to call this project? WixCee, Install42,
HobitInstall?

Again thanks,
Gary

 
Reply With Quote
 
Phil Wilson
Guest
Posts: n/a
 
      31st Mar 2007
Have you thought about contributing to Wix? It's open source.
--
Phil Wilson
[Microsoft MVP-Windows Installer]

"Gary Setter" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> <snip>
>
> Hello Mike,
> Thank you for taking a look at my Msi and pointing out its flaws. I fixed
> the InstallExecuteSequence and the _SummaryInformation problems and it
> looks
> much better. I'd like to find out why the WiX tables.xml file has shows
> those sequence numbers as 32 bit vs. 16 bit values.
>
> Any suggestions on what to call this project? WixCee, Install42,
> HobitInstall?
>
> Again thanks,
> Gary
>



 
Reply With Quote
 
Gary Setter
Guest
Posts: n/a
 
      1st Apr 2007

"Phil Wilson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Have you thought about contributing to Wix? It's open source.
> --
> Phil Wilson
> [Microsoft MVP-Windows Installer]
>

Hi Phil,

That was the plan from the beginning. The only hang up is how far to go
before uploading it. For example, I have no need for the extension mechanism
for the compiler and preprocessor. I have no need for it, I don't know what
to do with it, and it would seem reckless on my part to release a project
that that left it untested.

On the other hand, if I know someone would take a look at it, I would upload
it to sourceforge fairly soon.

What does the community want? A C++ version of WiX?
Gary

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File sort order reversed or wrong in File Open or File Save dialog box NinerSevenTango Windows XP General 1 1st Aug 2009 01:48 PM
coping file from a remote file share - FILE IS NO LONG THERE bogus error message Heith Windows Vista Networking 0 18th Oct 2007 09:58 PM
In file parsing, taking the first few characters of a text file after a readfile or streamreader file read... .Net Sports Microsoft ASP .NET 11 17th Jan 2006 12:44 AM
An Automated process of watching a network file folder, reading a file in it and deleting the file using ASP.NET ? Luis Esteban Valencia Muņoz Microsoft ASP .NET 3 4th Jun 2005 11:56 AM
i received a file that reads powerpoint document file file exten. =?Utf-8?B?Q0NBUk9MQUNFUkVD?= Microsoft Excel Misc 1 4th Dec 2004 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:39 AM.