Description:
Need to define a custom MSI property and define a value for it. Depending on the property value the installer should conditionally display a custom dialog.
For example:
Define a property BuildType and define a value for it Beta. If the property value is Beta then the installer should display a custom dialog. If the value is something else, such as Release, then the installer should not display a dialog.
Solution:
Basic MSI Project:
Create an MSI property named BuildType with value Beta and use that MSI property in a condition to determine whether to display a dialog.
For example:
Action: Hide; Condition: Not BuildType1
Action: Show; Condition: BuildType1
InstallScript code in the same Basic MSI project:
MsiGetProperty (hMSI, "BuildType", svName, nvSize);
if(svName=="Beta") then
_WinSubShowWindow(hwnds,1);
_WinSubEnableControl(hwndDlg,TXTBOX,1);
else if (svName =="Release")then
_WinSubShowWindow(hwnds,0);
_WinSubEnableControl(hwndDlg,TXTBOX,0);
endif;
Related Articles
Creating a Custom Action that Displays a Property 6Number of Views Disabling Custom Dialog Box Controls 6Number of Views Changing the Static Text in a Custom or Sd Dialog Box 6Number of Views Writing to the Log File from a Custom Action in an MSI 15Number of Views Setting an MSI Property from VBScript Custom Action 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago