Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

What does it mean "Wise has detected Invalid Key Paths", and Why do I get this seemingly at random?

Updated: 21 May 2010 | 7 comments
Carl Olsen's picture
0 0 Votes
Login to vote

Every once in a while, for no reason that I can tell, I get the following message when I open my WSI in Windows Installer Editor 7:

imagebrowser image

Sometimes if I answere "Yes" all is well, and I can compile my installer.  Sometimes when I answer "Yes" it will start compiling and give me an exception error, and the Installer editor will abort ad my WSI will be trashed and unreadable.

This message only seems to occur when I first start the Installer Editor after making some kind of edit previously.  For example, I can open up the Installer Editor, add a single file to the install, save and exit.  Next time (randomly) I get the above message.   It does not seem to matter what kind of edit I do.  For example, I recently added a line of text into the installation script "execute immediate", and saved, then got the above next time I opened.

Luckily I have the Installer Editor set up to automatically save sequential backup copies of my WSI, or I would be really hurting.  Still, it is frustrating that I have to use these backup copies so often - and that I loose any edits I just did.

Thoughts?

Thanks,

Carl.

Comments

AngelD's picture
07
Jul
2009
0 Votes 0
Login to vote

The main problem seems to be;

The main problem seems to be; as the message says, invalid keypath reference(s) (external primarykey missing in either the File, Registry or the ODBCDataSource table.
Why you get this (almost) each time you start the editor is that it is setup/configured to open the last .wsi file since last time. Turn that off and the editor will start without an open existing .wsi file.

If you can't manage to get this working using the editor then fire up InstEd (or ORCA) and perform an ICE validation and it should point you to the invalid keypath(s). Correct it, save and then open it in the windows installer editor.



Carl Olsen's picture
07
Jul
2009
0 Votes 0
Login to vote

So what causes references to become invalid?

 

  1. I start with a WSI that is not giving any errors.
  2. I make a simple change and save (or make no change at all and simply save)
  3. I load the WSI back in, and get the message (sometimes).

What should I look for as the source of the error to begin with?

My hunch is that I have some folders that are autopopulated with wild cards, and maybe there is something about that that Wise does not like????

Thanks!

Carl.

AngelD's picture
07
Jul
2009
0 Votes 0
Login to vote

Don't sound like invalid

Don't sound like invalid folder if you don't have an empty KeyPath column value for a Component table entry. Verify this first.
Do you have any macro that performs some automatic things?

Do you get any ICE errors while performing a validation?

EdT's picture
08
Jul
2009
0 Votes 0
Login to vote

Is it a wild card file you are changing?

If you are changing a file that is wildcarded, then Wise needs to be able to rescan the wildcard and reload the new values.
If you have just changed a wildcard, it's version information or MSIHASH will no longer be valid based on the previous entry in the WSI file, and if that file also happens to be a keypath, then you will get errors as the keypath is no longer valid based on the previous entry.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Carl Olsen's picture
12
Jul
2009
0 Votes 0
Login to vote

I don't think I have to

I don't think I have to change anything to get the problem to occur.  I think all I need to do is open my WSI, then click on "Save", and there is a 25% chance it will get corrupted.

It just happened to me again.  Here are the steps to repeat in this particular case:

  1. I opened my WSI
  2. I went to "execute immediate", and clicked on one of my custom actions, then clicked on the "Move up" arrow to move the action to occur one step sooner
  3. I clicked on "Save" to save my WSI
  4. The save took about 15 minutes to save (normally it only takes about 2 or 3 minutes)
  5. I closed Wise
  6. I opened Wise
  7. I got the "Invalid key paths" error again.

Note that whatever I do in step #2 seems to not matter.
Note also that it seems I can predict the error will occur by how long it takes my wsi to save.

Continuing on, I went ahead and chose "ok" for the error message, then went to "Setup Editor", and clicked on the "Components" tab, and Wise then locked up for several minutes.  Once it unlocked, I clicked on teh "Tables" tab, then used "find Error" to see what it might find (I'm totally guessing at where to look here.), and under "MsiFileHash" I see a bunch of my files, and they are colored red.  Maybe this is important, I don't know????

So, next I went to the "Installation Expert", and chose the "test" option.  It then locked up for about 10 minutes, then compiled then gave me another message with the option to fix invalid key paths.  I chose "Yes", which opened up a window named "Remove missing files" which had grayed out "next" and "Back" buttons, and it said "the following files have source paths that are missing or invalid.  Select the files to remove from this installation", but then showed no files at all, and the only option for me is "Cancel", so I did.

So, I will now do what I always do, which is to try to remember the changes I made recently, restore from a backup, and re-do the changes...

EdT's picture
13
Jul
2009
0 Votes 0
Login to vote

Are you running SP1

This does indeed sound like a bug, so if you are not running SP1, it may be worth updating to SP1 in order to see if this problem persists.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Carl Olsen's picture
14
Jul
2009
0 Votes 0
Login to vote

I'm running all the latest

I'm running all the latest Wise updates.  Oddly, the problem has mysteriously disappeared, and I have not seen it occur since my last post.

It may be related to the EdT's question "Is it a wild card file you are changing", I'm not sure, because I have a lot of wildcard folder scanning going on, and I use batch files to prepare temporary folders and such.  Perhaps if the batch files skip something, it goes nuts.   I've been avoiding running the batch files, and this may be why it is more stable.

Carl.