Hi,
Unfortunately, there is no property that detects the type of a package.
Also, you can achieve what you want by following the steps below:
- we assume that your application uses the default Application Folder in the Install Parameters page (
[AI_ProgramFiles][Manufacturer]\[ProductName] is used for a mixed package type)
- in the same page create a new property (i.e.
MY_PATH)
- go in the Custom Actions page and create a "Set installer property" custom action, place it under the "Wizard Dialogs Stage" -> "Paths Resolution" action group and use the following settings:
- Property: MY_PATH
Formatted: [ProgramFilesFolder][Manufacturer]\[ProductName]\
- create a "Display error message" custom action, place it under the "Set installer property" custom action created earlier and use the following settings:
- Message: This is a 32-bit package
Condition: APPDIR = MY_PATH
- build and run the project
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging