Are you sure your CA is not running in a 64bit process? Check the value of 
IntPtr.Size. Note that 'rundll32.exe' despite its name is actually a 64bit 
process when launched from SYSTEM32 on a 64bit OS.

-----Original Message-----
From: Amy Rosewater [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 2:03 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] 64 bit install with 64 bit managed custom action

Jason,

I see this in my build output, and it does look like it is using
SfxCA.dll from the x64 directory:

Compile complete -- 0 errors, 9 warnings
"C:\Program Files\Windows Installer XML v3\bin\..\sdk\MakeSfxCA.exe"
"C:\iVantage\NightlyBuild\trunk\Src\iVantageWiX\ManagedCustomActions\obj
\x64\Debug\ManagedCustomActions64.CA.dll" "C:\Program Files\Windows
Installer XML v3\bin\..\sdk\x64\SfxCA.dll"
...

-----Original Message-----
From: Jason Ginchereau [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 2:36 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] 64 bit install with 64 bit managed custom
action

It shouldn't matter if thare are some AnyCPU dependencies. MSI will run
the CA as 64bit if it detects it is a 64bit DLL. In the case of a
managed custom action, the significant thing is the unmanaged wrapper,
SfxCA.dll.

Can you check the MSBuild verbose log? Build the project from the
command-line with msbuild.exe /v:d /p:Platform=x64 yourca.csproj

See if it is actually using sdk\x64\SfxCA.dll, and if not, see if you
can find why not. Or send me the log and I'll take a look. For
reference, these are the lines from wix.ca.targets that switch based on
the platform.

    <CreateProperty Value="$(WixSdkPath)x86\SfxCA.dll" Condition="
'$(SfxCADll)' == '' and '$(Platform)' != 'x64'">
      <Output TaskParameter="Value" PropertyName="SfxCADll" />
    </CreateProperty>
    <CreateProperty Value="$(WixSdkPath)x64\SfxCA.dll" Condition="
'$(SfxCADll)' == '' and '$(Platform)' == 'x64'">
      <Output TaskParameter="Value" PropertyName="SfxCADll" />
    </CreateProperty>

-Jason-

-----Original Message-----
From: Amy Rosewater [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 12:59 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] 64 bit install with 64 bit managed custom
action

Jason,

Yes, I added the x64 platform for that project, and compiled the custom
action project to that platform.

Does it matter that my custom action project has dependencies to other
projects that are compiled for any CPU?  Those projects are not set to
compile from my solution when in x64 as the active configuration.

Amy

-----Original Message-----
From: Jason Ginchereau [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 1:42 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] 64 bit install with 64 bit managed custom
action

Did you add an x64 platform configuration to your managed CA project?

The MSBuild rules for managed custom actions should automatically
package the CA with the correct platform of SfxCA.dll based on the
project's platform configuration.


-----Original Message-----
From: Amy Rosewater [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 12:23 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] 64 bit install with 64 bit managed custom action

Hi All,



I have an install that is set for a 64 bit machine (that is, the
platform is set to x64, the components are all marked as 64 bit etc.).
I also have a managed custom action dll written in c# which I compile to
target the 64 bit framework.  However, when I execute the install, I see
msiexec *32 and rundll32.exe processes spun up during the execution of
my custom action.  How do I stop that?



Amy



Amy Rosewater

SPECTRUM Human Resource Systems Corporation

707 17th Street Suite 3800

Denver CO, 80202

303.592.3403

[EMAIL PROTECTED]




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to