Dec 09, 2022
07:45 PM
Hi, I have InstallShield 2021 R2, project type 'InstallScript MSI'.
How to change the order of the setup types? Seems it is ordering them alpabatically based on the Display name of the setup types.
... View more
Labels
- Labels:
-
InstallShield 2021
Dec 09, 2022
07:40 PM
turns out you have to set bvOpt1 parameter to true. The doc for SdFinish does not mention this. It indicates this is a return/out parameter indicating the user choice but it is a in/out parameter...
you can use it to set the default selection as an IN parameter too
... View more
Dec 08, 2022
03:56 PM
folks, appreciate any input.
... View more
Dec 07, 2022
08:36 PM
Hi all,
I have InstallShield 2021 InstallScript MSI project.
SdFinish has this checkbox to allow users to view the readme.txt. By default it is unchecked.
How can I have it checked by default. Appreciate any help with this.
thanks.
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 29, 2022
03:50 PM
Hi,
I have a InstallShield 2021 InstallScript MSI project. It uses dialogs like AskDestPath, SdWelcome, etc.
The dialog title that gets displayed is : [ProductName] - InstallShield Wizard.
How do I change this to something else?
I found IDS_PRODUCTNAME_INSTALLSHIELD in the String Editor which was set to [ProductName] - InstallShield Wizard and changed it and rebuilt the project but this did not help.
Appreciate any input.
... View more
Labels
- Labels:
-
InstallShield
Sep 15, 2022
05:29 PM
thanks for you help. It works for install scenario. But not for uninstall.
More specifically, below is how we perform some uninstall tasks before the files get removed.
I have a InstallScript type Custom Action which invokes an event handler function such as below in setup.rul.
function UnInstallTasks1(hMSI) begin end;
When this UnInstallTasks1 function is invoked, FeatureIsItemSelected is not able to detect that any of the features are installed locally. Hence I cannot perform uninstall task for features begin uninstalled.
I have placed the custom Action after Sequences -> Installation -> Execute -> RemoveEnvironmentStrings.
With you help, the install works. But not the above uninstall scenario. how can I detect which features were installed that are being uninstalled? So I can do the needful.
BTW, we are using the above approach to perform uninstall tasks because that is the way to make automatic upgrades work.
If we perform uninstall tasks in OnMaintUIBefore, automatic upgrades will not work. This is something InstallShield had confirmed and had recommended that we take this custom Action approach. This approach would work for both below cases:
- simply uninstall the product that is installed.
- when installing a newer version and using automatic upgrade, the custom action will invoked the function allowing us to perform some uninstall task for the existing version that is being removed during the upprade.
For our project that does not have features, this approach works. But now we need to add features and so we need to detect which feature is being removed.
Note that at this point I am not doing automatic upgrade but simply trying to uninstall the existing project but not able to detect the features that are being removed.
thanks in advance. Appreciate your help to get this to work.
... View more
Sep 08, 2022
11:38 PM
thanks very much. I will try it out and get back to you.
... View more
Sep 08, 2022
03:26 PM
Folks, appreciate if anyone can help out with this...
... View more
Aug 23, 2022
08:16 PM
Hi all,
I am using InstallScript MSI project in InstallShield 2021.
I have some features and want to know which ones the user selected from the GUI. I tried below three approaches but none of them indicate that the feature is selected. I tried using both the feature name as well as the name that is displayed in the GUI.
More specifically I want to get this info from Setup.rul from function OnFirstUIAfter() or other functions in that script.
I tried:
FeatureGetData (MEDIA, "New_Feature", FEATURE_FIELD_DESCRIPTION, nvResult, svResult); It says feature not selected even though it was selected.
nResult = FeatureIsItemSelected (MEDIA, "New_Feature"); It says feature not selected even though it was selected.
nReturnCode = MsiGetFeatureState (ISMSI_HANDLE, "New_Feature", nvInstallState, nvActionState); it says "An unrecognized product or feature was specified";
Appreciate any help. Am I not specifying the feature name correctly? Or do I need to use some other approach in InstallScript MSI project to detect feature selection state from installscript ?
thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2021
Dec 05, 2019
06:47 PM
Hi all, We have an InstallScript MSI project with string translated in some non-English languages. When we install in a Chinese locale the UI shows appropriate Chinese string. Next, we change the locale of that machine to French. When uninstalling the UI still shows Chinese. Is this expected or is a bug? thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2019
Jul 03, 2019
04:56 PM
Hi all, I am following instructions at https://community.flexera.com/t5/InstallShield-Knowledge/Provide-Notification-of-a-Major-Upgrade/ta-p/4413. In one of the steps in the above link it says: ************************************* On the Behavior section of the dialog, select the control you have just added and add the following conditions (replace ISACTIONPROP1 with the property found in step 2): Action: Hide; Condition: Not ISACTIONPROP1 Action: Show; Condition: ISACTIONPROP1 ************************************ Above is for Basic MSI project dialogs where you can edit behavior from the dialog view. I have an InstallScript MSI project and in the dialog view it says "To edit behavior for this dialog, modify the parameters for the SdWelcome function in your script." Can someone tell me how from the installscript, I can get this text control on the dialog and then conditionally display it. thanks in advance.
... View more
Labels
- Labels:
-
InstallShield 2018
Jun 25, 2019
05:07 PM
I am running into one problem now with respect to IS_MAJOR_UPGRADE property. I have added a Major Upgrade item and specified product version 7.0.0 as the 'Minimum Version' to do the upgrade. But even if I have version 6.0.0, IS_MAJOR_UPGRADE is still set to 'Yes'. Why is it not set to 'No' Appreciate any help.
... View more
Jun 25, 2019
04:30 PM
I was able to use MsiGetProperty on IS_MAJOR_UPGRADE and see that it is set to 'Yes' for a major upgrade. So this works. thanks for your response and help with this.
... View more
Jun 25, 2019
02:22 PM
thanks. Can I please ask how I can check for IS_MAJOR_UPGRADE property from install script? Do I call 'MsiGetProperty' ? If so, what can be the value of IS_MAJOR_UPGRADE? true or false? yes or no? Or is IS_MAJOR_UPGRADE a boolean and if so do I use an 'if' condition ? for example, if ( IS_MAJOR_UPGRADE) then endif;
... View more
Jun 24, 2019
05:39 PM
Hi all, I have an IS 2018 InstallScript MSI project. I have made changes in the upgrade view and added an upgrade item to support automatic major upgrades. Question is how do I detect in the install script if the installation is going to perform a major upgrade. To be more specific, in the install script .Rul file, in the OnFirstUIBefore function, I want to know if the installation will proceed with 'Major Upgrade' or not and based on that I want to perform certain installation tasks. Is there any InstallShield InstallScript property that I can check to see if 'Major Upgrade' will be performed? thanks in advance.
... View more
Labels
- Labels:
-
InstallShield
Latest posts by agshah
Subject | Views | Posted |
---|---|---|
192 | Dec 09, 2022 07:45 PM | |
139 | Dec 09, 2022 07:40 PM | |
147 | Dec 08, 2022 03:56 PM | |
171 | Dec 07, 2022 08:36 PM | |
191 | Sep 29, 2022 03:50 PM | |
381 | Sep 15, 2022 05:29 PM | |
429 | Sep 08, 2022 11:38 PM | |
439 | Sep 08, 2022 03:26 PM | |
521 | Aug 23, 2022 08:16 PM | |
454 | Dec 05, 2019 06:47 PM |
Activity Feed
- Posted How to change setup types order in SdSetupTypeEx dialog on InstallShield Forum. Dec 09, 2022 07:45 PM
- Posted Re: SdFinish Dialog Display Readme checkbox - how to have it checked by default on InstallShield Forum. Dec 09, 2022 07:40 PM
- Posted Re: SdFinish Dialog Display Readme checkbox - how to have it checked by default on InstallShield Forum. Dec 08, 2022 03:56 PM
- Posted SdFinish Dialog Display Readme checkbox - how to have it checked by default on InstallShield Forum. Dec 07, 2022 08:36 PM
- Posted Changing Dialog Title on InstallShield Forum. Sep 29, 2022 03:50 PM
- Posted Re: Get the Feature selection state from InstallScript MSI project on InstallShield Forum. Sep 15, 2022 05:29 PM
- Posted Re: Get the Feature selection state from InstallScript MSI project on InstallShield Forum. Sep 08, 2022 11:38 PM
- Posted Re: Get the Feature selection state from InstallScript MSI project on InstallShield Forum. Sep 08, 2022 03:26 PM
- Posted Get the Feature selection state from InstallScript MSI project on InstallShield Forum. Aug 23, 2022 08:16 PM
- Posted Globalization/Language Translation related question on InstallShield Forum. Dec 05, 2019 06:47 PM
- Posted Conditionally displaying text control in a dialog in InstallScript MSI project on InstallShield Forum. Jul 03, 2019 04:56 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 05:07 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 04:30 PM
- Kudoed Re: Major Upgrade detection from InstallScript for banna_k. Jun 25, 2019 04:30 PM
- Posted Re: Major Upgrade detection from InstallScript on InstallShield Forum. Jun 25, 2019 02:22 PM
- Posted Major Upgrade detection from InstallScript on InstallShield Forum. Jun 24, 2019 05:39 PM
- Posted Custom Action of type Error - specifying placeholder in Error Message text on InstallShield Forum. Jul 17, 2018 04:37 PM
- Posted Re: InstallShield - Specifying icon for setup.exe on InstallShield Forum. Apr 26, 2018 04:39 PM
- Posted InstallShield - Specifying icon for setup.exe on InstallShield Forum. Apr 25, 2018 04:45 PM
- Posted Re: Different InstallShield Project types on InstallShield Forum. Apr 24, 2018 03:56 PM