Hi,
You will create searches for both "Regasm.exe" versions (32-bit and 64-bit), as Cosmin has mentioned above. Name the search Properties REGASM32 and REGASM64, respectively.
On 32-bit systems, the search for the 64-bit Regasm will fail, since there is no "Framework64" folder present, and thus the value of the search Property REGASM64 will be empty. On 64-bit systems, both search Properties will have non-empty values, provided that the .NET Framework is installed.
Therefore, you could create 2 Custom Actions (following Cosmin's suggestions) and each of them will run a version of Regasm. These Custom Actions will have mutual exclusive Execution Conditions, such that only one of them will run.
The Custom Action that will run the
64-bit Regasm will have the Execution Condition set to:
Code: Select all
(REGASM64 <> "") AND (Not Installed)
while the Custom Action that will run the
32-bit Regasm will have the Execution Condition set to:
Code: Select all
(REGASM64 = "") AND (Not Installed)
Another option would be to use the
VersionNT64 Property instead of REGASM64 to differentiate between 32-bit and 64-bit systems.
Hope this helps.
Regards,
Ionut
FOLLOW US
Get the latest news in Application Packaging