Oct 18, 2022
09:27 AM
For my project I install a handful of services. Two of them the processes launch additional processes (one example is PostgreSQL which the service launches pg_ctl.exe but then pg_ctl.exe launches postgres.exe). When Restart Manager runs, it has no problem with the other services, but the ones that launch one process that calls another, the other process gets flagged and I get an erroneous warning pop-up that a restart will be required.
I found very little information on RmAddFilter() which looks like I should be able to utilize it to still allow Restart Manager to run, but ignore those processes I know are expected to be caught but are okay. Is there any way I can simply run a Custom Action to add this filter, or would I need to completely re-create the Restart Manager process as explained in https://learn.microsoft.com/en-us/windows/win32/rstmgr/using-restart-manager-with-a-primary-installer ?
... View more
Labels
- Labels:
-
InstallShield 2020 R3
Sep 19, 2022
02:41 AM
This looks like the Radio Group length is too short. See in my attachment, the right of the Radio Group cuts off right at the left of the Print button. After I extended it to encompass all of my text, the text then displayed correctly at runtime.
... View more
Sep 19, 2022
02:28 AM
I don't know what I did to break it, but now when I uninstall instead of the MSI property "REMOVE" being set to "ALL" it's set to each of the four features. What did I do, and how do I fix it?
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 16, 2022
11:51 AM
1 Kudo
I looked into this a while back and it's not possible in this manner. Some suggestions I found were to write to the registry, or to files on the hard drive. I preferred the latter, and would suggest writing to SUPPORTDIR so it's cleaned-up when the install ends (I hope, but haven't tried it yet). I ended up realizing that for my purpose I could run the information-gathering scripts in immediate execution which can write to the MSI properties, then the scripts that actually make changes to the system just need to read the values (or can write/read the changes to the system).
... View more
Sep 15, 2022
12:39 PM
I'm having a problem in my poweshell script, so to make sure it's using the right version I added
Trace-Info -LogMessage "Powershell version: $($host.version)"
and the output when I ran the install was "Powershell version: 1.0.0.0". I added the System Search to get POWERSHELLVERSION, and that comes back with "2.0". When I run "Write-Host "Powershell version: $($host.version)"" I get "Powershell version: 5.1.22000.832"
Can someone help me understand why this is, and if there's any way to configure my CA to run in the latest installed powershell version?
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 15, 2022
11:53 AM
I have a powershell script that runs in the Deferred execution sequence and requires a few MSI Properties to be passed to it. When I need multiple properties for a CA in deferred action, I always use key/value pairs; for example in InstallScript when I need multiple MSI properties the CAD will have "/Property1=[Property1] /Property2=[Property2]" then inside the script I have a function that parses these key/value pairs and sets the variables inside my script, so instead of expecting the order of passed parameters I can simply gather them by name. This function works well in InstallScript.
I now need to pass multiple properties to a Powershell CA, and I thought I'd be clever. Rather than continuing the "/Property1=[Property1] /Property2=[Property2]" format, I decided to use "Property1 = [Property1] `n Property2 = [Property2]" which can then be passed directly to ConvertFrom-StringData to create a hash table for me. Then I can get something like this:
$MyHashTable.Property1 MyProperty1Info
$MyHashTable.Property2 My Property2 Information
When I run the powershell script on its own (replacing the Get-Property cmdlet with a set string variable of "Property1 = MyProperty1Info `n Property2 = My Property2 Information") the string is parsed correctly, and I'm left with a working hash table with the information I need each in its own. When I run it in a deferred custom action however, the `n doesn't seem to get recognized so I'm left with a hash table and a single entry, like so:
$MyHashTable.Property1 MyProperty1Info `n Property2 = My Property2 Information
As you can see, it's still pulling the CAD as expected, and the hash table is still created, only the `n isn't parsed correctly so instead of multiple pairs it only sees one with the value being everything after the first =.
I can get by with a string.split for now, but I'd really like to figure this out.
... View more
Labels
- Labels:
-
InstallShield 2021
Sep 15, 2022
10:34 AM
I'm not sure I understand what you're trying to do. Are you trying to now update properties PROP1, PROP2, and PROP3 so another CA can then have access to this updated information? Or are you trying to create a second CA and you want to pass PROP2, PROP4, and PROP5 to that other CA and want to know how to pass a different CAD to separate CAs?
... View more
Aug 16, 2022
10:41 PM
I created an Edit Field, single line for entering a password. When I configure the Edit Field to be for a password, and leave Sunken set to True, in the IDE I'll see the Edit Field appears to be sunken, but when I run the installer that field appears to have raised borders. If I set Password to False, then rebuild and run the installer again, that field appears sunken.
My first question is, is this the expected and industry-standard appearance for a Password Edit Field? If so, then I can definitely live with it. If not, then I'd like to match the industry standard, or if there is none I'd prefer sunken, what can I do to get a Password Edit Field to appear sunken?
... View more
Labels
- Labels:
-
InstallShield 2020 R3
Jun 09, 2022
12:23 AM
Yes, you can replace welcome.jpg with your own. The image is not just the "left side", rather it's the entire background. Here's the "InstallShield Blue Theme" welcome.jpg
Notice it's the entire background, you'll want to do something similar with your custom welcome.jpg. Either simply add white background to the right to make it the same dimensions (499px wide by 312px high), or you can get fancy and add a border like the default one does.
... View more
May 27, 2022
03:16 PM
I don't know what might be best, but here are some thoughts:
If you're so inclined, creating a dll to do this would probably work well. If that's not an option you can do this pretty well with a powershell or vbscript custom action. If you're concerned about possible security blocks you could write something up in InstallScript to do this. To get you started on that you can check-out GetFileInfo, that will get you the date, there's a link to an example on that page. Loop through all the files/folders, checking the date on each, and delete it if it matches the criteria. Here's a link to all the File/Folder functions. I hope some of this helps!
... View more
May 27, 2022
11:39 AM
Hi Ken! If I'm not mistaken, the InstallExecute sequence only exists if you have an executable called at the end of your install. To verify this I checked a couple of my projects; my installer that has the option to launch the UI when you click Finish on a successful install does have that sequence, another I created recently doesn't have that sequence. Granted there are a lot of other differences, but it's something to look into.
Eric
... View more
May 26, 2022
05:09 PM
I'm working on a CA that needs the list of services I am installing. Currently I'm attempting this using PowerShell. It's used for uninstall and upgrade only right now, so I have it working where I use a pattern to get the list of my services with a wildcard (e.g. "MyServices-*"). I'm just wondering if there's a better way to get this so if I change the services to "SomeServices-*" the CA will automatically get the correct list, I won't have to find everywhere I used patterns to find my services.
I was hoping I might be able to pull it in using Get-Property, but the services we install don't appear to be listed there. I did find the services in the MSI table; in Additional Tools > Direct Editor I can scroll down to Tables > ServiceInstall and I get the list I'd like. If I could call something that would read Tables > ServiceInstall > * and get the values of the Name column, this would be great!
I'm finding articles on how to pull this from the MSI file, but I'm curious if there's a way to query the MSI that called the CA, like how I can Get-Property, or Trace-Info. Otherwise it looks like I might need to find where the MSI is extracted and read the database that way.
... View more
Labels
- Labels:
-
InstallShield 2020 R3
Nov 04, 2021
11:10 PM
Hi @jtoomey , Definitely! I use this in my current project to optionally install a local SQL database backend, or to not if they already have SQL somewhere they'd like to connect to. To do what you're asking, you need to create a new Feature for your prerequisite. You don't even need to add a component to it or anything, just create the feature. If you're not familiar with Install Level you may need to look into that. I have my other features that I want always installed to < 100 and this one I set to 100. Once you have the feature set-up, go back to the Redistributables screen, select your prerequisite, and underneath the list is a "Conditional Installation" list. By default prerequisites have the box ticked next to "Install before feature selection." Simply tick the box next to the feature you created above. This will cause your prerequisite to be installed, if it's selected, during the Execute sequence. It's been a while so there might be more to it, but hopefully this covers what you need.
... View more
Nov 04, 2021
10:56 PM
@ScottKBerger would you consider trying with the system protection disabled? While the virus protection might not be quarantining anything, it does cause interference just scanning. This isn't a fix, but will at least let you know if the antivirus is the cause or not. If the process you described of extracting from the .cab to Program Files as a .tmp then renaming is the standard behavior for InstallShield, I don't know what to do to correct that, but perhaps knowing it's the scan could give support an idea how to work around it.
... View more
Latest posts by Azmaeus
Subject | Views | Posted |
---|---|---|
215 | Oct 18, 2022 09:27 AM | |
445 | Sep 19, 2022 02:41 AM | |
180 | Sep 19, 2022 02:28 AM | |
415 | Sep 16, 2022 11:51 AM | |
126 | Sep 15, 2022 12:39 PM | |
120 | Sep 15, 2022 11:53 AM | |
435 | Sep 15, 2022 10:34 AM | |
165 | Aug 16, 2022 10:41 PM | |
301 | Jun 09, 2022 12:23 AM | |
224 | May 27, 2022 03:16 PM |
Activity Feed
- Posted Can I use RmAddFilter() with a Basic MSI? on InstallShield Forum. Oct 18, 2022 09:27 AM
- Posted Re: Radio button text is not showing completely on InstallShield Forum. Sep 19, 2022 02:41 AM
- Posted Uninstall REMOVE property isn't "All" on InstallShield Forum. Sep 19, 2022 02:28 AM
- Got a Kudo for Re: InstallShield - CustomActionData to multiple custom actions - managed. Sep 16, 2022 11:59 AM
- Posted Re: InstallShield - CustomActionData to multiple custom actions - managed on InstallShield Forum. Sep 16, 2022 11:51 AM
- Posted How would one specify Powershell version in CA? on InstallShield Forum. Sep 15, 2022 12:39 PM
- Posted CustomActionData passed to Powershell parses incorrectly on InstallShield Forum. Sep 15, 2022 11:53 AM
- Posted Re: InstallShield - CustomActionData to multiple custom actions - managed on InstallShield Forum. Sep 15, 2022 10:34 AM
- Posted Is a Password edit box supposed to have raised borders? on InstallShield Forum. Aug 16, 2022 10:41 PM
- Posted Re: Can you change the left side image of the welcome dialog? on InstallShield Forum. Jun 09, 2022 12:23 AM
- Posted Re: Delete all files from a folder by create date on InstallShield Forum. May 27, 2022 03:16 PM
- Posted Re: Killing a process on InstallShield Forum. May 27, 2022 11:39 AM
- Posted Get MSI table data from within CA on InstallShield Forum. May 26, 2022 05:09 PM
- Got a Kudo for Re: What's triggering ISSQLServerInitialize to overwrite my IS_SQLSERVER_SERVER property?. Nov 09, 2021 11:42 AM
- Posted Re: Install driver as optional feature on InstallShield Forum. Nov 06, 2021 12:39 AM
- Got a Kudo for Re: How can I execute script as an administrator?. Nov 05, 2021 08:56 AM
- Posted Re: Install driver as optional feature on InstallShield Forum. Nov 04, 2021 11:10 PM
- Posted Re: Error on install copying files on InstallShield Forum. Nov 04, 2021 10:56 PM
- Posted Re: How can I execute script as an administrator? on InstallShield Forum. Nov 04, 2021 10:45 PM
- Posted InstallScript to update ActionData records on InstallShield Forum. Nov 04, 2021 04:29 PM