Sep 19, 2019
11:00 AM
This problem occurs for me when using InstallShield 2016 Professional.
... View more
Sep 19, 2019
10:59 AM
Yes, it does sound like the same problem. I'll try TextSubSetValue and TextSubGetValue. If that works, I'll mark your suggestion as the answer. Thanks!
... View more
Sep 19, 2019
10:53 AM
Sure! I'm sorry you're having this problem too, but it's kinda nice to hear it's not just me! 🙂 https://developercommunity.visualstudio.com/content/problem/734287/visual-c-2019-redistributables-crash-rest-of-insta.html
... View more
Sep 18, 2019
01:30 PM
I am writing an installer to install data to a different, user-defined location than the application code. The "App Code" feature is being installed to TARGETDIR, and "App Data" is being installed to DATA_DIR. The dialogs, installation and uninstallation are working, almost. The problem is at the end of the uninstall process (OnMaintUIAfter), I need to call my custom function RemoveEmptyFolders(/*string*/ path, /* bool */ removeRoot) which recursively deletes all empty folders from the data directory, including the root folder, if removeRoot = TRUE. At this point, RemoveEmptyFolders() does not know DATA_DIR on uninstall, but it remembers TARGETDIR. I declared DATA_DIR as a global STRING variable. Data components are defined to install at <DATA_DIR>\whatever_subfolder, and they are associated with the "App Data" feature. FeatureSetTarget("App Data", "<DATA_DIR>", path) worked to get the feature and all its components to install to the correct place. On uninstall, all files are successfully removed from both TARGETDIR and DATA_DIR. However there are a bunch of empty folders left over inside the DATA_DIR folder. So RemoveEmptyFolders() didn't work for that location. It worked for TARGETDIR, so it's not the function itself. Debug messages reveal that InstallShield has no idea what DATA_DIR is at uninstall time. RemoveEmptyFolders() started trying to traverse paths I've never even seen before, that start with .\whateverfolder. Yikes. I put in a check to make sure the path != "", so at least it won't do that anymore. How did InstallShield know where to uninstall the "App Data" files from? How can I grab that path value at uninstall time, so I can pass it to my function and delete empty folders? If the DATA_DIR value is not in the log, then what IS in the log that tells InstallShield where to uninstall the "App Data" files?
... View more
Labels
- Labels:
-
InstallShield 2016 Professional
Sep 18, 2019
09:21 AM
One other thing. I suspected that this might be a problem with the VC++ redist installer itself, so I also posted about this problem in the Visual Studio Developer Community. The status "under investigation."
... View more
Sep 18, 2019
09:12 AM
Thank you for replying, Varaprasad. When I run the VC++ redist installer manually, it does not prompt me to reboot. In previous installers I built with InstallShield, I included earlier versions of the VC++ redist and other redistributables as prerequisites. They did not crash, but allowed the InstallShield installer to finish, and I added an InstallShield dialog at the end to prompt the user to reboot. This seemed to correct some runtime issues we experienced. I can certainly do the same thing here - prompt for the user to reboot at the end of installation, but currently, the VC++ redist installer breaks out of the InstallShield installer altogether and crashes it before our application is installed.
... View more
Sep 13, 2019
02:52 PM
Trying to post this again, because my previous post got marked as spam for some reason? I'm experiencing the following behavior with my prerequisite, but not when the Visual C++ 2019 installer is run outside of InstallShield. My colleague and I both experience the following repeatable behavior. When Visual C++ 2017 (x64) redistributables are installed, the InstallShield installer fails after installing Visual C++ 2015-2019 (x64) redistributables. When Visual C++ 2017 (x64) redistributables are not installed, it succeeds through both prerequisites and the main installer. Since Visual C++ 2015-2019 (x64) replaces the Visual C++ 2017 (x64) redistributables, to reproduce the issue, you must uninstall Visual C++ 2015-2019 (x64), and reinstall Visual C++ 2017 (x64). I've created a version of the prerequisite that logs the installation of Visual C++, and got the attached logs. Screenshots of my prerequisite configuration are also attached. If anyone has any idea what is wrong, please help! I'd like this to work, and this installer must be delivered very soon!
... View more
Labels
- Labels:
-
InstallShield 2016 Professional
Sep 13, 2019
02:03 PM
I'm experiencing the following behavior with my prerequisite, but not when VC++ 2019 is installed outside of InstallShield. My colleague and I both experience the following repeatable behavior. When Visual C++ 2017 (x64) redistributables are installed, the InstallShield installer fails after installing Visual C++ 2015-2019 (x64) redistributables. When Visual C++ 2017 (x64) redistributables are not installed, it succeeds through both prerequisites and the main installer. Since VC++ 2015-2019 (x64) replaces the VC++ 2017 (x64) redistributables, to reproduce the issue, you must uninstall VC++ 2015-2019 (x64), and reinstall VC++ 2017 (x64). I've created a version of the prerequisite that logs the installation of VC++, and got the attached logs. Screenshots of my prerequisite configuration are also attached. If anyone has any idea what is wrong, please help! I'd like this to work, and this installer must be delivered ASAP.
... View more
Labels
- Labels:
-
InstallShield 2016 Professional
Sep 11, 2019
09:52 AM
Thank you so much! That helped. Now on to other errors...
... View more
Sep 10, 2019
12:15 PM
I was asked to write an installer that will allow the user to install data in a different location than the software. So I'm trying to check the user's chosen path to make sure there is enough space there. For some reason the following code produces an error on the "ConvertSizeToUnits" line, stating "numeric variable required," error code C8046. Does anyone have a working example of this? Can you see anything wrong? I've tried this with and without assigning variables to hold the result of the FeatureGetCostEx and ConvertSizeToUnits functions. I hope this has a simple answer. Dlg_SdAskDestPath_data:
szTitle = "Choose Data Folder";
szMsg = "Choose where to install data for %P.";
//Initialize directories to DATA_DIR global variable, which is basically C:\\Users\\Public\\myapp_data
svDataDir = DATA_DIR;
nDataDirResult = SdAskDestPath(szTitle, szMsg, svDataDir, 0);
if (nDataDirResult = BACK) then
goto Dlg_SetupType2;
else
// Check disk space at the data destination path
nDataSpace = GetDiskSpaceEx (svDataDir, MBYTES);
//nDataSpaceReq = FeatureGetCostEx (MEDIA, "Data Files", svDataDir, nvCostHigh, nvCostLow);
FeatureGetCostEx (MEDIA, "Data Files", svDataDir, nvCostHigh, nvCostLow);
nConv = ConvertSizeToUnits (nvCostHigh, nvCostLow, BYTES, nvCostMBHigh, nvCostMBLow, MBYTES); // ---> Error flags this line
nDataSpaceReqMB = nvCostMBHigh + nvCostMBLow;
if (nDataSpaceReqMB > nDataSpace) then
MessageBox(svDataDir + " does not have enough space to install Data Files. Please choose a different location with at least " + nDataSpaceReq + " MB free." , SEVERE);
goto Dlg_SdAskDestPath_data;
endif;
// If it gets this far, it passes the tests, so
DATA_DIR = svDataDir;
endif;
... View more
Labels
- Labels:
-
InstallShield 2016 Professional
Aug 16, 2019
04:58 PM
Hello Jenifer, THANK YOU SO MUCH! I finally see what was wrong the whole time! There was nothing selected in the grayed-out dropdown box on the "Application to Launch" tab! I noticed yours had something there, and then I saw mine didn't. I check my Visual C++ redistributable .prq, and it had the file selected. I have it working now!
... View more
Aug 16, 2019
10:33 AM
Here's the condition screenshot.
... View more
Aug 16, 2019
10:27 AM
Here's the failure of the condition. It doesn't see that it is installed.
... View more
Aug 16, 2019
10:27 AM
Hi Jenifer, Actually, no the condition doesn't work without the WOW6432Node specified in the registry path. I took a screenshot of the registry showing the Intel Redistributables installed (previously), but the installer condition views it as not installed, and shows it Pending.
... View more
Aug 16, 2019
09:54 AM
Thank you both banna k and Jenifer for your replies. The file version condition I tried works, but I can certainly try using the predefined variable. I could also try the registry condition without the WOW6432Node part. I can tell the file version condition works because the Pending Installation doesn't appear if the redistributables have been installed manually before running my InstallShield installer. However, when they are not previously installed, the Intel Visual Fortran redistributable still fails when running as a prerequisite. I've also considered whether the .msi has a problem being packaged in a single .exe, as I'm doing, but the separated files in Disk Images output also has the same problem.
... View more
- « Previous
- Next »
Latest posts by SpiderLily1
Subject | Views | Posted |
---|---|---|
352 | May 25, 2021 02:18 PM | |
388 | May 19, 2021 02:35 PM | |
694 | May 12, 2021 12:35 PM | |
530 | Sep 22, 2020 05:13 PM | |
535 | Sep 22, 2020 02:58 PM | |
392 | May 07, 2020 09:02 AM | |
701 | Feb 28, 2020 12:42 PM | |
705 | Feb 28, 2020 10:52 AM | |
1083 | Feb 27, 2020 05:36 PM | |
1087 | Feb 27, 2020 01:58 PM |
Activity Feed
- Posted Re: SdFeatureTree feature size is wrong on InstallShield Forum. May 25, 2021 02:18 PM
- Posted SdFeatureTree feature size is wrong on InstallShield Forum. May 19, 2021 02:35 PM
- Kudoed Re: Behavior of the SdFinishReboot function in the nstallShield 2020 R3 InstallScript project. for nsanderson. May 12, 2021 12:42 PM
- Kudoed Behavior of the SdFinishReboot function in the nstallShield 2020 R3 InstallScript project. for hirosea. May 12, 2021 12:41 PM
- Posted Re: Behavior of the SdFinishReboot function in the nstallShield 2020 R3 InstallScript project. on InstallShield Forum. May 12, 2021 12:35 PM
- Posted Re: SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 05:13 PM
- Posted SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 02:58 PM
- Tagged SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 02:58 PM
- Tagged SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 02:58 PM
- Tagged SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 02:58 PM
- Tagged SdFeatureTree feature size incorrect on InstallShield Forum. Sep 22, 2020 02:58 PM
- Posted Does InstallShield 2019 InstallScript now install empty folders? on InstallShield Forum. May 07, 2020 09:02 AM
- Tagged Does InstallShield 2019 InstallScript now install empty folders? on InstallShield Forum. May 07, 2020 09:02 AM
- Tagged Does InstallShield 2019 InstallScript now install empty folders? on InstallShield Forum. May 07, 2020 09:02 AM
- Tagged Does InstallShield 2019 InstallScript now install empty folders? on InstallShield Forum. May 07, 2020 09:02 AM
- Posted Re: How to detect Modify mode in InstallScript on InstallShield Forum. Feb 28, 2020 12:42 PM
- Posted How to detect Modify mode in InstallScript on InstallShield Forum. Feb 28, 2020 10:52 AM
- Tagged How to detect Modify mode in InstallScript on InstallShield Forum. Feb 28, 2020 10:52 AM
- Posted Re: Problems with Features in InstallScript project on InstallShield Forum. Feb 27, 2020 05:36 PM
- Posted Re: Problems with Features in InstallScript project on InstallShield Forum. Feb 27, 2020 01:58 PM