Aug 22, 2022
12:47 PM
Hi,
I got a problem with several LaunchApplication calls in Custom Actions of a BasicMSI project. They all look like this:
nCallResult = LaunchApplication("cmd.exe", "/C \"C:\\MyDirectory\\myscript.cmd\"", "C:\\MyDirectory", SW_HIDE, 600000, LAAW_OPTION_WAIT_INCL_CHILD);
Now this is the weird part:
As long as the cmd script finishes within the timeout (< 10 minutes in this case), everything works as expected. If the cmd script takes longer however, the LaunchApplication call will wait indefinitely. In my case, I could see that the cmd script was finished after 13 minutes. The whole installation however was stuck because LaunchApplication would never return.
To me it seems that the timeout somehow "disconnects" the installation from the created process, but doesn't stop the execution of LaunchApplication.
My expectation would be that as soon as the timeout is reached, LaunchApplication would return and my variable nCallResult would contain the corresponding error message.
Am I doing anything wrong?
... View more
Labels
- Labels:
-
InstallShield 2021
Oct 07, 2020
05:18 AM
@Korsar13 According to https://community.flexera.com/t5/InstallShield-Forum/Offline-Activate-page-down/m-p/165071 the URL has changed. Try https://flexerasoftware.flexnetoperations.com/control/inst/offlineActivation
... View more
Oct 07, 2020
05:16 AM
Wow, great information, thank you! There's another thread about this issue (https://community.flexera.com/t5/InstallShield-Forum/Re-Support-Contacts/m-p/164269) and I've also opened a support ticket for it last week, but didn't get this simple result. Instead they requested an online meeting. Seems like even the technical support doesn't know about this change.
... View more
Oct 02, 2020
05:17 AM
Same problem for me. I've opened a support case as well, hoping it will be fixed soon.
... View more
May 05, 2020
06:06 AM
Hi there, I once again ran into a little problem with my BasicMSI installation (InstallShield 2019 Professional). I need to determine the size of a folder containing several huge files (can be up to 30 GB per file and >300 GB for the whole folder). The standard code snippets you can find everywhere are usually only capable of handling a total folder size < 2 GB because that's the limit of a single NUMBER variable. I found the function GetAndAddAllFilesCost and tried the following (source and target directory are same since I only need to check size without moving files): GetAndAddAllFilesCost(szDirectory, "*", szDirectory, 0, nvSizeHigh, nvSizeLow, nvCostUninstall); For "small" folders (e.g. 500 MB total size) it works perfectly returning 0 for nvSizeHigh and the folder size in bytes for nvSizeLow. For the huge folder (3.3 GB in my test scenario with no single file exceeding 2 GB) it still returned 0 for nvSizeHigh and -742141952 for nvSizeLow. Obviously it still tried to store the whole value in nvSizeLow and then resulting in an overflow continuing from -2 GB. The result is pretty much where 3.3 GB would bring me. To me it seems to be a bug in InstallShield since the function according to documentation should be able to handle large numbers; apparently it only separates high/low values for a single file, but then tries to sum up high for all files and low for all files which can't work. Is there any better working way without having to manually do the calculation between high and low? If I'd have to manually sum up the values and consider overflow it would end up very ugly.
... View more
Labels
- Labels:
-
InstallShield 2019
Sep 30, 2019
03:43 AM
In the meantime I found the reason for my problem. I had set REINSTALLMODE=vamus and REINSTALL=ALL and created a Setup.exe instead of plain MSI. It appears with a Setup.exe while REINSTALLMODE setting is ignored (due to InstallShield's Setup.ini overriding it), REINSTALL=ALL will simply break the uninstallation although according to the logfile Setup.exe is calling the MSI with the same parameter, so even if I don't set it it's still there. I don't know why this is the case but removing the REINSTALL property solved the issue.
... View more
Sep 20, 2019
05:44 AM
Hi Varaprasad, thank you for your response. The issue occured on all machines. In the meantime, because I couldn't fix the issue, I just changed my update to a major upgrade. In order to be able to ship only the changed items, I create a backup of the program folder at the beginning of the installation and restore it after the RemoveExistingProducts action. It's not the ideal way but it seems to work well.
... View more
Sep 13, 2019
12:24 PM
Hi, I have a little problem trying to build a minor update for my application. Installation of the minor upgrade works fine and I also followed all "rules", adding several new components but not removing any existing feature, component or key file. The problem arises when I try to uninstall the application. Once the minor upgrade is installed, uninstallation doesn't work anymore and always asks for the original MSI file (not the one of the upgrade). Setup and the Upgrade are different InstallShield projects but with the same name, upgrade code, product code. Also the features and components are identical (except for the new components), so I think this shouldn't be an issue. Major upgrades work well with the same upgrade project. The big difference to major upgrades is that in my minor upgrade I don't ship all the files but only the changed ones. I was wondering if the problem could come from components using dynamic file linking. As far as I could read, with dynamic file linking a random file will be chosen as the key file - and of course, as I only ship a few files with my minor upgrade, chances are high the file isn't there in the upgrade, so the chosen key file might be a different one. Am I right that this is the cause of my trouble? Would there be any solution to it except for always shipping major upgrades with all files included? Unfortunately I can't get rid of dynamic file linking for my project.
... View more
Labels
- Labels:
-
InstallShield 2019
Aug 27, 2019
07:26 AM
P.S. Sorry, I didn't see your first post in here, my answer yesterday wasn't meant towards you.
... View more
Aug 27, 2019
07:25 AM
Thank you very much! This link solved the problem for me. I could keep the registry value even on rollback by using Disable/Enable: Disable(LOGGING);
RegDBSetKeyValueEx("SOFTWARE\\MYAPP", "INSTALLRESULT", REGDB_STRING, "1", -1);
Enable(LOGGING);
... View more
Aug 26, 2019
10:24 AM
Thank you for the information. Unfortunately the return code of the installation itself doesn't help here because another application later has to get the result through registry lookup. I'll probably just say, if the registry value is there it was successful, if it isn't there the installation has failed.
... View more
Aug 26, 2019
07:28 AM
Hi Jenifer, I am setting the registry value through InstallScript like this: RegDBSetKeyValueEx("SOFTWARE\\MYAPP", "INSTALLRESULT", REGDB_STRING, "1", -1); Currently it is placed at the beginning of the OnInstalled function for the main (and only) feature. Additionally, I also tried to add the same line in the OnAbort function, but in both cases it is removed when the installation aborts. I am triggering aborts of the installation through a call of abort; I'm doing all necessary rollback actions in the OnAbort function, so actually the installation doesn't need to roll back anything at all. I know for MSI installations there's a switch to deactivate rollback, but I don't know of anything similar in InstallScript installations (actually I didn't even know it would do a rollback).
... View more
Aug 26, 2019
06:12 AM
Hi, I have an InstallScript project where I set a registry value at the beginning marking the installation as "Failed". Only in the end after successful installation, I change the registry value to "Successful" (actually it's "0" and "1", but that shouldn't matter). My problem is that once the installation is aborted the registry value will be removed, so obviously a rollback is done. Is there any chance to keep it even after abort? I tried to set it in the OnAbort function but unfortunately this doesn't help. The initial value is set correctly. If I check the registry during installation I can see the "Failed" value for a short moment before the installation is aborted and the registry value disappears again.
... View more
Labels
- Labels:
-
InstallShield 2019
Aug 16, 2019
08:25 AM
Thank you for your response! The complete project is much bigger. Actually INSTALLDIR points to a completely different location (the application has the INSTALLDIR and a "working directory", the latter is the one where I try to install the new component to). The part for the new component (didn't exist in the setup but is added in update) is just as mentioned: Look up the working directory through AppSearch and then have several subfolders below. In the meantime, at least I got a workaround running. While setting DIR_D through MsiSetTargetPath didn't work (it changed the property but not the actually used destination directory path), it finally works with a Set Directory custom action scheduled right after CostFinalize.
... View more
Aug 16, 2019
06:54 AM
Additional info: Even changing the path later through MsiSetTargetPath doesn't help at all. According to the logfile, the property is updated correctly. However the component is still installed into the wrong directory.
... View more
Latest posts by Pizzamampf
Subject | Views | Posted |
---|---|---|
141 | Aug 22, 2022 12:47 PM | |
702 | Oct 07, 2020 05:18 AM | |
713 | Oct 07, 2020 05:16 AM | |
743 | Oct 02, 2020 05:17 AM | |
425 | May 05, 2020 06:06 AM | |
1513 | Sep 30, 2019 03:43 AM | |
1545 | Sep 20, 2019 05:44 AM | |
1575 | Sep 13, 2019 12:24 PM | |
2805 | Aug 27, 2019 07:26 AM | |
2806 | Aug 27, 2019 07:25 AM |
Activity Feed
- Posted LaunchApplication is waiting beyond timeout on InstallShield Forum. Aug 22, 2022 12:47 PM
- Posted Re: Support Contacts on InstallShield Forum. Oct 07, 2020 05:18 AM
- Posted Re: Offline Activate page down?? on InstallShield Forum. Oct 07, 2020 05:16 AM
- Kudoed Re: Offline Activate page down?? for sjoroos. Oct 07, 2020 05:13 AM
- Posted Re: Support Contacts on InstallShield Forum. Oct 02, 2020 05:17 AM
- Posted Getting the size of a folder with huge files on InstallShield Forum. May 05, 2020 06:06 AM
- Posted Re: Minor Upgrade breaks Uninstall on InstallShield Forum. Sep 30, 2019 03:43 AM
- Posted Re: Minor Upgrade breaks Uninstall on InstallShield Forum. Sep 20, 2019 05:44 AM
- Posted Minor Upgrade breaks Uninstall on InstallShield Forum. Sep 13, 2019 12:24 PM
- Kudoed Re: Avoid rollback in InstallScript project for MarkusLatz. Aug 27, 2019 07:28 AM
- Kudoed Re: Avoid rollback in InstallScript project for MarkusLatz. Aug 27, 2019 07:28 AM
- Posted Re: Avoid rollback in InstallScript project on InstallShield Forum. Aug 27, 2019 07:26 AM
- Posted Re: Avoid rollback in InstallScript project on InstallShield Forum. Aug 27, 2019 07:25 AM
- Posted Re: Avoid rollback in InstallScript project on InstallShield Forum. Aug 26, 2019 10:24 AM
- Posted Re: Avoid rollback in InstallScript project on InstallShield Forum. Aug 26, 2019 07:28 AM
- Posted Avoid rollback in InstallScript project on InstallShield Forum. Aug 26, 2019 06:12 AM
- Posted Re: Component destination path not updated on InstallShield Forum. Aug 16, 2019 08:25 AM
- Posted Re: Component destination path not updated on InstallShield Forum. Aug 16, 2019 06:54 AM
- Posted Component destination path not updated on InstallShield Forum. Aug 16, 2019 06:30 AM
- Posted Struggling with folder access rights in IS 2019 on InstallShield Forum. Jul 17, 2019 05:27 AM