Rob,

I'm not sure if we are both on the same page.  Please choose to ignore me if
I sound like I'm smoking crack. :)  By no means am I a msi expert, but I
would like to understand best practices in a certain situation.  I can
provide extra context if it would help.

Ignore everything I have said so far in this thread because I will explain
the situation from the beginning to avoid any confusion.

In our installer we pack an encryption tool with our application.  The
purpose of this encryption tool is to allow clients to encrypt or decrypt
their configuration files.  The configuration files should be encrypted at
all times when the app is running (This is part of the business
requirement).  The reason the tool is deployed as part of the msi package
it's because in some situations the client may want to temporary decrypt and
encrypt the files for debugging purposes.

With that said, I would like the configuration files to be automatically
encrypted during the installation process.  Currently I'm running a custom
action with ExeCommand to achieve this.  It works fine, except I noticed, it
would try to run the custom action during repair.  I only want this custom
action to run during the initial install.  I tried various condition around
the custom action such as NOT Installed, didn't seem to work for me.

I'm not tied down to any specific solution, just want to under best solution
for this problem.  If what I'm doing is completely hacky and should be
avoid, I will understand.

In your first reply you said the following:

After InstallFinalize?  That isn't part of the transaction.

What do you mean it's not part of the transaction?

Thanx,

Aaron



On 5/12/07, Rob Mensching <[EMAIL PROTECTED]> wrote:

 Don't try to do what you are doing.  I don't have enough context to
provide any better suggestions than that.



*From:* Aaron Feng [mailto:[EMAIL PROTECTED]
*Sent:* Saturday, May 12, 2007 10:42 AM
*To:* Rob Mensching
*Cc:* wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Ignore Custom Action on Repair



I would also like to avoid any trickery.  Do you have any suggestions for
alternatives?

Thanx,

Aaron

On 5/12/07, *Rob Mensching* < [EMAIL PROTECTED]> wrote:

Note, this sort of design is generally very fragile and I always encourage
people to rethink their need for this sort of trickiery during setup.

-----Original Message-----
From: Aaron Feng [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 4:49 PM
To: Rob Mensching; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Ignore Custom Action on Repair

I have a custom action that runs a tool during install.  I do not want
this tool to run during repair, in fact I only want this custom action
to run only during the inital install.  Currently it will attempt to
run the custom action during repair which causes an error from the
tool.

Aaron

On 5/11/07, Rob Mensching < [EMAIL PROTECTED]> wrote:
>
>
>
>
> After InstallFinalize?  That isn't part of the transaction.  What are
you
> trying to accomplish?
>
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] ] On Behalf
> Of Aaron Feng
>  Sent: Friday, May 11, 2007 2:31 PM
>  To: wix-users@lists.sourceforge.net
>  Subject: [WiX-users] Ignore Custom Action on Repair
>
>
>
>
> I run a custom action during install which works fine, but I don't want
to
> run it during repair.  I tried every possible way, but no luck.  Here is
an
> example what I'm doing:
>
>  <InstallExecuteSequence>
>
>    <Custom Action="MyAction1" After="InstallFinalize">
>                  <![CDATA[(&MyFeature1=3) AND (NOT Installed)]]>
>    </Custom>
>
>    <Custom Action="MyAction2" After="InstallFinalize">
>                  <![CDATA[(&MyFeature2=3)) AND (NOT Installed)]]>
>    </Custom>
>
>  </InstallExecuteSequence>
>
>  Thanx,
>
>  Aaron



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to