This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
tirtht
Level 4
- Revenera Community
- :
- About tirtht
Dec 30, 2019
08:22 AM
Problem statement: On next button, C# custom action is integrated with a dialog. Via this c# custom action, we want to write information(verbose) messages. But this is not working. To confirm the same, we have created POC and attached it here. POC Content: - InstallShield Project type: Basic Msi Project, Custom action: C# class library (.net framework 4.7.1) - InstallWelcome > Next button click, invokes custom action to write information message. (which is not working or we can say message is not logged into log file.) - LicenseAggrement > Next button, invokes custom action to write Error message. (which is working and we can see the same message into log file). - Set "/L*vx install.log" in MEDIA > Releases > configuration > Setup.exe tab > MSI Command-Line Arguments. Let us know what can be possible approach to solve the problem.
... View more
Labels
- Labels:
-
InstallShield 2018
Dec 25, 2019
07:09 AM
I have a Basic MSI Template for my installer and have enabled verbose logs in a file. I have a prerequisite that requires the machine to reboot. Once the machine is rebooted, my installer automatically resumes with the Welcome dialog. When I close the installation, with the checkbox to show the logs as checked, I am not getting any logs in the file, and notepad gives me a pop up saying that file cannot be found. Now, if I physically go to that path and check for the file, I can successfully find and open the logs file. Is there any issue with installshield to open the particular log file if setup resumes? Note : If setup is launched manually, this issue is not reproducible. (i.e. only reproducible if kit resumes on reboot)
... View more
Labels
- Labels:
-
InstallShield 2018
Nov 22, 2019
07:11 AM
I have a basic MSI template where I am trying to add progress bar in a dialogue. I have set of C# managed code custom actions that increase this progress bar on completion. However, passing msiHandle and increasing/resetting the progress bar has no effect on the progress bar. Is there any way to manage a custom progress bar? Also, it is possible to have more than one progress bars in the exe?
... View more
- Tags:
- installshield 2018
Labels
- Labels:
-
InstallShield
Sep 19, 2019
09:53 AM
hello, could you please give some more detail about how we can pass custom action method signature. I have gone through the link and it is concluded that the only way is CustomActionData. thanks in advance.
... View more
Sep 19, 2019
09:18 AM
one more update - I have changed the value for now of MsiHiddenProperty to this => MsiHiddenProperties="[MsiHiddenProperties]" and it called my custom action without any error / exception. 🙂 but now problem is inside the code (C#) while I fetch the value of CustomActionData it gives me like this => "MsiHiddenProperties=\"[DEMODATA]\"" so as you can see, this is not the actual value of the DEMODATA. instead this is the name of the property. PFB - snapshot for csharp code that I used. Code line whch i used to fetch CustomActionData - public bool GetTest(int msiHandler) { System.Diagnostics.Debugger.Launch(); using (Msi.Install msi = Msi.CustomActionHandle(msiHandler)) { string data = msi.GetProperty("CustomActionData"); } return true; }
... View more
Sep 19, 2019
09:08 AM
hello, I have tried your solution - below is the snap of all the steps. but it gives the exception exception detail - CustomAction CallToDef returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) firstly, value of MsiHiddenPropertis - I have set it to- [DEMODATA] - Only the password property. step- 2 - I have changed the setproperty custom action (type 51) to the below value Property Name - CallToDef (same as custom action) Property Value - MsiHiddenProperties="[MsiHiddenProperties]";[CURRENTDIRECTORY] Any other change do I need to make ?
... View more
Sep 19, 2019
08:50 AM
Thanks for your response. currently, I am trying your solution and will revert the result. meanwhile, could you please give me reference where I can find (just for my reference so in future avoid such type of implementation) supported and non-supported items with deferred custom action, especially for the MsiHiddenProperties one.
... View more
Sep 19, 2019
08:13 AM
Hello Jenifer, apologies for inconvenience caused. I am in concordance with all your points. as you rightly mentioned, property is password (also MsiHiddenProperties is implemented) and still DEMODATA property is not masked. kindly provide solution Or any way which we implemented wrong, thanks in advance.
... View more
Sep 19, 2019
07:25 AM
hello! thanks for your prompt response. PFA - solution on which the password is being logged moreover, we have also tried by adding 8192 to the custom action type but still it logs into that. once again, your help in this matter will highly appreciated.
... View more
Sep 19, 2019
06:16 AM
we are using basic msi project that creates an exe file. we are using deferred custom action and customactiondata to pass the data to csharp customaction. we need to hide password into the log file and we have tried following ways, (we also looked into available solutions and by which able to hide only few instances of the passwords but still at few places passwords are being logged) but unfortunately it display the password inside the log file. (1) MsiHiddenProperties property with the password property value and custom action that uses that properties. (all the values with delimeter semicolon) (2) we have tried by adding 8192 into the customaction type and also added prooeprties name into target column (3) I have also checked that password property is exist into the secure property.
... View more
Labels
- Labels:
-
InstallShield 2018
Jun 13, 2019
12:32 AM
1 Kudo
We are using a Basic MSI project that creates an exe file. We need to display installshield dialogs when the user chooses to “Repair” from control panel. However, by default, when “Repair” is selected from control panel, there is a prompt from windows installer that asks the .msi file location for the application. Also, once providing the .msi file location, dialogs are not displayed for Repair. Is there any way we can hide the display for the .msi file location since we are providing .exe file? Also, can we display a UI dialog once the user click “Repair” from control panel?
... View more
Labels
- Labels:
-
InstallShield 2018
Apr 20, 2019
07:17 AM
@banna_k Thanks for your suggestion. I tried with the approach you mentioned and found MsiProcessMessage method in Installshield.Interop.Msi dll(where it is named as ProcessMessage). I tried creating a custom action on cancel button which calls the ProcessMessage method with InstallMessage.Error parameter. However, it returns ID.NoAction instead of ID.Cancel(as per your suggestion). We also tried with other InstallMessage enum values(AbortRetryIgnore, CancelTryContinue, FatalExit), but all of them produced same results. Please find the attached POC for the same. Morevover, we tried by directly returning ID.Cancel, without calling ProcessMessage() function, which returns code 2, but that, too, did not stop the installation process. We also tried by sending hard coded exit value 1602, which is the value for ERROR_INSTALL_USEREXIT, that you had suggested. But that also did not make any impact on existing installation. Could you please go through the attached POC and suggest if we need to make any changes over there, or is there any other way to stop/terminate the installation process?
... View more
Apr 18, 2019
11:26 PM
Problem: Once “Install” button is clicked then clicking Cancel button in “Setup progress” screen does not terminate/interrupt installation process. Description: We are using Basic MSI project template (in InstallShield 2018 Professional Edition). We have few of C# managed custom actions invoked after clicking “Install” button. Once installation is in progress, when we click on “Cancel” button in “Setup Progress” screen, it does not stop/terminate in-progress custom actions and so installation process does not terminate. We have tried below options: Killing process on click of Cancel button in Ready To Install screen. However, it kills the setup but does not terminate the installation process. Setting a property to check if cancel button is pressed or not, but managed code custom action property does not get the latest value for that. Applying Kill process custom action or Error custom action on Cancel button, and it, too, does not terminate the installation process. Is there any way we can stop/terminate the installation process on clicking the Cancel button while C# managed code custom action is being executed?
... View more
Labels
- Labels:
-
InstallShield 2018
Latest posts by tirtht
Subject | Views | Posted |
---|---|---|
1380 | Dec 30, 2019 08:22 AM | |
630 | Dec 25, 2019 07:09 AM | |
680 | Nov 22, 2019 07:11 AM | |
3469 | Sep 19, 2019 09:53 AM | |
5428 | Sep 19, 2019 09:18 AM | |
5443 | Sep 19, 2019 09:08 AM | |
5460 | Sep 19, 2019 08:50 AM | |
5488 | Sep 19, 2019 08:13 AM | |
5498 | Sep 19, 2019 07:25 AM | |
5559 | Sep 19, 2019 06:16 AM |
Activity Feed
- Posted [Basic Msi Project] Information type messages cannot be written via c# custom action on next button click. on InstallShield Forum. Dec 30, 2019 08:22 AM
- Tagged [Basic Msi Project] Information type messages cannot be written via c# custom action on next button click. on InstallShield Forum. Dec 30, 2019 08:22 AM
- Tagged [Basic Msi Project] Information type messages cannot be written via c# custom action on next button click. on InstallShield Forum. Dec 30, 2019 08:22 AM
- Posted Installshield cannot find the log file if setup resumes after reboot on InstallShield Forum. Dec 25, 2019 07:09 AM
- Tagged Add progress bar in a dialog on InstallShield Forum. Nov 24, 2019 11:56 PM
- Posted Add progress bar in a dialog on InstallShield Forum. Nov 22, 2019 07:11 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 09:53 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 09:18 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 09:08 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 08:50 AM
- Kudoed Re: Hide sensitive information in logs for Jenifer. Sep 19, 2019 08:50 AM
- Kudoed Re: Hide sensitive information in logs for Jenifer. Sep 19, 2019 08:14 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 08:13 AM
- Posted Re: Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 07:25 AM
- Kudoed Re: Hide sensitive information in logs for Jenifer. Sep 19, 2019 07:22 AM
- Posted Hide sensitive information in logs on InstallShield Forum. Sep 19, 2019 06:16 AM
- Got a Kudo for Display installshield dialog for “Repair” from control panel. Jun 14, 2019 04:14 AM
- Posted Display installshield dialog for “Repair” from control panel on InstallShield Forum. Jun 13, 2019 12:32 AM
- Posted Re: Cancel button in SetupProgress dialog does not terminate installation process(Basic MSI project) on InstallShield Forum. Apr 20, 2019 07:17 AM
- Posted Cancel button in SetupProgress dialog does not terminate installation process(Basic MSI project) on InstallShield Forum. Apr 18, 2019 11:26 PM