I was able to fix this issue - my windows form reads and writes values to
and from the registry... it turned out that the way WIX was creating the
registry key was making it unreadable somehow. The weird part was that the
form was able to read from a couple of keys (both created by WIX), but
unable to read/write from the same key's sub-keys.
For anyone else who has the same issue, I have found that setting the
Action attribute to Action=createKeyAndRemoveKeyOnUninstall (for a type
string registry key) works just fine. I don't know if this is a bug, or I
just made a mistake configuring the keys.
This is what I had initially when the form was crashing because WIX (or I)
made the key unreadable -- this key had sub-keys and another registry key
defined with the same signature:
Registry Root='HKLM' Key='SOFTWARE\MyCompany\App1' Action='write'
This is what fixed it (I had to set the Action to
createKeyAndRemoveKeyOnUninstall for all the sub-keys and parent keys):
Registry Root=HKLM Key=SOFTWARE\MyCompany\App1
Action=createKeyAndRemoveKeyOnUninstall
Also, I used tallow to create the WIX fragment and one thing I noticed was
that tallow doesn't decorate the Registry elements with the Action
attribute, which also didn't seem to work in my case.
Thanks!
On 2/13/07, Johan Appelgren [EMAIL PROTECTED] wrote:
On 2/14/07, Dhaval Patel [EMAIL PROTECTED] wrote:
I don't know if this issue is WIX related, or something completely
random. I
had developed an app that was deployed using Xcopy via a batch file.
Recently my PM decided to port it to WIX because of my newly gained WIX
powers. Anyway, this app has a bunch of .dll files and a Windows Forms
app
that references a couple of these .dll files. There are no
problems with
the installer and everything installs just fine. But as soon as I try
and
launch the .exe file (the Windows Form), it crashes. The Windows Forms
app
has no problems, whatsoever, if deployed via Xcopy. I am not sure if how
I
have laid out my Components (the Name attribute for backward
compatiblity, etc.) in the WIX file is screwing up somehow...
This is a .NET 2.0 app being deployed on W2K3 server. I haven't tried
installing it on XP.
Thanks in advance, folks!
How does the application crash? The exception should give you some
clues to track down the problem. Although since it works when you copy
the files a possible cause could be that one or more of the files are
missing or were installed in the wrong location.
/Johan
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users