Good day!
I tried to update my installation from version 1.3 to 1.4, but no files were overwritten.
I checked my Basic MSI project and Files and Folders files- they have always override option.
If I install it on a clear machine- all files install well.
But if I install from 1.3 to 1.4 - it does not update.
I changed Upgrade option from "Install Setup then remove unneeded options" to "Completely uninstall old setup before installing new setup" but it never changed...
Please, help me fix this error.
It seems,that i use a lot of key file attributes at my install.
When i clear it to just one key file- it works well.
Related
I'm trying to solve the issue where InnoSetup doesn't delete no-longer-used files on upgrade. That is, you install version v1.0 of your application which installs a file that is not used v1.1. During the upgrade to v1.1, the unused files is left behind. Meanwhile, the uninstaller for version v1.0 will remove all of 1.0s files and the uninstaller for 1.1 removes all of 1.1s files. A suggested fix is to programmatically launch the uninstaller for v1.0 during the upgrade.
There's a couple of ways of doing this. One is to use a procedure named CurStepChanged(CurStep: TSetupStep). In the procedure you can watch for the ssInstall step and start the uninstaller there during upgrades. I was having some problems with this, and instead tried using the the BeforeInstall parameter to launch the uninstaller if an upgrade is detected.
Unfortunately, whenever I try this, the installer fails at the very end with a generic
Setup cannot find the specified file
Anyone experienced this and know the cause or have suggestions for further troubleshooting?
You are correct that IS does not automatically delete files no longer needed by a previous version when upgrading and that you must do so yourself, and as you noted, one way to handle this issue is to automatically uninstall the previous version before upgrading.
If you are certain you really want to uninstall before upgrading (and/or downgrading), you can use a DLL I wrote for this purpose (requires IS 6.0 or newer):
https://github.com/Bill-Stewart/UninsIS
The Sample Inno Setup Usage section in the documentation on that page explains how to use the DLL in an Inno Setup project. You can decide whether you want to uninstall the existing installed version when either upgrading or downgrading.
I am using Intellij IDEA 2017.2.5 on Linux Mint 18.2 and trying to add new openjdk-9 SDK but IDEA does not accept openjdk 9 as valid JDK:
I have installed all of my SDKs using apt-get from ppa standard repositories.
This is my update-alternatives --config java/javac output:
Although Intellij declared it would support JDK 9 here, but it seems it is not yet fully compatible with at least opensdk-9.
Maybe refactoring SDK directory and removing 'jre' folder misleads the IDEA to find the SDK 9 home folder.
Any idea why Intellij IDEA claims 'The selected directory is not a valid home for JDK' ?
“ Ubuntu PPA for OpenJDK” currently has very old build of openjdk-9(9~b115-1ubuntu1).
So the IDEA does not recognize it as a valid SDK.
I removed current installed version:
sudo apt-get remove '^openjdk-9.*'
Then I have downloaded newer .deb build(9~b181) files including jre,jre-headless,... from launchpad build archive.
sudo dpkg -i openjdk-9-jre-headless_9_b181-4_amd64.deb
openjdk-9-jre_9_b181-4_amd64.deb
openjdk-9-jdk-headless_9_b181-4_amd64.deb
openjdk-9-jdk_9_b181-4_amd64.deb
Just Execute the above command at a single line, line breaks are for better readability.
Ignore any error complaining about:
"Package libpng16-16 is not installed."
Next execute the following:
sudo apt-get install -f
Now after installing this build of openjdk-9 the IDEA is happy with SDK home.
Thanks #y.bedrov for his useful comment.
Update:
However this solution enables you to declare openjdk-9 in the mentioned IDEA version(2017-2) but you are not able to compile any class within the IDEA itself.
You can only compile your application with elder jdk and run it with openjdk-9. There is an other issue which indicates this here.
In the newer IDEA versions(I have tested 2017.3) this build of openjdk is not allowed to be used as new SDK any more, see this issue.
The short reason is an issue in Debian package which contains incorrectly compiled lib/jrt-fs.jar file.
See this Answer for more information
I am working on Install shield 2013 Pro (Licensed version).
I created one installer(Version 1.00.000) which will install driver for wireless network adapter .
Now i need to create an installer (Version 2.00.000) which must 'Uninstall Previous version ' installed in the PC.
I read sme forum which uses upgrade code for Uninstalling the version but could'nt get enough idea on this.
Can i get a well explained solution for this. Please help me in solving this issue.
Thanks in advance
The upgrade is done with the help of the upgradecode. This code must be the same for all product versions. This way Windows Installer can see two products are from the same family. The support from Windows Installer for controlling updates it also allows you to install allows you to decide the order of the upgrades, i.e. you can choose to first remove the old version and then install the new one, or to first install the new one and them remove the old version.
When doing upgrade you should also be careful on the package language and install type (per-user or per-machine). Windows Installer does not remove an older version if the install language or type is different from the one of the new version that is being installed.
I am trying to install Xcode 4 on my mac which already has Xcode 3.2.6 installed.
I searched for this and I found that I need to change the location for the directory to install Xcode, however in my case my machine has only one hard drive partition and when I try to install it on different directory there is no option available other than Developer (the default).
So I want the exact procedure to install Xcode 4 alongside Xcode 3.
Thnx andrea but i found solution that there is option while installing xcode4 location to install it and like "other> browse for directory u wish to install in " click continue this folder should be different than default developer.
I previously removed the old version with all SDK (iOS 3 and 4) and, after that, installed the new version.
to remove use:
/Developer/Library/uninstall-devtools
If already installed same version software in system, Again installing time how to get Repair, Remove and Uninstall Options, If newer version is going to install same software how to get Upgrade options through Install shield.....
It's built in. If the PackageCode hasn't changed ( default is to change it with each build ) you'll get "Maintenance" UI experience. ( Repari, Remove, Change )
If PackageCode has changed ( you did a new build ) you'll either get.....
If ProductCode has changed it'll look like a new install. If the Upgrade table is authored correctly, it'll do a Major Upgrade.
If ProductCode has not changed, you'll get an error message saying another product is already installed. If you have Setup.exe and the correct upgrade option selected it will do a Minor Upgrade.