This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
SpiderLily1
Level 6
- Revenera Community
- :
- About SpiderLily1
May 25, 2021
02:18 PM
Okay, done.
... View more
May 19, 2021
02:35 PM
InstallScript. I reported this in another post, but I resolved it by using a different dialog. Now, a user has reported this issue, so I'm raising it again. The sizes the user got when selecting and unselecting parent and child features made no sense. Parent feature A, with child features B and C. Whether the user selected/deselected A (which checks and unchecks B and C), or individually checked B and C on and off, he got only 2 answers: 668.55MB and 670.35MB. The two child features are ~448 MB, and ~444 MB, so with both selected, it should be 892 MB, right? Is this an InstallShield bug? Will this be fixed? Did someone say the Media Type made some kind of difference? The calculated sizes from SdFeatureTree just made no sense. My code is just: Dlg_SdFeatureTree:
szTitle = "";
szMsg = "";
szFeatures = "";
nLevel = 4;
nResult = SdFeatureTree( szTitle, szMsg, TARGETDIR, szFeatures, nLevel );
if (nResult = BACK) goto Dlg_SdLicense2;
... View more
Labels
- Labels:
-
InstallShield 2020 R2
May 12, 2021
12:35 PM
Hello, I have the same problem. Multiple users reported this issue today.
... View more
Sep 22, 2020
05:13 PM
I think I solved this for myself. Instead of SdFeatureTree, I used SdFeatureDialog2. The value of DATA_DIR is determined earlier in the script, so this works, and gives the right feature size. nResult = SdFeatureDialog2 (szTitle, szMsg, DATA_DIR, szFeatures);
... View more
Sep 22, 2020
02:58 PM
In my InstallScript project, I have one selectable feature in the SdFeatureTree dialog. Other features are set to Visible = No. The feature is about 444 MB, but the SdFeatureTree shows 82.22 MB of space required on hard drive, whether I select it or not. Is this because the feature is not actually going to be installed to TARGETDIR? My installer actually puts files in 3 different paths on the target machine. Perhaps the 82.22 is just the size of the data going to TARGETDIR? Is there any way to change this? The page on SdFeatureTree says, "The script variable TARGETDIR should always be specified for this parameter." szTitle = ""; szMsg = ""; szFeatures = ""; nLevel = 3; nResult = SdFeatureTree( szTitle, szMsg, TARGETDIR, szFeatures, nLevel );
... View more
Labels
- Labels:
-
InstallShield 2020 R2
May 07, 2020
09:02 AM
I'd just like a confirmation. Previously, for every empty folder that might need to exist, I had to add a line to my installscript. Now, it seems an empty folder in my components just got installed correctly without me having to do anything. Can someone confirm that this was fixed, or this capability was added? I can't find a reference to it in any new features. If so, that's great!
... View more
Labels
- Labels:
-
InstallShield 2019
Feb 28, 2020
12:42 PM
I determined that "if (!MODIFY)" doesn't work. My problem is this. I am installing some .ini files for launchers, and they contain some lines with substrings that must be updated according to user installation selections. I have a function that does this perfectly. It locates the strings in all the .ini files and updates them, leaving the rest of each line intact, because the rest of the lines are different, depending on which .ini file it is. When I run this on initial install, it works perfectly. I have no problems when I uninstall. Repair mode replaces the .ini files, then my function updates them, so there's no problem there. However, when Modify mode is run, substrings are duplicated, so the strings make no sense, and the application launchers do not work. My OnMoveData contains the FeatureTransferData call, followed by function calls according to mode. Is there no way to differentiate when we are running Modify, as opposed to Repair????? if (!MAINTENANCE) then // do initial install stuff UpdateInis(); elseif ( REMOVEALLMODE || REMOVEONLY) then // do cleanup stuff else // must be Repair or Modify modes // Want to call UpdateInis(), but only if it is Repair mode!!!
... View more
Feb 28, 2020
10:52 AM
I just need to verify, but I can't find the information anywhere else on the internet. Will "if (!MODIFY)..." work to prevent a part of my script from running when in Modify mode, or does the MODIFY variable mean something else? I want the code to run in Repair mode, so I don't want to use "if (!MAINTENANCE)..." Does anyone know where these modes are documented for InstallScript?
... View more
- Tags:
- installscript
Labels
- Labels:
-
InstallShield 2019
Feb 27, 2020
05:36 PM
Setting DataFiles\\RequiredData as a Required feature for the ProgramFiles and PropertiesFiles features did work.
... View more
Feb 27, 2020
01:58 PM
I am checking to see if setting DataFiles\\RequiredData as a Required feature for the ProgramFiles and PropertiesFiles features will work. I have doubts that it will work, because the site https://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/FeatureSettings.htm? states: "Project: In InstallScript MSI projects, this setting is applicable to root-level features during a first-time installation. It is also applicable to subfeatures in an upgrade or patch. This setting is ignored for subfeatures during a first-time installation."
... View more
- Tags:
- installscript
Feb 27, 2020
01:45 PM
I have a problem with features and subfeatures in my installscript project. Given the following features, they will be installed in the 3 different directories, in parentheses. > ProgramFiles (TARGETDIR) > PropertiesFiles (PROPS_DIR) > DataFiles (DATA_DIR) > RequiredData > OptionalData > OptionalData1 > OptionalData My problem regards dependencies, visibility, and user selection options. I can make ProgramFiles and PropertiesFiles invisible to the user, which is perfect, because those entire features are required. I would like RequiredData to be invisible, but still be installed, regardless. However, if I make DataFiles invisible, the SdFeatureTree shows a blank box, so the user can't choose any OptionalData. If I make DataFiles visible, the checkbox control is enabled, which means the user may uncheck DataFiles entirely, thinking that they are just refusing OptionalData, and as a result, RequiredData is not installed. What complicates matters is that the 3 main features are installed in 3 directories. All selected DataFiles must be installed in DATA_DIR. So I already have to use TextSubSetValue, FeatureSetTarget, and TextSubGetValue to save the <PROPS_DIR> and <DATA_DIR> values to the log, so that they can be found on uninstall. If I separate the OptionalData from the DataFiles, and make it its own top-level feature, it may solve the problem with selecting required/optional features, but will I need to add an additional property variable for it, and additional calls to TextSubSetValue, FeatureSetTarget, and TextSubGetValue, all thoughout the script, even though it should be exactly the same value as <DATA_DIR>? The components themselves that are included in OptionalData are defined with Destination values specifying <DATA_DIR>, such as <DATA_DIR>\OptionalData1, etc., but I guess I would have to change that too. Is this really that complicated? Can't we set a parent feature checkbox to "disabled," but allow it to still be visible, so that its invisible "critical" children will still be installed, while its visible optional children can be selected/deselected?
... View more
Labels
- Labels:
-
InstallShield 2019
Jan 30, 2020
06:43 PM
I think I figured it out. When I look at the properties of the Java binary running in Task Manager, the path of the java.exe is cut off. The "MyApp" launcher wasn't using C:\Users\Public\amazon-corretto-java\jdk1.8.0_222\bin\java.exe. It was using C:\Users\Public\amazon-corretto-java\jdk1.8.0_222\jre\bin\java.exe. So I didn't have the right path afterall.
... View more
Jan 30, 2020
06:03 PM
I have installscript code that uses Is(FILE_LOCKED) to check several .exe's and java.exe to determine if they are running. The path to all of the .exe's is supplied. The paths to various (installed) java.exe's is found via a registry check in the Javasoft key. That works as intended. Sometimes Java does not have a registry key - it is just unzipped, and referenced with the "JAVA_HOME" variable. So I used the GetEnvVar ("JAVA_HOME", svValue) function to get the path to Java, and then appended "\\bin\\java.exe." I verified that the installer knows the correct path. However, in this one circumstance, Is(FILE_LOCKED) doesn't work. Our application "MyApp.exe" launches with Java. When running correctly, "MyApp.exe" and the Java binary will be running. Currently, Is(FILE_LOCKED) correctly tells when MyApp.exe is running, but not Java. When MyApp.exe is running when I try to install a patch, the Is(FILE_LOCKED) function lists "MyApp.exe" in a list of "Files in Use." If I kill MyApp.exe from Task Manager, the MyApp GUI remains open, and the Java binary is still running, so there are still locked files, but re-running the Is(FILE_LOCKED) function shows everything is fine, and the install will continue. It shouldn't do that! I'm using Amazon Corretto OpenJDK 8. The JAVA_HOME path is C:\Users\Public\amazon-corretto-java\jdk1.8.0_222, to make sure it was accessible. Does anyone have a clue what's going on? Is there some other way I can do this?
... View more
Labels
- Labels:
-
InstallShield 2019
Dec 12, 2019
04:41 PM
This is for InstallScript, not MSI... I have searched all over, and it's driving me mad. I have a custom dialog with custom text fields, like: "Choose where to install files for %P" "Install %P application to:" "Install %P properties and logs to:" "Install %P data to:" The problem is %P does not resolve to the product name in the custom dialog. It just displays %P. I've also tried [ProductName], and it just displays [ProductName]. I have no idea what I'm doing wrong. I changed the Control IDs for the text fields to 700, 701, 702, 703, 704. My custom dialog is named Ask3DestPaths. I have Ask3DestPaths.rul, with a Ask3DestPathsDialog() function, and DGL_INIT as: case DLG_INIT: // Initialize the back, next, and cancel button enable/disable // states for this dialog and replace %P, %VS, %VI with // IFX_PRODUCT_DISPLAY_NAME, IFX_PRODUCT_DISPLAY_VERSION, and // IFX_INSTALLED_DISPLAY_VERSION, respectively, on control IDs 700-724 and 202. hwndDlg = CmdGetHwndDlg("Ask3DestPathsDialog"); SdGeneralInit("Ask3DestPathsDialog", hwndDlg, 0, ""); In setup.rul, I have: #include "Ask3DestPathsDialog.rul" ... Dlg_Ask3DestPaths: SdProductName("My App"); // This does not work nResult = Ask3DestPathsDialog(); if (nResult = BUTTON_BACK) goto Dlg_SetupType2; I tried calling SdProductName("My App") in different places, in Ask3DestPathsDialog.rul, and in Setup.rul. It doesn't work, and I'd still just want %P to simply resolve to the Product Name "My App" that is set in General Information. Does anyone know the answer to this?
... View more
Labels
- Labels:
-
InstallShield 2016 Professional
Dec 12, 2019
03:48 PM
The links on this page helped, but now I just can't get %P to display the product name. https://helpnet.flexerasoftware.com/installshield19helplib/helplibrary/Dialogs_CreateStandardDlgEd.htm
... View more
Latest posts by SpiderLily1
Subject | Views | Posted |
---|---|---|
1136 | May 25, 2021 02:18 PM | |
1172 | May 19, 2021 02:35 PM | |
1609 | May 12, 2021 12:35 PM | |
1163 | Sep 22, 2020 05:13 PM | |
1168 | Sep 22, 2020 02:58 PM | |
744 | May 07, 2020 09:02 AM | |
1225 | Feb 28, 2020 12:42 PM | |
1229 | Feb 28, 2020 10:52 AM | |
1862 | Feb 27, 2020 05:36 PM | |
1866 | 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
Contact Me
Online Status |
Offline
|
Date Last Visited |
Jul 26, 2024
12:16 PM
|