Nov 15, 2018
01:48 AM
For the 2nd installer where you fixed the flag, did you change the product version in "General Information" tab? If not, consider doing so (one of the first 3 parts not the 4th) Additionally there is a setting in the component to "Reevaluate Condition" At least both of this together I use to remove files from outdated components during update installation, so it should work for you as well. But it doesn't explain your behavoir, I would expect none of your both components to install on second time.
... View more
Nov 14, 2018
09:44 AM
Do you have multiple features and A belongs to a feature which wasn't selected/installed, and B is assigned to another feature which is?
... View more
Oct 29, 2018
07:04 AM
I think I would probably add a new Variable like "CurrentInstallDir" and set this in a custom action appropriate to something like [InstallDir] + . Do this after the destination folder dialog where the user selects the target folder (if you have the ui sequence). Then you can use this new "CurrentInstallDir" combined with any subfolder as destination for your components, e.g. [CurrentInstallDir]\Bin For the variable name be sure to make it public (upper-case) and add it to secure properties so its transfered from ui to execute sequence. Instead of the new variable you could of course modify the INSTALLDIR directly like rguggisberg suggested if you dont need the original value anymore. That said, I'm curious if this is even possible because as soon as you start the setup after the product is already installed you should enter maintenance mode and only be able to modify the existing installation - as long as you don't change the product guid. At least thats what I understood so far, can anybody explain to me if that's wrong?
... View more
Oct 29, 2018
06:24 AM
My setup is an basic MSI as well, so it seems to work.
... View more
Sep 28, 2018
01:32 AM
I think your best bet is a major upgrade by changing the product code in the main view of your project. This will perform an uninstall and new install. maybe read also this topic: https://community.flexerasoftware.com/showthread.php?226522-Upgrading-a-Product-with-a-New-Product-Name-Fails&p=520329#post520329
... View more
Sep 27, 2018
04:47 AM
As I understand your old product has some features and these are installed after the upgrade but shouldn't - that's why you think it's not uninstalled? This might be related to the changed product code. Dan already descriped the behaviour but is missing one point I think. In case of the major upgrade the installer trys to migrate the feature states of the old installation. As long as this is possible the previously installed features are re-installed - so in case of a custom installation where the user picks specific features these are installed without the need to select them again. This means it is not exactly uninstall and new install. With our setup we had the issue this doesn't work and the user was forced to select the features again after a major upgrade. This was caused through "breaking changes" which caused the migration of old feature states to fail and then you have a full uninstall and new install with all the dialogs involved. In our case we removed old components from the installation. If you can't do that, change or remove a feature name which existed in the old installation should have the same effect. Perhaps try something along those lines.
... View more
Sep 25, 2018
08:28 AM
In "General Information", section "Add or Remove Programs" you have a setting for "Display Icon"
... View more
Feb 15, 2018
01:14 AM
I had the same problem some time ago after updating to IS2016 the clone_wait parameter fixed it in my case https://flexeracommunity.force.com/customer/articles/en_US/ISSUE/Installer-Does-Not-Wait-For-Child-Process-By-Command-Line-start-wait-setup-exe
... View more
Feb 14, 2018
04:35 AM
Hi Simon, what does the MSI Log tell how this Component is processed?
... View more
Feb 14, 2018
02:33 AM
Did you check the "Never Overwrite" option for the Component itself? If it's set to "yes" it won't touch the component if the Keyfile exists on the target system.
... View more
Feb 22, 2017
12:51 AM
Hey, was finally able to figure this out by myself. In my case the default size of the StringBuilder was to small to contain the full value.
... View more
Feb 20, 2017
07:36 AM
Hi, I've an basic MSI Project with a custom action scheduled in the UI Sequence. This action invokes a function of an C# Dll file stored in the binary table. Inside of this function I use MsiGetProperty to retrieve a path (basically the SourceDir which was copied into an own property before) of the msi package. This works fine as long as the MSI is installed from a directory with a short path e.g: "C:\Test\" If the path gets a bit longer (for example you copy the msi to the Windows Desktop, resulting in a path like "C:\Users\Administrator\Desktop\ProductName\Installx64\" -> so just about 50 Characters) the MsiGetProperty seems not to return the appropiate value anymore. At this point I can see in the MSILog my property was set before and contains the correct value - I just can't get it. The code I use looks like this: [CODE] [DllImport("msi.dll", CharSet = CharSet.Ansi)] private static extern int MsiGetProperty(IntPtr hInstall, string szName, [Out] StringBuilder szValueBuf, ref int pchValueBuf); private static String GetPropertyStringValue(IntPtr hInstall, String PropertyName) { try { int BufferSize = 0; int GetResult = 0; StringBuilder sb = new StringBuilder(); GetResult = MsiGetProperty(hInstall, PropertyName, sb, ref BufferSize); if (ERROR_MORE_DATA == GetResult) { var sb2 = new StringBuilder(); int FullSize = BufferSize + 1; GetResult = MsiGetProperty(hInstall, PropertyName, sb2, ref FullSize); sb = sb2; } return sb.ToString(); } catch (Exception ex) { MsiSetProperty(hInstall, "ERRORMESSAGE", String.Format("{0}: {1}", PropertyName, "failed with ex")); MsiSetProperty(hInstall, "ERRORMESSAGE", String.Format("{0}: {1}", PropertyName, ex.ToString())); } return string.Empty; }[/CODE] I tried a lot of things right now: Using other charset, adding 2, 10, 20 instewaad of just 1 to the buffersize to ensure it is big enough. I added some kind of "debug.Prints" into my ERRORMESSAGE property to check in the Msi Log if my function is called, check the returned Buffersize and so on. I seems like any code below the 2nd call of MsiGetProperty is not executed (obviously I would expect an exception message in case of a runtime error), therefore I can't tell what's the returned result-value of that Api call. The strange thing is this works fine until the property value is shorter than ~30 Characters. Does anybody have an idea what I'm doing wrong or new to add here?
... View more
Labels
- Labels:
-
InstallShield 2014
Latest posts by Georg1
Subject | Views | Posted |
---|---|---|
2348 | Nov 15, 2018 01:48 AM | |
2348 | Nov 14, 2018 09:44 AM | |
1205 | Oct 29, 2018 07:04 AM | |
2466 | Oct 29, 2018 06:24 AM | |
983 | Sep 28, 2018 01:32 AM | |
3205 | Sep 27, 2018 04:47 AM | |
1069 | Sep 25, 2018 08:28 AM | |
2466 | Feb 15, 2018 01:14 AM | |
1527 | Feb 14, 2018 04:35 AM | |
1527 | Feb 14, 2018 02:33 AM |
Activity Feed
- Posted Re: Some files not installed sometimes on InstallShield Forum. Nov 15, 2018 01:48 AM
- Posted Re: Some files not installed sometimes on InstallShield Forum. Nov 14, 2018 09:44 AM
- Posted Re: Add sub-folder after Installdir with ProductName on InstallShield Forum. Oct 29, 2018 07:04 AM
- Posted Re: WaitForSingleObject() not waiting for setup.exe to exit(IS2016 SP2) on InstallShield Forum. Oct 29, 2018 06:24 AM
- Posted Re: Removing existing permissions on a folder on InstallShield Forum. Sep 28, 2018 01:32 AM
- Posted Re: Upgrading a Product with a New Product Name Fails on InstallShield Forum. Sep 27, 2018 04:47 AM
- Posted Re: Add/Remove program icon change on InstallShield Forum. Sep 25, 2018 08:28 AM
- Posted Re: WaitForSingleObject() not waiting for setup.exe to exit(IS2016 SP2) on InstallShield Forum. Feb 15, 2018 01:14 AM
- Posted Re: Help! File Deletion/ replacement Issues on InstallShield Forum. Feb 14, 2018 04:35 AM
- Posted Re: Help! File Deletion/ replacement Issues on InstallShield Forum. Feb 14, 2018 02:33 AM
- Posted Re: MsiGetProperty doesnt work for long text on InstallShield Forum. Feb 22, 2017 12:51 AM
- Posted MsiGetProperty doesnt work for long text on InstallShield Forum. Feb 20, 2017 07:36 AM