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.
Reureu
Level 10
- Revenera Community
- :
- About Reureu
Aug 04, 2017
04:19 AM
Signing the Setup.exe and adding the corresponding certificate is surely the way to ensure the antivirus won't block it, as some antivirus solutions just disable to execution of any unsigned executable. So you might have to sign all your custom-made executables and some other binary files (like hardware drivers, if your setup installs any). But some antivirus solutions might detect your executables as false positive despite the signature and certificate. It all depends on the logic of the antivirus. In that case, you will still need to report the case to the antivirus manufacturer.
... View more
Jun 07, 2017
02:17 AM
As you pointed out, the SUPPORTDIR variable and the SUPPORTDIR property are not the same. If your DLL is added as Support file in your project, you need to access it with the SUPPORTDIR property. If I remember well, this property is not accessible if your custom action is scheduled for deferred or commit execution, and it returns an empty value if you try to access it in such a custom action. Consequently, you need to pass this property as Custom Action Data. See http://helpnet.installshield.com/installshield21helplib/helplibrary/AccessingProps-DeferredCAs.htm. This page refers to InstallShield 2014, but I'm pretty sure the procedure is the same with 2013. You might also have to add SUPPORTDIR to the SecureCustomProperties property. Good luck!
... View more
Aug 05, 2016
12:53 PM
Hi Josh, Thanks for your reply. I understood what the root cause was and it was easy to resolve, but you probably understood why I got a bit surprised to see it fail only on Vista. But yes, this error in my code suddenly being revealed might well be related to the new runtime libraries. I would have thought that these libraries would work in the same way on Vista as on other OS's though. Best regards, Reureu
... View more
Jul 29, 2016
09:32 AM
Hi there, Better late than never, we have just upgraded our projects from IS 2013 to IS 2015. We bumped into a little issue with SprintfMsiLog. Something must have changed in IS 2015 (or maybe already in IS 2014), as our installation packages no longer worked on Vista after we upgraded. Here we go: We've got a Basic MSI project, with quite a few CustomActions of type InstallScript. One of them logs quite a lot of information to the Msi log file using SprintfMsiLog. One of the calls of SprintMsiLog was like that: SprintfMsiLog( "********************* " + szTitle + ": " + szMessage ); It used to work fine when built with IS 2013, whatever szTitle and szMessage contained. Once we started to build this project with IS 2015 and test it on various OS, the code above would abort the CustomAction and make the whole installation fail under Windows Vista (and only Vista!). After quite a few trials and errors, I realized what conditions made it fail: if either szTitle or szMessage contained a percent sign, the code above would fail if the project was built with IS 2015. Changing the code to: SprintfMsiLog( "********************* %s: %s", szTitle, szMessage ); resolved the problem. So here are my questions: Did you guys change the InstallScript implementation of SprintfMsiLog in either IS 2014 or in IS 2015 ? Is this change documented anywhere? Last but not least, any idea why it only fails on Vista? Thanks for reading!
... View more
Labels
- Labels:
-
InstallShield 2015
Jul 21, 2015
07:42 AM
And did you implement rollback and uninstall custom actions? What about minor upgrades?
... View more
Jun 26, 2015
01:05 AM
I think MS Report Viewer 2010 exists as prerequisite for InstallShield 2013. Open your project and go to the Application Data-->Redistributables view. It should be listed there. You can add it as prerequisite, and your Setup.exe will launch the installation before installing your MSI package. Or you can add it as feature prerequisite. But I don't think you can add a prerequisite to a patch.
... View more
Jun 17, 2015
12:46 AM
You probably added some prerequisites without even realizing it. Or InstallShield might have done it for you if you launched a dependency check.
... View more
Jun 17, 2015
12:43 AM
Welcome to the world of "I'm just replacing a colleague who normally deals with InstallShield"! The funny thing is: if you do a good job, then it becomes your permanent responsibility 😉 If all you want to do is add a file to your Basic MSI project, you can do 2 things: Create a new QuickPatch project. Create a Patch in the "Patch Design" view of your Basic MSI project. Here are a few words about the latter. The idea is to build a new setup that includes all your files (including the new file you want to add). This new setup will have the same product code. The Patch Design allows you to refer the previous version of your setup. It will then create a small package which contains the differences between this previous setup and the new one. As long as you just want to add a file, you can create a patch. The type of changes you can apply through a patch is limited. e.g. you cannot remove a file. Have a look at what you can do in a patch, in a minor upgrade and in a major upgrade: http://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/MajorMinorSmall.htm Once you have built both the new package and the patch, You can then give the full new package to the customers who want to install your new version from scratch. You can give the patch to the customer who already installed the previous version of your product.
... View more
Jun 12, 2015
12:03 AM
Just changing the product code is not enough to perform a major upgrade. You need to add a Major Upgrade item in the "Upgrades" view of your project. Here are a couple of links that should point you in the right direction: http://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/CreatingMajorUpgrades.htm http://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/Upgrades.htm
... View more
Jun 10, 2015
06:28 AM
You forgot to mention a few details to allow other people to understand your problem. Project type you are working on? Type of Upgrade you are trying to perform? I assume you are trying to perform a Minor Upgrade, and that your project is Basic MSI. Anyway, you cannot remove or rename components/files between your 2 versions if you want to perform a minor upgrade. You need to follow the rules listed here: http://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/MajorMinorSmall.htm Alternative: go for a major upgrade.
... View more
May 26, 2015
01:47 PM
In theory, you could add some items to the Component and File tables at runtime, so you could benefit from the install/uninstall/rollback mechanism. It would also allow to use the existing version check mechanism (think about the minor upgrade scenario: the files with the highest version wins). Not sure how that would work with file checksums, but it could be worth a try.
... View more
May 22, 2015
01:24 PM
So, what you want to do is add a file to the CD after your installation package is built, and copy it to a target folder during installation? It is not impossible, but you will inevitably face quite a few limitations: [LIST=1] You cannot include a file to an MSI package before this file actually exists. Consequently, you cannot add a file to an MSI package after this package was built. You could possibly use a Transform file, but that's a different story. I don't think you can change an existing file in the source folder after building the MSI package either. I think the MSI package contains quite a few checksum to make sure that the source files are intact. You might also face an issue with the package size. The capacity of a CD is limited, and InstallShield will spread your files (or your cabinet file) on several CD's if the overall size of the package exceeds the size of a CD. So adding files to a CD after the package has been built is not a good idea, even if these files are just "advanced support files". The best way to handle this would be to build your package once all the files (including your user manual) have been produced, and adapt your development process accordingly. In other words: get your technical writers to finish their job earlier. If you really want to supply a user manual that can change until the last minute, you should consider uploading it to a website that your customers can access. However, if you are not able to adapt your development process to these good practice, here is an idea: Do not create any component in your installation package for this file. Now let's assume you have just copied this file to a subfolder of your CD. Create a custom action that just copies this file from one subfolder of the CD to the target directory. You need to create a similar action that removes this file from the target folder on uninstall. Also, don't forget the rollback actions! This idea will not overcome problem no3 listed above, though. Another possibility would consist of building a patch that simply adds your user manual to your product. You would obviously build this patch AFTER building the main installation package. Push this reasoning further, and create a separate installation package for your user manual, then chain both installations. Any other idea? A transform file, maybe? But honestly, your life would be easier if you had all files before building your package.
... View more
May 22, 2015
12:51 AM
Hi there, There was an interesting forum discussion about continuous integration a few weeks ago. http://community.flexerasoftware.com/showthread.php?218792 I mentioned that I don't like the InstallShield integration in Visual Studio. Well, you have just found one of the reason why I don't like it. The InstallShield integration in MSBuild is another thing, and it is working quite well. Here is what I do: I create my Installation project in InstallShield, and I make sure it builds correctly in InstallShield. The meaning of "correctly" here is up to you, but I would expect the have an complete installation package, that includes the prerequisites, and all the required dependencies. By the way, I handle most dependencies by hand in InstallShield, which sort of corresponds to what you described in your previous post. The difference is: You do in in VS, I do it in IS. Then I create a separate VS solution and add my InstallShield project to this solution. This creates the ISPROJ file. One of the reason for isolating the Installation project in its own solution is: we only got a few InstallShield licenses for some developers, and quite a few InstallShield Standalone Build license for our build servers. Therefore, only the build servers and the developers with an InstallShield license build this solution. I normally tweak this ISPROJ file a bit, mainly to override some path variables and some properties, like the ProductName and ProductVersion. In our build system, these properties are set in the Build definition in TFS. I build this solution with MSBuild, and check that the results corresponds to what I built in InstallShield. Once this is done, chances are that the central build of this solution works. What I don't do is: Edit or build my InstallShield project from Visual Studio. It means I cannot just refer the output of another project in Visual Studio, but after a few tests, I realized that the VS integration was changing my ISM file in unexpected ways. To conclude: What counts is the build we create with MSBuild. I don't mind not building my Installation Package in Visual Studio. The Build server does not normally use devenv.exe (aka Visual Studio) to build your package, it uses MSBuild.
... View more
May 18, 2015
04:02 AM
If I were you, I would remove any reference to InstallShield.Tasks.dll. This file is not present if InstallShield is not installed. It is also a good practice to define the "Clean" target in your NoInstallShield.targets. This allows to call MSBuild with the "Rebuild" target. This leads to the following NoInstallShield.targets: I would also place this NoInstallShield.targets file in the same folder as the ISPROJ, and check it in under source control, otherwise, you will need to copy it manually on every developer's machine. But that's only my humble opinion.
... View more
May 13, 2015
02:22 PM
Even better! I didn't even know about this MSBuild property!
... View more
Latest posts by Reureu
Subject | Views | Posted |
---|---|---|
2658 | Aug 04, 2017 04:19 AM | |
3031 | Jun 07, 2017 02:17 AM | |
1724 | Aug 05, 2016 12:53 PM | |
2547 | Jul 29, 2016 09:32 AM | |
4022 | Jul 21, 2015 07:42 AM | |
2101 | Jun 26, 2015 01:05 AM | |
992 | Jun 17, 2015 12:46 AM | |
2101 | Jun 17, 2015 12:43 AM | |
3258 | Jun 12, 2015 12:03 AM | |
3258 | Jun 10, 2015 06:28 AM |
Activity Feed
- Got a Kudo for Editing InstallScript files in Notepad++. Jun 22, 2022 08:25 AM
- Posted Re: antivirus is blocking the installation on InstallShield Forum. Aug 04, 2017 04:19 AM
- Posted What about the Custom Action Data on InstallShield Forum. Jun 07, 2017 02:17 AM
- Posted Re: Change of behaviour of SprintfMsiLog between IS 2013 and IS 2015 on Vista on InstallShield Forum. Aug 05, 2016 12:53 PM
- Posted Change of behaviour of SprintfMsiLog between IS 2013 and IS 2015 on Vista on InstallShield Forum. Jul 29, 2016 09:32 AM
- Posted Re: Copy file from CD to install directory on InstallShield Forum. Jul 21, 2015 07:42 AM
- Posted Re: How Do I create a "Plugin" or " Patch" - I don't even know what to call it. on InstallShield Forum. Jun 26, 2015 01:05 AM
- Posted Re: setup file extremely larger than old setup file on InstallShield Forum. Jun 17, 2015 12:46 AM
- Posted Re: How Do I create a "Plugin" or " Patch" - I don't even know what to call it. on InstallShield Forum. Jun 17, 2015 12:43 AM
- Posted Re: Install shield not replacing new files in program file Directory on InstallShield Forum. Jun 12, 2015 12:03 AM
- Posted Re: Install shield not replacing new files in program file Directory on InstallShield Forum. Jun 10, 2015 06:28 AM
- Posted Just an extra idea on InstallShield Forum. May 26, 2015 01:47 PM
- Posted Re: Copy file from CD to install directory on InstallShield Forum. May 22, 2015 01:24 PM
- Posted Re: Trouble with .isproj files and MSBuild on InstallShield Forum. May 22, 2015 12:51 AM
- Posted Some more suggestions on InstallShield Forum. May 18, 2015 04:02 AM
- Posted Re: Excluding Installshield Deployment Projects from MSBuild on InstallShield Forum. May 13, 2015 02:22 PM
- Posted Re: Excluding Installshield Deployment Projects from MSBuild on InstallShield Forum. May 13, 2015 02:02 PM
- Posted Re: Excluding Installshield Deployment Projects from MSBuild on InstallShield Forum. May 13, 2015 12:04 AM
- Posted Re: Excluding Installshield Deployment Projects from MSBuild on InstallShield Forum. May 12, 2015 12:15 AM
- Posted Re: Excluding Installshield Deployment Projects from MSBuild on InstallShield Forum. May 11, 2015 12:21 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|