Sep 16, 2022
11:58 AM
Yeah, that's what i thought. What a very weak underthought capability, for something so mature as Windows Installer. I figured it was worth a shot in doing...instead I have to use powershell because my managed custom action is written in .NET. Therefore i can do both the split of CustomActionData, AND the actual assembly call. Ugly, but at least it works.
thanks for looking!
... View more
Sep 15, 2022
10:41 AM
The first one. I ultimately want to be able to call a managed action something like
Namespace.DllName.Class.Method(PROP1, PROP2, PROP3)
where PROP1 through 3 have to be passed through CustomActionData because they are from the installer and the custom action operates on a file within the installer (meaning deferred).
1. Set.Property into a custom action, pass 3 properties delimited by ;
2. Deferred Powershell script or VB Script to take CustomActionData and split it into 3 separate properties.
3. Use 3 separate properties in a managed custom action.
My issue is that properties set in #2 are not available in #3. I expected to be able to set properties in a deferred custom action and they'd be available in the entirety of all deferred custom actions.
... View more
Sep 14, 2022
03:14 PM
When I've used customactiondata struct in the past, i have only needed to pass the information to one script, where I can access the data and then USE it. However, with a managed custom action, you can't appear to "index" through multiple values supplied via CustomActionData - you need to split them into individual actions first.
For instance, with a Set Property in the Execute sequence (after CostFinalize), Pass CAD to a custom action called CAD with 3 properties, like so:
[PROP1];[PROP2];[PROP3]
Then that deferred custom action you specified must do this (this is powershell):
$cad = get-property -name CustomActionData trace-info -LogMessage $cad
$splitArray = $cad.split(";") $prop1= $splitArray[0] $prop2 = $splitArray[1] $prop3 = $splitArray[2]
However, what do you do if you then want to use those 3 properties as parameters to a managed custom action? I could not find any way to set this variable data back into variables, but have them accessible to actions in the deferred stage.
Am i missing something? This seems like a major limitation to this functionality.
... View more
Labels
- Labels:
-
InstallShield 2021
Nov 22, 2013
09:49 AM
Has this been occurring for other people? Lately i have noticed this as well, when Installshield 2012 Spring opens an existing installer. Please note that this was NOT a change to the file, this is the program opening up an existing installer and sometimes having the duplicate subdirectory. I have gotten it to fix it sometimes (although I can't seem to right now as I'm writing this...) by just reopening it or grabbing it from source control again. Basically, when you open a file from C:\temp, the ISPROJECTDIR better be C:\temp. That variable is set to the location of the .ism file you opened, but it's coming up with a duplicate temp (in this example).
... View more
Oct 15, 2013
11:08 AM
Just wanted to bump this as it's had quite a few views but no responses...
... View more
Oct 09, 2013
03:42 PM
This is still an issue with IS Spring 2012 - I have trouble seeing how this is anything other than a bug, you can't not include the merge module but still run it's custom actions, that makes no sense, it's an atomic entity. Has a bug been logged for this issue?? This has been referenced in many posts going back, most recently by a quick search: http://community.flexerasoftware.com/showthread.php?201494-Merge-Module-Custom-Action-Unacceptable-behaviour-!!!&p=478025#post478025 In case another description is needed of the bug, having an msi include a merge module conditionally will not regard the conditions of the merge module (whether it's being installed or not!!) when checking whether to run its custom actions. You result with an action that executes when the merge module should not be installed.
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Oct 31, 2012
09:48 AM
Debbie, Thanks for adding that to the list of future functionalities. It also seems to be a bit difficult to add multiple notes. It might be helpful if the entire feature opens up more to allow direct manipulation of the XPath queries. For instance, If I right click Xml File Changes and do an Import, and my config file looks like: Classes.Class1 Name1 Name2 In the above, importing automatically identifies that the two clients are different, but is not able to recognize the standard items are different, and only imports the first one. Unless I'm somehow missing a "query import" type functionality, it seems I'd be forced to generate this manually rather than import the file? Thanks, Matt
... View more
Oct 22, 2012
03:43 PM
Debbie, Thanks for the quick response. I didn't see that in the documentation for XML File Changes, so sorry about that. I still wouldn't expect the end file to look different than the imported view inside of the editor (which shows it in the correct order), but that is no matter. I am adding nodes to the end of a configuration file, not modifying existing ones. The new children are one level down from the root, so it is a simple add. It would be really useful if the XML File Changes was expanded to write in the order you specify, because xml schemas are not all defined using choose, so child order can matter. Any idea if this is planned for the future? I am not sure the text file changes will help me, but perhaps I can do some kind of cheating to have it highlight the entire file except the end root tag, and then append my new stuff to the end (before the end root tag). Worth a shot. If not, I will add custom actions using vb scripts like previous versions required. The format piece does prevent it from wrapping pieces it finds when it rewrites the whole file, but it does not prevent it from adding the ending tags where /> would do. Thanks, Matt
... View more
Oct 22, 2012
03:20 PM
Hi, There is an XML file used by dependent software that needs to be edited during install/uninstall. The XML File Changes should be able to do this, and is almost capable. Two issues I am having are: 1) (Major) - The order of the children appears to be alphabetical, instead of what is specified inside of the installer. This is critical because xml files can conform to a schema, order is not always independent. This is causing things to fail. 2) (Minor) - The parser does not recognize cases to use for tags with no content, so it replaces everything in the file with >. Not critical, since it's equivilent, but certainly not necessary. In addition, any information on where this information is in the Direct Editor would be helpful - the XML tables I saw had nothing close to the XPath statements that were in the read only box inside the view. I searched around on the forums and google and found a little bit about the second issue, written in 2008, and may have found something related to the first one (think it said attributes, though), but little else. Anyone know a fix/workaround, or do I have change to not use this convenient feature?? Thanks, Matt
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Latest posts by MSherman
Subject | Views | Posted |
---|---|---|
411 | Sep 16, 2022 11:58 AM | |
431 | Sep 15, 2022 10:41 AM | |
441 | Sep 14, 2022 03:14 PM | |
1751 | Nov 22, 2013 09:49 AM | |
507 | Oct 15, 2013 11:08 AM | |
1299 | Oct 09, 2013 03:42 PM | |
1269 | Oct 31, 2012 09:48 AM | |
1269 | Oct 22, 2012 03:43 PM | |
5681 | Oct 22, 2012 03:20 PM |
Activity Feed
- Kudoed Re: InstallShield - CustomActionData to multiple custom actions - managed for Azmaeus. Sep 16, 2022 11:59 AM
- Posted Re: InstallShield - CustomActionData to multiple custom actions - managed on InstallShield Forum. Sep 16, 2022 11:58 AM
- Posted Re: InstallShield - CustomActionData to multiple custom actions - managed on InstallShield Forum. Sep 15, 2022 10:41 AM
- Posted InstallShield - CustomActionData to multiple custom actions - managed on InstallShield Forum. Sep 14, 2022 03:14 PM
- Posted Re: ISPROJECTDIR duplicating directory issue. on InstallShield Forum. Nov 22, 2013 09:49 AM
- Posted Re: Custom Action in merge module still runs if merge module not installed. on InstallShield Forum. Oct 15, 2013 11:08 AM
- Posted Custom Action in merge module still runs if merge module not installed. on InstallShield Forum. Oct 09, 2013 03:42 PM
- Posted Re: XML File Changes - Order changes on InstallShield Forum. Oct 31, 2012 09:48 AM
- Posted Re: XML File Changes - Order changes on InstallShield Forum. Oct 22, 2012 03:43 PM
- Posted XML File Changes - Order changes on InstallShield Forum. Oct 22, 2012 03:20 PM