Mar 04, 2022
04:14 PM
I have a Kill-Process custom action that seems to work fine if the process I want to kill is running in the same user session. However, if it is running in another session, it doesn't get killed. I need to make sure my application isn't running anywhere on the machine before installing a new version. How can I configure the Kill-Process to take out all copies of the process in any session? Thanks.
... View more
Labels
- Labels:
-
InstallShield 2021
Jan 18, 2022
11:20 AM
I am running with an administrator user. I tried setting the execution to "Deferred" but I got an error "2762 cannot write script record". Based on what I have read online, that option can only be used in the execute sequence, not the UI sequence like I have to use it (see earlier post). The EXE custom action you suggested won't work because I don't have the Product Code of the package I am trying to uninstall. It could be any past or future version of my product. My PowerShell script is looking it up by the application name before uninstalling it. AFAIK, MSIEXEC doesn't have an option to uninstall an application based on its name. What else can I try? Thanks
... View more
Jan 18, 2022
09:32 AM
Thanks Varul, that got me part of the way there. I can use a PowerShell script CA on the NEXT button to do the uninstall. The only problem is that the uninstall doesn't work (return code 1603) unless I launch the MSIEXEC with "Run as Administrator". I have already set the "Require Administrative Privileges" to "Yes" so I don't see why that is necessary. I am running as an administrator and I don't see the UAC message come up. Note that I am using an MSI without Setup.EXE and I need to keep it that way.
... View more
Jan 13, 2022
11:36 AM
OK. So forget about downgrading. How can I set up my installer such that it will uninstall ANY version of my application prior to starting the install? I have tried a PowerShell script in a custom action but that made the installation lock up. Is there a way to do this through InstallScript or something like that? Thanks, Steve
... View more
Jan 11, 2022
03:39 PM
The project type is Basic MSI. Thank you.
... View more
Jan 11, 2022
02:39 PM
1 Kudo
I need to have my installer automatically replace (not side-by-side) WHATEVER version of my application is already on the system. It could be an upgrade, a downgrade or a re-install. I have tried several things to make this happen. I turned off the ISPREVENTDOWNGRADE logic, but that allows a side-by-side installation. I tried creating a PowerShell script to uninstall my application at the beginning of the install. The install locks up. I am always doing a "major" upgrade and that works fine, but I can't seem to get the downgrade to work. I realize that the easiest thing to do is just uninstall the application before installing the older one, but that is unacceptable to my users. I am fairly new to InstallShield so please help! BTW, I am on InstallShield 2021.
... View more
Labels
- Labels:
-
InstallShield 2021
Latest posts by swrightjet
Subject | Views | Posted |
---|---|---|
165 | Mar 04, 2022 04:14 PM | |
1194 | Jan 18, 2022 11:20 AM | |
1200 | Jan 18, 2022 09:32 AM | |
1234 | Jan 13, 2022 11:36 AM | |
1271 | Jan 11, 2022 03:39 PM | |
1275 | Jan 11, 2022 02:39 PM |
Activity Feed
- Got a Kudo for Allow upgrades and downgrades at will. Jul 27, 2022 09:27 AM
- Posted Kill-Process Running in another Windows Session on InstallShield Forum. Mar 04, 2022 04:14 PM
- Posted Re: Allow upgrades and downgrades at will on InstallShield Forum. Jan 18, 2022 11:20 AM
- Posted Re: Allow upgrades and downgrades at will on InstallShield Forum. Jan 18, 2022 09:32 AM
- Posted Re: Allow upgrades and downgrades at will on InstallShield Forum. Jan 13, 2022 11:36 AM
- Posted Re: Allow upgrades and downgrades at will on InstallShield Forum. Jan 11, 2022 03:39 PM
- Posted Allow upgrades and downgrades at will on InstallShield Forum. Jan 11, 2022 02:39 PM